> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Context attributes for custom metadata

> Define custom context attributes for LLM tracking and analytics. Attach metadata, tags, and business context to AI requests for advanced filtering and insights.

Context Attributes are Workspace-level fields that can be used as recurring variables for [**Prompt**](/docs/prompts/overview) building and [**Deployment Routing**](/docs/deployments/creating#routing).

Defining those variables at this level lets you control their type and whether they are PII (Personally Identifiable Information) that should therefore not be logged or stored.

## Adding a Field

Use the **Add Field** button to create a new Context Attribute.

<Frame caption="Enter the definition for your field.">
  <img src="https://mintcdn.com/orqai/KMLivT8x3bD2SSad/images/creating-context-attribute.png?fit=max&auto=format&n=KMLivT8x3bD2SSad&q=85&s=58f7c8d2d3c8ee6e8d07431718a262d2" alt="Create Field form with key set to is_admin, field type Boolean, a description field, and a Personal Identifiable Information toggle." width="941" height="893" data-path="images/creating-context-attribute.png" />
</Frame>

<Info>
  Defining the field as PII will omit its value from being logged in the Platform.
</Info>

## Viewing Fields

When viewing the list of created attributes, you can see at a glance multiple characteristics.

<Frame caption="The Linked Entities displays how many times a field is used within your Projects.">
  <img src="https://mintcdn.com/orqai/KMLivT8x3bD2SSad/images/context-attribute-fields.png?fit=max&auto=format&n=KMLivT8x3bD2SSad&q=85&s=31c9cbc62398a8483d643321442d066c" alt="Fields list showing four context attributes (client_id, is_admin, language, sayonara_h) with their type icons, PII flag, linked entity count, and last updated date." width="1857" height="1239" data-path="images/context-attribute-fields.png" />
</Frame>

* Use the <Icon icon="copy" /> button to **Duplicate** the field.
* Use the <Icon icon="key" /> button to **Copy the Key** of the field.
* Use the <Icon icon="upload" /> button to **Share the URL** to the field.
* Use the <Icon icon="trash-can" /> button to **Delete** the field (only if it isn't linked to any entity).
