# Data Source : Twilio

For  Twilio, ixHello supports

1. SendTextSMS
2. SendSMSWithMedia

#### Send Text SMS

| Parameter | Sample Value | Info                                                                                                                                        |
| --------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
|           |              |                                                                                                                                             |
| ToNumber  | {{ToNumber}} | A phone number which is going to receive the message.                                                                                       |
| Body      | {{Message}}  | <p>Actual Message Content.</p><p>Note: {{}} represents that the value for these parameters are going to be read from the user as input.</p> |

Fill the following details:

| Parameter             | Info                                                                                                                                                                                                                                                                                                                     |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|                       |                                                                                                                                                                                                                                                                                                                          |
| Method Name           | SendTextSMS                                                                                                                                                                                                                                                                                                              |
| Request Type          | <p><strong>SendTextSMS</strong></p><p>This is the method that you are using</p>                                                                                                                                                                                                                                          |
| Parameters            | As explained in table above                                                                                                                                                                                                                                                                                              |
| Result Type           | <p>Record</p><p>It indicates that the method can return a single record.</p>                                                                                                                                                                                                                                             |
| Record JsonPath       | <p>Each method returns data in json format and to pick any specific information from the json, we need to specify the <em>Record JsonPath</em> so ixHello will pick that data in consideration while displaying results.</p><p>Example: $.\[\*]</p><p>This selects all the records that is returned.</p>                 |
| Empty Result Template | <p>I'm sorry, there was problem delivering your message to {{Input.ToNumber}}. Please try again, How else can I help you?</p><p>Note:</p><p>Anything written in between {{ }} is represented as a json field and it’s case-sensitive. Input.\* refers that you are taking that value from the inputs provided above.</p> |
| Result Template       | Your message has been delivered to {{Input.ToNumber}}. How else can I help you?                                                                                                                                                                                                                                          |

![](/files/gweh1hiCetvCk9CtEVe6)

You can now test the method. On the actions menu, click on Test, provide the parameter value and

Click on Method Test . You can observe the return from method in Object tab and the result displayed to user in Result Tab.&#x20;

<figure><img src="/files/DCNyDZo9gtDUozth9Eet" alt="" width="563"><figcaption></figcaption></figure>

#### Send SMS With Media

| <ol><li>Parameter</li></ol> | Sample Value                                                                           | Info                                                  |
| --------------------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------- |
|                             |                                                                                        |                                                       |
| ToNumber                    | <p>{{ToNumber}}</p><p>e.g. 6787014967</p>                                              | A phone number which is going to receive the message. |
| Body                        | <p>{{Message}}</p><p>e.g. Hello there</p>                                              | Actual Message Content                                |
| MediaURL                    | <p>{{MediaUrl}}</p><p>e.g\['<https://voiceworx.ai/assets/images/vw-logo-100.png>']</p> | Public URL for the media content.                     |

Fill the following details:

| Parameter             | Info                                                                                                                                                                                                                                                                                                     |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                       |                                                                                                                                                                                                                                                                                                          |
| Method Name           | SendSMSWithMedia                                                                                                                                                                                                                                                                                         |
| Request Type          | <p>SendSMSWithMedia</p><p>This is the method that you are using</p>                                                                                                                                                                                                                                      |
| Parameters            | As explained in table above                                                                                                                                                                                                                                                                              |
| Result Type           | <p>Record</p><p>It indicates that the method can return a single record.</p>                                                                                                                                                                                                                             |
| Record JsonPath       | <p>Each method returns data in json format and to pick any specific information from the json, we need to specify the <em>Record JsonPath</em> so ixHello will pick that data in consideration while displaying results.</p><p>Example: $.\[\*]</p><p>This selects all the records that is returned.</p> |
| Empty Result Template | <p>I'm sorry, there was problem delivering your message to {{Input.ToNumber}}. Please try again, How else can I help you?</p><p>Note:</p><p>Anything written in between {{ }} is represented as a json field and it’s case-sensitive.</p>                                                                |
| Result Template       | Your message has been delivered to {{Input.ToNumber}}. How else can I help you?                                                                                                                                                                                                                          |

You can repeat the same method to test the method. Following screen shows a sample response.

![](/files/7HRKWY57yzXRJDjF9T7r)


---

# 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://docs.ixhello.com/ixhc/general/edit-custom-apps/methods/data-source-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.
