Send SMS Message
π± Node: Send SMS Message¶
This node allows you to send SMS text messages automatically from your automations. It uses the Twilio service to deliver messages to any mobile phone number worldwide.
π§ Initial Setup: Creating a Twilio Account¶
Before you can use this node, you need to create a Twilio account and obtain your credentials (Account ID and Auth Token). Follow these steps:
Step 1: Sign Up for Twilio¶
- Go to the Twilio website: https://www.twilio.com/try-twilio
- Click on "Sign up" or "Start for free".
- Fill out the registration form with your information:
- Email address
- Password
- First and last name
- Verify your email address by clicking the link sent to your inbox.
Step 2: Complete Account Setup¶
- After verifying your email, Twilio will ask you to verify your phone number.
- Enter your phone number and verify it with the code sent via SMS.
- Answer a few questions about what you plan to use Twilio for (you can select "Alerts & Notifications" and "Other").
Step 3: Get a Twilio Phone Number¶
- After completing the setup, Twilio will assign you a trial phone number.
- This number will be used as the sender number for your SMS messages.
- Take note of this number (example format:
+12294593674).
Note: With a trial account, you can only send messages to phone numbers you have verified in Twilio. To send to any number, you'll need to upgrade to a paid account.
Step 4: Find Your Account Credentials¶
- Log in to your Twilio Console: https://www.twilio.com/console
- On the main dashboard, you'll see your Account Info section with:
- Account SID (this is your Account ID)
- Auth Token (click the eye icon ποΈ to reveal it)
- Copy both values - you'll need them to configure the node.
Example of what you'll see:
- Account SID: AC1234567890abcdef1234567890abcdef
- Auth Token: 1234567890abcdef1234567890abcdef
β οΈ Security: Never share your Auth Token with anyone. It's like a password for your Twilio account.
βοΈ Node Configuration¶
Once you have your Twilio account set up, you can configure the SMS node. Below we explain each field in the form:

