Skip to contentSkip to navigationSkip to topbar
On this page

Using Chat and TaskRouter together | Appendix | Web Sequence Diagrams


If you want to customize any of the flows described here for your own use, you can paste the below descriptions into websequencediagrams.com and edit from there.


Using chat and TaskRouter together

using-chat-and-taskrouter-together page anchor
1
title Chat with TaskRouter
2
3
Customer->+App: Customer starts chat session in UI
4
App->Twilio: Chat channel is created
5
App->-Twilio: Task is created in Taskrouter
6
note right of App: Chat information is \n stored in task attributes
7
note right of Twilio: Taskrouter searches for available agent
8
Agent->+Twilio: Agent comes online
9
alt If Using SDK
10
Twilio->Agent: Task is assigned to agent
11
else If using assignment callbacks
12
Twilio-->-App: Task is assigned to agent
13
end
14
Agent->Twilio: Agent joins chat channel
15
note over Agent, Customer: Agent & Customer chat
16
Customer->+App: Customer ends chat in UI
17
App->+Twilio: Task marked complete
18
Twilio->Agent: Agent marked as available
19
App->Twilio: Chat channel closed
20
Twilio->App: Chat session ended
21
Twilio->-App: store chat transcript in CRM

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.