# SMS Gateway Settings

### Twilio Setup

![](/files/-M6YptwbI3Mo0E3sjtKn)

* Register for Twilio and login to the dashboard.
* Click on **Get a Trial Number** and get a number.
* Go to **`Admin > Settings > SMS Settings`** and set the Default SMS Gateway as **Twilio.**
* Copy the **Trial Number** **`Account SID`** and **Auth Token** and paste it in **`Admin > Settings > SMS Settings > Twilio Settings`**

{% hint style="danger" %}
Trial Number will only send SMS to verified Twilio numbers. To use this in a live production website, you will need to Upgrade your Twilio Account and make a purchase.
{% endhint %}

### MSG91 Setup

![](/files/-M6Yv540KJ2DtBeawnY8)

* Register for a MSG91 account with Transactional SMS pack. (and Not the OTP pack)
* Click on **Flow And APIs**
* Click on **Create New**
* Go to **Account > Settings** and Register a Sender ID
* Go to **`Admin > Settings > SMS Settings`** and set the Default SMS Gateway as MSG91
* Copy the Auth Key and the Sender ID and paste it in **`Admin > Settings > SMS Settings > MSG91 Settings`**

### Extra Configurations

After saving your settings for a Default SMS Gateway, you will be able to enable the following :

**OTP Verification on Registration:** Enabling this will send OTP verification SMS to every new registering users from the Customer Application.

**OTP Message:** This is the message that the new registering customer will receive. (with a five digit OTP appended at the end of the message)

**SMS Notification for Store Owners:** Enabling this will send SMS notification to Store Owner whenever they get a new order.\
For this to work, the "SMS Notification for New Orders" field should be enabled for the Store.\
(**`Admin > Stores > Edit > SMS Notification for New Orders`**)

**Store Owners new order message:** This is the message that the store owner receives when a new order is placed.

**Include Order Value in the SMS:** Enabling this will append the Order Amount at the end of the Order Message.

**SMS Notification for Delivery Guys:** Enabling this will send SMS notification to Delivery Guys whenever they receive an order.\
For this to work, the "SMS Notification for New Orders" field should be enabled for the Store.\
(**`Admin > Users > Delivery Guys > Edit > SMS Notification for New Orders`**)

**Delivery Guys new order message:** This is the message that the Delivery Guy receives when they receive an order.


---

# 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.foodomaa.com/configurations/sms-gateway-twilio-keys.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.
