Twilio
How to publish a bot on Twilio
Create a Twilio account
- Register on Twilio by clicking here.
- Verify your phone number to access features on Twilio.
![Twilio 1.png 1884](https://files.readme.io/1dea6b5-Twilio_1.png)
Get your Account SID and Auth Token
- Go to Twilio Console.
- Scroll down and copy the Account SID and Auth Token for later use.
![Twilio 2.png 1920](https://files.readme.io/e5c7601-Twilio_2.png)
Obtain a Twilio phone number which is SMS-enabled
- In the sidebar, go to Phone Numbers > Manage > Buy a number.
- Select your country and select SMS as one of the Capabilities.
- Enter a search criteria, if you have any preferences regarding your phone number.
- Click the Buy button against the phone number you prefer.
![Twilio 2-5.png 1920](https://files.readme.io/582afc0-Twilio_2-5.png)
Get callback URL
- Log in to the Gupshup website.
- Go to Dashboard tab > My Bots section.
- Select the button under the Publish column against the bot you wish to publish.
- A list of channels will appear. Click on the Publish button against Twilio SMS.
- Scroll down and click Setup Webhook for your number. Copy the Callback URL for later use.
![Twilio 3.png 1279](https://files.readme.io/4034d45-Twilio_3.png)
Configure webhook for your phone number
- In the sidebar, go to Phone Numbers > Manage > Active Numbers
- Click on the phone number that you wish to publish the bot on.
![Twilio 4.png 1920](https://files.readme.io/85ddf33-Twilio_4.png)
- Go to the Configure tab.
- Scroll down to the Voice & Fax section.
- Ensure that option under Configure With is "Webhooks, TwiML Bins, Functions, Studio, or Proxy"
- Enter the callback URL copied earlier under A Call Comes In.
- Click the Save button at the bottom.
![Twilio 5.png 1920](https://files.readme.io/d9cb1b6-Twilio_5.png)
Submit credentials
- Log in to the Gupshup website.
- Go to Dashboard tab > My Bots section.
- Select the button under the Publish column against the bot you wish to publish.
- A list of channels will appear. Click on the Publish button against Twilio SMS.
- Scroll down and click Submit your Account SID, AuthToken and Twilio phone number.
- Enter the required information copied from Twilio earlier.
- Click the Submit button.
![Twilio 6.png 1269](https://files.readme.io/fd28f45-Twilio_6.png)
Updated over 2 years ago