Send Twilio Message Block

Send messages using Twilio’s messaging service

The Send Twilio Message block enables users to send SMS messages through Twilio’s messaging service, integrating messaging capabilities into workflows with ease.

Configuration (Required)

Recipient Phone Number
stringRequired

The phone number of the message recipient. Ensure the number includes the country code and is formatted correctly. This field supports Jinja templating for dynamic number insertion.

Sender Phone Number
stringRequired

The phone number from which the message will be sent. Ensure the number is valid and associated with your Twilio account. This field supports Jinja templating for dynamic number insertion.

Message Body
stringRequired

The content of the SMS message to be sent. This field supports Jinja templating for dynamic message content.

Twilio Account SID
stringRequired
Use Environment Variables to safely and securely access sensitive credentials in a Scout workflow.

Your Twilio Account SID, used for authentication. Keep this credential secure. This field supports Jinja templating for dynamic SID insertion.

Twilio Auth Token
stringRequired
Use Environment Variables to safely and securely access sensitive credentials in a Scout workflow.

Your Twilio Auth Token, used for authentication. Keep this credential secure. This field supports Jinja templating for dynamic token insertion.

See Workflow Logic & State > State Management for details on using dynamic variables in this block.

Outputs

The block outputs the SID of the sent message, indicating successful delivery. This SID can be used for tracking and verification purposes.

Usage Context

Use this block to send SMS messages as part of your workflow. Ensure that the phone numbers are in the correct format and that your Twilio account credentials are valid.

Best Practices

  • Ensure phone numbers include the country code and are formatted correctly: This prevents delivery issues and ensures messages reach the intended recipients.
  • Keep your Twilio credentials secure and do not expose them in public repositories: Protecting your credentials is crucial to maintaining account security.
  • Test the message sending functionality with a trial account before deploying in production: This helps verify that the integration works as expected without incurring unnecessary costs.