Skip to contentSkip to navigationSkip to topbar
On this page

Using SMS 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 SMS and TaskRouter together

using-sms-and-taskrouter-together page anchor
1
title 2-way SMS with TaskRouter
2
3
Customer->+App: Customer sends text
4
App->Twilio: Look for open tasks from this sender
5
alt New Conversation
6
App->Twilio: Create New Chat Channel
7
App->Twilio: Add Customer # to Channel
8
App->Twilio: Create Task w/ Channel id \nas attribute
9
note over Twilio, Agent:
10
TaskRouter searches
11
for available agent
12
end note
13
Twilio->+Agent: Reservation Request
14
Agent->Twilio: Accept and Join Chat Channel
15
else Existing Conversation
16
Twilio->App: Return task, extract chat \nchannel from attribute
17
App->Twilio: Push Message into Channel
18
Twilio->Agent: MessageAdded
19
end
20
note left of Agent: Agent Replies
21
Agent->Twilio: add message to channel
22
Twilio->App: messaged added
23
note over App:
24
If message added by agent
25
pull contents of message
26
end note
27
App->Customer: send text reply
28
note over Customer, Agent: Customer or Agent Ends Conversation
29
App<->Twilio: Store Chat transcript in CRM
30
App->Twilio: Close Chat Channel
31
App->Twilio: Move task to wrapup
32
Agent->Twilio: Move task to complete

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.