> ## Documentation Index
> Fetch the complete documentation index at: https://docs.outrival.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sms deployment

# SMS Deployment Guide

SMS deployment allows you to send text messages to your users through your application. This guide will walk you through the setup and configuration process.

## Prerequisites

Before you begin, ensure you have:

* An active account with a supported SMS provider Twillio.
* You have active a2p phone number
* API credentials from your SMS provider

## Create a new SMS deployment

Click on the `Plus` button in the sidebar.

<img src="https://mintcdn.com/careerkarma/JhrXihWCzQpuEPCX/images/sidebar.png?fit=max&auto=format&n=JhrXihWCzQpuEPCX&q=85&s=ed96caeaf52841b69210043ca3729b70" style={{ borderRadius: "0.5rem" }} width="484" height="98" data-path="images/sidebar.png" />

And choose `SMS` from the modal.

<img src="https://mintcdn.com/careerkarma/JhrXihWCzQpuEPCX/images/modal.png?fit=max&auto=format&n=JhrXihWCzQpuEPCX&q=85&s=ee367535d9446a8b681f393e475ca581" style={{ borderRadius: "0.5rem" }} width="2280" height="1638" data-path="images/modal.png" />

When you will click on the `SMS` button, you will be redirected to the SMS deployment page.

<img src="https://mintcdn.com/careerkarma/JhrXihWCzQpuEPCX/images/sms-deployment.png?fit=max&auto=format&n=JhrXihWCzQpuEPCX&q=85&s=97ab88899bee080fed481347e9714483" style={{ borderRadius: "0.5rem" }} width="2842" height="1472" data-path="images/sms-deployment.png" />

Here you can choose Workflow which will be used to send SMS to your users.

<Note>Changes made here will be reflected on production, affecting end-user interactions.</Note>

### External Integration API Documentation

#### Overview

Setting serverUrl and secretKey will allow you to save variables on the server. If these fields are not set, extracted variables will be stored in the local database for the current session.

### Configuration Fields

<ResponseField name="_serverUrl" type="string">
  The URL of the external endpoint to which data will be sent or from which data will be retrieved.
  If not provided, the data will be handled locally.
</ResponseField>

<ResponseField name="_secretKey" type="string">
  The secret key used for authentication when interacting with the external endpoint. If not
  provided, no authentication will be used.
</ResponseField>

### Usage

Both updating and retrieving extracted variables use the same configuration. The type field in the request specifies the operation.

## SMS Deployment testing

You can test your SMS deployment by adding any number and clicking on the `Test SMS` button in the sidebar. As a result - you will receive a test SMS on the given number. You can also respond to the SMS and chat with your AI, which you should set up in the connected Workflow.

<img src="https://mintcdn.com/careerkarma/JhrXihWCzQpuEPCX/images/test-sms.png?fit=max&auto=format&n=JhrXihWCzQpuEPCX&q=85&s=5ba32166aa23cf9f84de41480f194a55" style={{ borderRadius: "0.5rem" }} width="844" height="502" data-path="images/test-sms.png" />
