# Twilio

Before configuring your own phone number, you can configure Twilio Sandbox environment to test your chatbot directly on WhatsApp as follows:

* Create your chatbot and, when ready to publish, open the WhatsApp channel settings
* Select Twilio as provider
* Create a standard [Twilio ](https://www.twilio.com)account. It is fully free as long as you are using the sandbox
* Go to the [Twilio Sandbox for WhatsApp](https://www.twilio.com/console/sms/whatsapp/sandbox) page
* Copy the Xenioo hook url from the publish page

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lkh8-ESFWxliumzerOC%2F-LkhD5zo9kO2NVWFOjIV%2Fimage.png?alt=media\&token=6c0e7272-65b0-4c9e-aff4-bab4174f721d)

* Paste the hook url in both the Message and Status url of the Twilio sandbox

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lkh8-ESFWxliumzerOC%2F-LkhDT2RYl7Zku9QFQWt%2Fimage.png?alt=media\&token=d6ff1b74-9256-4546-acb1-115242acbdc3)

* Scroll down the page and click on the "Save" button.&#x20;
* The page will reload. Make sure that both the hooks are correctly saved.
* Copy, without removing the + symbol, the sandbox phone number you see on the page into the Sender Phone Number in the Xenioo publish dialog
* Go to the [Twilio Dashboard](https://www.twilio.com/console)
* Copy the Account SID value your see on the very first box under "Project Info" in the same field you see on the Xenioo dialog
* Do the same for the Auth Token field you see right below after clicking on the "View" link

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lkh8-ESFWxliumzerOC%2F-LkhEIgIj_SHegkv_mbK%2Fimage.png?alt=media\&token=9bd92379-52a3-41e1-94d9-c56c6a4e85d5)

* When all fields are filled, click on the "Save" button to confirm data on the Xenioo dialog and the click on Publish.
* Your chatbot is now online and ready to chat
* Open your WhatsApp desktop or mobile and send the join message to the number specified in the [Twilio Sandbox page](https://www.twilio.com/console/sms/whatsapp/sandbox)

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lkh8-ESFWxliumzerOC%2F-LkhF9X-pX4X30YAlNA0%2Fimage.png?alt=media\&token=2e32d120-a216-4050-ba8d-b0cc59668498)

* You will receive an automatic message from Twilio telling you you've joined the sandbox.
* Now you can freely test your chatbot for as long as you like.

{% hint style="info" %}
**Please note that Twilio Sandbox forces at least a 2 seconds additional delay on every message. You chatbot will be slower when used in the sandbox.**
{% endhint %}

When you upgrade to your real phone number, just update the phone number setting in the Xenioo publishing dialog and publish again your chatbot.
