---
schema_version: "1"
id: c346856158c7a858a083516bbaa07c562b2a7295f3279b31ec431ffdd8b087e7
title: Standard Variable Reference for the Legacy Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_variables_ref.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_variables_ref.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a7abe06f776ad25eb50971da7333759142becf67fefa3d08d6a25bd3c54db7da
description: Some agents include pre-built variables, called standard variables. Explore your agent's standard variables on the Context tab in the legacy Agentforce Builder.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Standard Variable Reference for the Legacy Builder

Some agents include pre-built variables, called standard variables. Explore your agent's standard variables on the Context tab in the legacy Agentforce Builder.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

## Standard Context Variables

   
| Variable API Name | Data Type | Description | Mapped Object FielD |
| --- | --- | --- | --- |
| `$Context.End​UserLanguage` | Text | The language code of messages sent by the messaging user. For example, en\_US. This variable is editable. | MessagingSession.EndUserLanguage |
| $Context.End​UserContactId | Id | The ID of the Contact record associated with the messaging user. | MessagingEndUser.ContactId |
| $Context.RoutableId | Text | The ID of a session on a Messaging channel. | MessagingSession.Id |
| $Context.Messaging​EndUserId | Id | The ID of the messaging user. | MessagingSession.MessagingEndUserId |

## Other Standard Variables

  
| Variable API Name | Data Type | Description |
| --- | --- | --- |
| `verifiedCustomerId` | Id | The ID of the messaging user that’s verified using the Verify Customer agent action. See [Control Access to Subagents and Actions with the Customer Verification Subagent](https://help.salesforce.com/s/articleView?id=ai.service_agentforce_customer_verification.htm&release=264.0.0&type=5 "Before an Agentforce Service agent takes a private action on a user’s behalf, Salesforce recommends verifying the identity of the person the agent is interacting with. To verify the identity of an unverified user in an agent session, configure your agent to use the Customer Verification subagent or the Service Customer Verification subagent and limit access to subagents and actions that you specify. You can require different levels of verification for different subagents and actions, based on your business’s security requirements."). |

To use standard variables with custom actions, use the Get Agent Context invocable action. For example, add the Get Agent Context action in a flow and have it store the value of standard variables.

#### See Also

- [_Agentforce Developer Guide_: Get Started with the Agent API](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-api-get-started.html)
- [_Agentforce Developer Guide_: Send Agent Variables with the Agent API](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-api-variables.html)