Expose Context Variables in Your Agentforce Service Agent
To make the custom fields created on the Messaging Session object available to your
agent, expose them as context variables in Agentforce Builder. This action establishes the
direct data link required for your Agentforce Service agent to reference and utilize user
journey data when executing actions and guiding responses.
Required Editions
Available in: Salesforce Classic and Lightning Experience
Available in: Aura and LWR Experience Cloud Sites
Available in: Enhanced Chat with the Einstein for Service, Einstein Platform,
Community, Community Plus, or Agentforce Service Agent add-on
Available in: Enterprise, Performance, Unlimited, and Developer Editions with
Foundations or Agentforce 1 Editions. Access to some standard agent actions requires
additional add-on licenses
From Setup, in the Quick Find box, enter Agent, and then select
Agentforce Agents.
From the Agents Setup page, click the name of your agent Agentforce Service agent to
open its details.
Click Open in Builder, and then select the
Context tab. If your agent is in read-only mode, deactivate it
first.
In the Messaging Session Variables section, click Update Included
Fields.
Select the custom fields you created on the Messaging Session object, and then
save your changes.
The custom Messaging Session fields you select are exposed in Agentforce Builder as
context variables and become available to map to action inputs and to reference in topic
instructions.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
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
Always Active
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
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
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.