π Form Fields¶
The node has five main fields that you need to fill out:
1. Phone Number (Sender) β οΈ¶
What is it?
The phone number from which the SMS will be sent. This must be your Twilio phone number.
What should I enter?
The phone number that Twilio assigned to you when you created your account.
Format:
- Must include the country code with the + sign at the beginning.
- Example: +12294593674 (where +1 is the USA country code and 2294593674 is the phone number)
Where do I find it? 1. Log in to Twilio Console: https://www.twilio.com/console 2. Click on "Phone Numbers" in the left menu. 3. Click on "Manage" β "Active numbers". 4. You'll see your Twilio phone number listed there.
Example:
+12294593674
Note: You cannot use any other number here. It must be a number you purchased or were assigned through Twilio.
2. Phone Number (Receiver) β οΈ¶
What is it?
The phone number that will receive the SMS message. This is your recipient's phone number.
What should I enter?
The complete phone number of the person or device you want to send the message to.
Format:
- Must include the country code with the + sign at the beginning.
- Example: +5804123590206 (where +58 is Venezuela's country code and 04123590206 is the local number)
Examples for different countries:
+13135551234 (USA)
+5215512345678 (Mexico)
+5804123590206 (Venezuela)
+34612345678 (Spain)
β οΈ Important - Trial Account Limitation:
- If you're using a trial account, you can only send SMS to phone numbers that you have verified in Twilio.
- To verify a number, go to: Twilio Console β "Phone Numbers" β "Manage" β "Verified Caller IDs".
- To send to any number without verification, you'll need to upgrade to a paid Twilio account.
3. SMS Body β οΈ¶
What is it?
The text content of the SMS message that will be sent.
What should I enter?
The message you want to send. It can be any text up to 160 characters (standard SMS length).
Format:
Plain text string.
Example:
Alert: Motion detected at main entrance at 14:30
With variables (advanced):
Hello {{userName}}, your access code is {{accessCode}}
Note: - Standard SMS messages have a limit of 160 characters. - If your message is longer, it will be split into multiple SMS messages (and charged accordingly). - Special characters (emojis, accents) may reduce the character limit.
4. Account ID β οΈ¶
What is it?
Your Twilio Account SID (Security Identifier). This is a unique identifier for your Twilio account.
Where do I find it?
- Log in to Twilio Console: https://www.twilio.com/console
- On the main dashboard, look for the "Account Info" section.
- You'll see "Account SID" - this is your Account ID.
- Copy the entire string (it starts with "AC").
Format:
A string starting with "AC" followed by 32 characters (letters and numbers).
Example:
AC1234567890abcdef1234567890abcdef
Security: This field is hidden by default (shown as dots β’β’β’) to protect your information. You can click the eye icon ποΈ to show or hide the text.
5. Auth Token β οΈ¶
What is it?
Your Twilio authentication token. This is a secret password that proves you are the owner of the Twilio account and authorizes the system to send SMS on your behalf.
Where do I find it?
- Log in to Twilio Console: https://www.twilio.com/console
- On the main dashboard, look for the "Account Info" section.
- You'll see "Auth Token" (it's hidden by default).
- Click the eye icon ποΈ next to "Auth Token" to reveal it.
- Copy the entire token.
Format:
A 32-character string of letters and numbers.
Example:
1234567890abcdef1234567890abcdef
β οΈ Critical Security Warning:
- Never share your Auth Token with anyone.
- Anyone with your Account ID and Auth Token can send SMS messages using your Twilio account (and charge it to you).
- If you suspect your token has been compromised, you can regenerate it in the Twilio Console.
- This field is hidden by default for your protection. Click the eye icon ποΈ to show or hide it.
β Required Fields Summary¶
All fields are mandatory and must be completed for the node to work:
- β Phone Number (Sender) - Your Twilio phone number
- β Phone Number (Receiver) - Recipient's phone number
- β SMS Body - The message text
- β Account ID - Your Twilio Account SID
- β Auth Token - Your Twilio authentication token
π― Complete Configuration Example¶
Here's an example of how the node would be configured:
Form View:
- Phone Number (Sender):
+12294593674 - Phone Number (Receiver):
+5804123590206 - SMS Body:
Alert: Motion detected at main entrance - Account ID:
AC1234567890abcdef1234567890abcdef - Auth Token:
1234567890abcdef1234567890abcdef
JSON Structure (backend):
{
"accountId": "AC1234567890abcdef1234567890abcdef",
"authToken": "1234567890abcdef1234567890abcdef",
"body": "Alert: Motion detected at main entrance",
"from": "+12294593674",
"to": "+5804123590206"
}
π Troubleshooting¶
Message is not being sent¶
- Verify your credentials:
- Make sure your Account ID and Auth Token are correct.
- You can check them in your Twilio Console.
-
Make sure you copied the complete strings without extra spaces.
-
Check your Twilio account status:
- Log in to Twilio Console and check if your account is active.
-
If you're using a trial account, check if you have available trial credit.
-
Verify phone number format:
- All phone numbers must include the
+sign and country code. - Correct:
+12294593674 -
Incorrect:
12294593674or2294593674 -
Check the sender number:
- The sender number must be a valid Twilio number assigned to your account.
- You cannot use any random phone number as the sender.
Error: "The number is unverified" (Trial account)¶
Cause: You're trying to send to a phone number that hasn't been verified in your trial account.
Solution:
- Log in to Twilio Console: https://www.twilio.com/console
- Go to "Phone Numbers" β "Manage" β "Verified Caller IDs".
- Click "Add a new Caller ID".
- Enter the phone number you want to send SMS to.
- Twilio will call or send an SMS with a verification code.
- Enter the code to verify the number.
Alternative: Upgrade to a paid Twilio account to send to any number without verification.
Error: "Authenticate" or "Invalid credentials"¶
Cause: The Account ID or Auth Token is incorrect.
Solution:
- Log in to Twilio Console: https://www.twilio.com/console
- Double-check your Account SID and Auth Token.
- Make sure you're copying the complete strings.
- Try revealing the Auth Token (click the eye icon ποΈ) and copying it again.
- If the problem persists, you can regenerate your Auth Token (note: this will invalidate the old one).
Error: "Insufficient funds" or "Insufficient credit"¶
Cause: Your Twilio account doesn't have enough credit to send the SMS.
Solution:
- For trial accounts: You get limited free credit. If you've used it all, you'll need to upgrade to a paid account.
- For paid accounts: Add more funds to your Twilio account through the billing section.
Message is sent but not received¶
- Check the recipient phone number:
- Verify that the phone number is correct.
-
Make sure it includes the correct country code.
-
Check the recipient's phone:
- Make sure the phone is turned on and has signal.
- Check if the phone has SMS blocking enabled.
-
Some carriers may block automated SMS messages.
-
Check Twilio logs:
- Go to Twilio Console β "Monitor" β "Logs" β "Messaging".
- Look for your sent message and check its delivery status.
- Twilio will show you if the message was delivered, failed, or is pending.
π° Twilio Pricing Information¶
Trial Account¶
- Free credit: Twilio gives you a small amount of free credit when you sign up.
- Limitations:
- Can only send to verified phone numbers.
- Messages include "Sent from your Twilio trial account" prefix.
- Good for: Testing and development.
Paid Account¶
- No restrictions: Send to any phone number worldwide.
- Pay-as-you-go: You only pay for the SMS messages you send.
- Pricing varies by country:
- USA/Canada: ~$0.0075 per SMS
- Latin America: ~$0.04-$0.08 per SMS
- Europe: ~$0.05-$0.10 per SMS
- (Prices vary; check Twilio's official pricing page)
Tip: You can set up billing alerts in Twilio to avoid unexpected charges.
π Additional Information¶
Supported Countries¶
Twilio supports sending SMS to over 180 countries. You can check if a specific country is supported in the Twilio documentation.
Message Length¶
- Standard SMS: 160 characters (for basic Latin alphabet).
- Unicode SMS: 70 characters (if using special characters, emojis, or non-Latin alphabets).
- Long messages: Automatically split into multiple SMS parts (each part is charged separately).
Delivery Reports¶
Twilio provides detailed delivery reports. You can check if your message was: - Delivered: Successfully received by the recipient. - Failed: Could not be delivered (wrong number, phone off, etc.). - Pending: Still being processed.
Access delivery reports at: Twilio Console β "Monitor" β "Logs" β "Messaging".
Best Practices¶
- Test first: Always test with verified numbers before going to production.
- Monitor usage: Keep track of your SMS usage to avoid unexpected costs.
- Format numbers correctly: Always use international format with country code.
- Keep messages concise: Shorter messages are more effective and cheaper.
- Respect regulations: Follow local regulations regarding automated SMS (opt-in requirements, time restrictions, etc.).
π Security Best Practices¶
- Protect your credentials:
- Never commit your Account ID and Auth Token to version control (Git).
-
Store them securely in environment variables or encrypted configuration files.
-
Rotate tokens regularly:
-
Consider regenerating your Auth Token periodically for security.
-
Monitor your account:
- Regularly check your Twilio logs for any suspicious activity.
-
Set up billing alerts to detect unauthorized usage.
-
Limit access:
- Only share your Twilio credentials with trusted team members.
- Consider using Twilio's API Keys for better access control.
π Getting Help¶
If you need more help:
- Twilio Documentation: https://www.twilio.com/docs/sms
- Twilio Support: Available through your Twilio Console (paid accounts get priority support)
- Twilio Community: https://support.twilio.com/hc/en-us/community/topics