You are here:
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.

Use more general search terms.
Select fewer filters to broaden your search.
Some agents include pre-built variables, called standard variables. Explore your agent's standard variables on the Context tab in the legacy Agentforce Builder.
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type. |
| Variable API Name | Data Type | Description | Mapped Object FielD |
|---|---|---|---|
$Context.EndUserLanguage |
Text | The language code of messages sent by the messaging user. For example, en_US. This variable is editable. | MessagingSession.EndUserLanguage |
| $Context.EndUserContactId | 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.MessagingEndUserId | Id | The ID of the messaging user. | MessagingSession.MessagingEndUserId |
| 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. |
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.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.