Newer Version Available

This content describes an older version of this product. View Latest

Set a Routing Order

Set a list of user IDs and button IDs on your Embedded Service deployment to replace the assigned chat button. When a customer requests a chat, it’s routed to the first available user or button in the list.

embedded_svc.settings.fallbackRouting = ["...", “...”]

With version 5.0 and later code snippets, you have the following parameter available as a code comment.

//embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId

Accepted values are:
  • userId
  • buttonId
  • userId_buttonId

This parameter overrides the assigned chat button you’ve set for the Embedded Service deployment in Setup. If the users and buttons you include in your array aren’t available, the chat isn’t routed to the assigned button. We recommend including your assigned button’s ID at the end of your array.

Tip

The language on a label is set only with the embedded_svc.settings.language parameter, not the chat button.

Note