Map Context Variables and Route Chat with Omni-Channel Flow
Configure an Omni-Channel flow to map the pre-chat variables from the chat deployment
to the custom fields on the Messaging Session object and route chats to your Agentforce Service
agent.
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 Flows, and then select
Flows.
Click New Flow. From the New Automation screen, select
Omni-Channel Flow under Frequently Used.
Click the Toolbox icon on the left-hand side to access the
resource panel.
Click New Resource for each custom parameter for example,
lastViewedArticleId.
Set Resource Type to Variable.
Set the API Name to match the custom parameter defined in your Messaging Channel
exactly for example, lastViewedArticleId.
Set the Data Type to Text.
Under Availability Outside the Flow, check the box for Available for
Input and then Click Done.
To update the messaging session record, click the Add Element
button (+) between Start and End.
Select the Update Records element.
Set up the element to update the Messaging Session record that initiated the
flow.
Map each of your new Input Variables to the corresponding Custom Field on the Messaging
Session object. For example, map the flow variable {!lastViewedArticleId} to the custom
field lastViewedArticleId__c.
To route the chat, click the Add Element button (+) after the
Update Records element.
Select the Route Work element and configure it to route the chat
session to your Agentforce Service agent.
Click Save, provide a name, and then click
Activate to make the Omni-Channel Flow available.
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.