1

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?

jrkt
  • 2,615
  • 5
  • 28
  • 48

1 Answers1

1

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.

philnash
  • 70,667
  • 10
  • 60
  • 88