# Twilio

## Overview <a href="#overview" id="overview"></a>

SMS communication is a fundamental form of mobile communication used by people globally. This is useful for things such as internal alert messages (confirmations, issues, etc.).&#x20;

With Fylamynt's automation engine you can control the internal messaging by adding checks and confirmations in your workflows directly.

## Use Cases <a href="#use-cases" id="use-cases"></a>

The integration between Fylamynt and Twilio lets you:

* Connect your Twilio account to Fylamynt.
* Configure SMS content from Workflow Editor where you create your workflow
  * Select ‘From’ Number from dropdown - Retrieved from users Twilio account
  * Recipient or Recipients (multiple)
  * Content (SMS Message - Text Only)
    * Plain Text
    * Injection of Variables (previous step outputs)

## Configure Twilio in Fylamynt

* Navigate to **Settings** > **Integrations** > **Twilio**
* Configure a new integration instance

Details needed to set up **Twilio instance** in **Fylamynt**:

Follow the steps listed below in your **Twilio Account** and get the desired parameters to enter in **Fylamynt**

* Login to your Twilio Account. And you should land on the **Dashboard** if not, navigate to dashboard
* Go to **Settings** --> **General**
* From the **Live Credentials** section copy the **Account SID** and **Auth Token** and paste it into the respective input fields.

## Integration Actions <a href="#integration-actions" id="integration-actions"></a>

You can add these actions in the Fylamynt workflow builder, as part of your workflow.

1. [Twilio Send SMS](#twilio-send-sms)

### Twilio Send SMS <a href="#twilio-send-sms" id="twilio-send-sms"></a>

Integration node to run and send SMS

**Input**

| **Parameter Name**              | **Description**                             | **Required** |
| ------------------------------- | ------------------------------------------- | ------------ |
| Recipients Number               | List of numbers to receive SMS              | True         |
| Message                         | Message body                                | True         |
| Select 'Send From' Phone Number | Number which should be used to send message | True         |

**Output**

| **Parameter Name** | **Type** | **Description**                     |
| ------------------ | -------- | ----------------------------------- |
| execution\_status  | String   | Status of run (ie: S\_OK / E\_FAIL) |

**Action Example**

* Drag and drop the Twilio Send SMS Action node onto the Workflow Editor Canvas&#x20;
* Select the Action node&#x20;
* Select the Sender Number from the dropdown
* Set the Recipients numbers
* Enter the message to send

![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2F6uN1uwcN3q4Bhs0DfhPx%2Fimage.png?alt=media\&token=12abdb63-fb58-4a4a-bf0b-5f76b3e22833)
