You are here:
Route Unified WhatsApp Sessions in Service Cloud
When you set up your Messaging Channel Routing Type for Unified WhatsApp, you chose to route Unified WhatsApp sessions to an Omni-Flow, a queue, or a user. If you selected Omni-Flow, you can route work between service agents, bots, or service reps.
Required Editions
| Available in: Lightning Experience |
Available in:
|
| User Permissions Needed | |
|---|---|
| To set up an Omni-Channel Flow | Customize Application |
Here's an example of an Omni-flow that routes to a Service Agent. These instructions assume that you've enabled Omni-Channel and created a Service Agent.
Create a Service Channel for Messaging
Create a service channel for your Messaging channels. The service channel links your routing logic to the Messaging Session object.
- In Setup, go to the Service Channels page.
- Click New.
- Enter a name for your service channel, such as All Messaging.
- Select Messaging Session as the Salesforce object.
- Configure the other options, and save your service channel.
Create an Omni-Channel Flow
Use Omni-Channel flow to route Unified WhatsApp messaging sessions to service agents, bots, or service reps. In this example, the flow routes a messaging session to a service agent.
- In the Quick Find box, enter Flows, and then select Flows.
- Click New Flow.
- Search for and select Omni-Channel Flow, and click Create.
- In the layout dropdown, select Free-Form.
-
Under Manager, in the left-side panel, click New Resource.

- Under Resource Type, select Variable.
- Under API Name, enter recordId.
- Under Data Type, select Text.
- Under Availability Outside the Flow, select Available for Input.
- Click Done.
- Back on the left-side panel, select the Elements tab.
-
Drag and drop the Route work element onto the flow canvas.

- Under How Many Records to Route?, select Single.
- In Record ID Variable, select {recordId}.
- Under Service Channel, select the service channel that you created in the previous section.
- Under Route To, select Agent.
- Under Agent, select Select Agent.
- Under Agent ID, select your service agent.
- Under Backup Queue, select Select Queue.
- Under Queue ID, select a queue.
- Click Done.
- Save and activate your flow.

