Skip to content

Commit

Permalink
chore: Twilio studio (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
sojan-official committed Dec 10, 2021
1 parent fe3f327 commit 9876db8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions docs/product/channels/twilio-whatsapp-sms.md
Expand Up @@ -52,3 +52,27 @@ If you are connecting a **Whatsapp** channel, you have to configure a callback U
**Step 7**. If you want to update the agents who have access to the inbox, you can go to Settings > Inboxes.

![inbox_settings](./images/twilio/inbox_settings.png)


## Configuring Chatwoot with Twilio Studio

If you are using twilio studio for a custom conversation flow, Updating the webhook url directly will break your exising Integration.

For such cases you can follow the given steps.

1. Identify the step in your flow where you want the `agent handoff` to happen.
2. Add a `make http request widget` as shown below with the give values

![twilio_studio](./images/twilio/twilio_studio.png)

**REQUEST METHOD** : POST

**REQUEST URL**: https://app.chatwoot.com/twilio/callback

**CONTENT TYPE**: Application/JSON

**REQUEST BODY**: `{{trigger.message | to_json }}` ( make changes as required based on your flow variables)

> HTTP request widget will forward the message body to Chatwoot. This will create a conversation in Chatwoot from where the agent can reply.
3. Make sure that your flow can handle the user reponses to Agent Replies.

0 comments on commit 9876db8

Please sign in to comment.