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
Standard Context Variables
| 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 |
Other Standard Variables
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.