Route Your Autonomous Scheduling Conversations in the New Agentforce Builder
Set up omni-channel flows to route conversations to the required agent and from the agent to an escalation queue, rep, or other destination you specify.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions with Field Service and Foundations. Also available with Einstein 1 Field Service Edition or Agentforce 1 Field Service Edition. |
Autonomous Scheduling requires separate agents for Customer-Initiated Scheduling and Customer Outreach.
The Customer-Initiated Scheduling agent requires the customer to verify their identity and includes a welcome message that’s shown at the beginning of the conversation.
The Customer Outreach agent doesn’t ask the customer to verify their identity and it doesn’t include a welcome message. It’s set up this way because you’re reaching out to a specific customer with a predefined outreach message and therefore you don’t need them to verify their identity.
For a smooth customer experience, it’s best practice to have these agents use the same messaging channel, but make sure that your setup can recognize which agent should be triggered at the start of the messaging session. This way, the customer is only asked to verify their identity when needed and the welcome message is only shown when needed.
| User Permissions Needed | |
|---|---|
| To open, edit, or create a flow in Flow Builder: | Manage Flow |
Set Up the Inbound Omni-Channel Flow
- From Setup, in the Quick Find box, enter Process Automation, and then select Flows.
- Open the Route Conversations to Agentforce Service Agents flow.
- Click Save As New Flow.
- Enter a label. The API name is populated for you.
-
After the Process Customer’s Locale element, add a Get Records element.
-
For Label, enter Get Messaging Session.
The API name is populated for you.
- For Object, find and select Messaging Session.
-
Under Filter Messaging Session Records, enter this condition:
Field: Messaging Session IDOperator: EqualsValue: recordID
-
For Label, enter Get Messaging Session.
-
After the Get Records element, add a Decision element.
-
For Label, enter Is Messaging Session Outbound or Inbound?
The API name is populated for you.
-
Add the details of the first outcome.
Outcome Label: OutboundResource: Find and select Messaging Session from Get Messaging Session and then find and select Origin. When you click the value, it looks like this {!Get_Messaging_Session.Origin}.Value: Triggered Outbound
- In the second outcome, for the Outcome Label, enter Inbound (Default).
-
For Label, enter Is Messaging Session Outbound or Inbound?
- Remove the Route Work element from the end of the flow.
-
After the Outbound decision outcome, add a Route Work action.
- For Label, enter Route to Customer Outreach Agent. The API name is populated for you.
- For Record ID Variable, find and select the recordID variable.
- For Service Channel, select Messaging.
- For Route To, select Agentforce Service Agent.
- For Agentforce Service Agent, find and select the agent that you created for Customer Outreach.
- Find and select your Fallback Queue.
-
After the Inbound decision outcome, add a Route Work action.
- Copy the Route Work element that you created and paste it under the Inbound decision outcome.
-
Change the label to Route to Customer-Initiated Scheduling
Agent.
Update the API name accordingly.
- For Agentforce Service Agent, find and select the agent that you created for Customer-Initiated Scheduling.
- Save and activate the flow.
Set Up the Outbound Omni-Channel Flow
- From Setup, in the Quick Find box, enter Process Automation, and then select Flows.
- Open the Route Conversations to Agentforce Service Agents flow.
-
Add a decision element to route conversations by checking the engagement originator field.
-
On the flow canvas, click
and select a decision element.
- In the Requirements, select All Conditions Are Met (AND).
- Select the Engagement Originator resource.
- Select Equals for the operator.
- Select System for the value.
-
On the flow canvas, click
- Save and activate the flow.
Connect the Omni-Channel Flows to Your Agents
- From Setup, in the Quick Find box, enter Agents, and then select Agentforce Agents.
- Open the agent that you set up for Customer-Initiated Scheduling.
- Click Open in Builder.
- Deactivate the agent so that you can make changes.
- Open the Connections tab.
- Under Inbound Omni-Channel Flows, make sure that you can see the Inbound flow that you set up.
- Under Outbound Omni-Channel Flow, select the Outbound flow that you created.
- Save your changes.
- Activate the agent.
- Repeat these steps to also connect the Omni-Channel flows to the agent that you set up for Customer Outreach.
Connect the Omni-Channel Flows to Your Messaging Channel
- From Setup, in the Quick Find box, enter Messaging, and then select Messaging Settings.
- Open the required messaging channel.
- In Omni-Channel Routing, click Edit.
- For Routing Type, select Omni-Flow.
- For Flow Definition, select the Inbound flow that you created.
- For Fallback Queue, select the same queue that you selected when you created your Omni-Channel flows.
- Save your changes.
