You can create policies to recognize a consumer's channel: Web, Facebook Messenger, and so on, and transfer to the appropriate agent or skill. This is very useful in cases where you have specialized skills or agents for respective channels.

Examples

  • When a consumr messages from Facebook Messenger, transfer them to the FBMessengerSkill.
  • When a consumer messages from the Web channel, transfer them to WebSkill.

Prerequisite steps

Process

  1. Modify your routing bot to power the desired experience. In the example below, the bot responds to a customer greeting of “Hi," "Hello," etc., and immediately performs dynamic routing.

    An example dialog flow that's triggered by patterns for ‘hi’

  2. In the Dynamic Routing interaction, click Manage routing policies to go to the policy management interface.

  3. Create the policy by selecting “orchestrator.channel” as the attribute and “channel’ as data type. Then choose from the available list of channels.

    Also configure the action to transfer to a skill. Make sure the skill has at least one or more bot or human agents.

    Selecting a channel in the policy's condition

  4. Save and enable the policy.

    The final, saved policy

  5. Launch a messaging conversation from the respective channel and test the flow.

    If you are routing based on “web-channel”, You can test your setup on the web client emulator.

    Alternatively, you can deploy the bot and connect it to a campaign that’s linked to the production/staging channel of your choice.

  6. Follow these steps once you have messaging set up.

    Launch messaging. Start by saying “Hi. And then immediately get routed to the respective skill. Here below, “Agent Bob” is an agent who is mapped to the User3Skill.

    The start of the conversation flow, illustrating transfer to Agent Bob

  7. You can also create one such policy for every unique channel. And you can also add more conditions to the policies if required.

    The final, saved policy