I am building an internal support tool with Twilio Flex. The first rollout will just handle chats from either the WebChat widget or SMS. For the WebChat widget, I can't find anything allowing the end user to terminate the chat. Is this possible?
1
votes
1 Answers
1
votes
Twilio developer evangelist here.
Using the Flex WebChat Actions framework you can make a call to RestartEngagement
which will:
Remove the user from the chat channel and return them to a pre-engagement stage.
If you want the end user to control this you can create a plugin that includes an extra button in the UI that, when pressed, triggers this action and resets their state.
Let me know if that helps at all.