Menu

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Using Chat and TaskRouter Together

Programmable Chat is the service used for creating web chat functionality (or mobile chat).

This page outlines the best practice of how to use Programmable Chat with TaskRouter for Contact Center use cases.

Note also that if you are also building SMS (or the social network integrations which use the same API as SMS) as a channel, then we recommend you use the Chat service as the container object for those conversations.

Sequencing chat and TaskRouter

The flow diagram below shows our recommended way of using chat and TaskRouter together.

Note that the chat room should be created first, before the task. This is because other wise in times of low traffic the task might be assigned to an agent before the chat room has been created. Once the chat room is created, it can be associated with the new task as an attribute.

Chat with TaskRouter

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

Loading Code Sample...