# 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

![](/files/-LkhD5zo9kO2NVWFOjIV)

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

![](/files/-LkhDT2RYl7Zku9QFQWt)

* 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

![](/files/-LkhEIgIj_SHegkv_mbK)

* 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)

![](/files/-LkhF9X-pX4X30YAlNA0)

* 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs10.xenioo.com/basic-concepts/publishing/channels/whatsapp/configuring-providers/twilio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
