Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Standard Variable Reference for the Legacy Builder

          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

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.

          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.

          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.

           
          Loading
          Salesforce Help | Article