MojarMojar
Connectors

Twilio

Send SMS and MMS messages from your agent's workflows using a Twilio phone number.

The Twilio connector lets your agent send SMS text messages (and optionally MMS with a media URL) to any phone number from a Twilio-provisioned number.

What you can do

ActionNode typeDescription
Send SMSSend SMSSend a text message up to 1,600 characters. Supports MMS when a media URL is provided.

All message fields support {{variable}} template syntax, so the recipient number and message body can be dynamically filled from earlier workflow steps.

Twilio also powers WhatsApp messaging in Mojar. If you want to send WhatsApp messages through Twilio, use the WhatsApp connector instead — it shares the same Twilio account credentials.

Before you start

You need three things from your Twilio account:

Credential fieldDescription
Account SIDYour Twilio account identifier (ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx). Found on the Twilio Console dashboard.
Auth TokenThe secret token paired with your Account SID. Found next to the Account SID on the Console dashboard.
From Phone NumberA Twilio phone number you own, in E.164 format (e.g. +14155551234). Must have SMS capability.

Connect Twilio

Create a Twilio account.

Sign up at twilio.com/try-twilio. Free trial accounts include credit for testing and come with a trial phone number.

Copy your Account SID and Auth Token.

From the Twilio Console dashboard, copy your Account SID and Auth Token. Both are displayed at the top of the page.

Get a phone number with SMS capability.

Go to Phone Numbers > Manage > Buy a Number and purchase a number with SMS enabled. On trial accounts, use the provided trial number.

Buy a Number →

Enter the credentials in Mojar.

In your agent, open Integrations, find Twilio, and click its card. Paste your Account SID, Auth Token, and From Phone Number, give the connection a name, and click Connect.

Click Verify Connection to confirm the credentials work before saving.

Twilio connect dialog showing the Account SID, Auth Token, From Phone Number fields, and Verify Connection button

Use it in a workflow

Open a workflow in the workflow editor and click + to add a node.
Select Send SMS from the node picker.
In the node configuration panel, choose your linked Twilio credential.

Fill in the fields:

  • To — recipient phone number in E.164 format, e.g. {{customer.phone}}
  • Message — the SMS body (max 1,600 characters)
  • Media URL — optional URL to an image or file to send as MMS
Save the workflow. When the workflow runs, Twilio delivers the message from your configured number.

On this page