The Twilio SMS Action Component is to send an SMS text message or Whatsapp messages via Twilio. It is useful to notify people of information from sensors.

Component Properties

Name Required Description
To True The number to send the message to, starting with the country code, for example (44 in UK) 447123456789
From True From
Message True Message to be sent, for example "The current temperature is" + cv.Payload + "°C"
Timeout True Timeout (ms)
Twilio Token False Twilio Token from the Base Property Profile
AccountSID True AccountSID if not taken from the Base Property Profile
AuthToken True AuthToken if not taken from the Base Property Profile

How to Send Messages to WhatsApp

For the specifications on sending messages to WhatsApp, refer to Twilio’s Programmable Messaging API.

To use this feature, you need to enable Twilio Sandbox for WhatsApp.

Steps:

  • Scan the QR code provided by Twilio on the Account Dashboard with your smartphone.

  • When WhatsApp opens, the passphrase specified by Twilio will be automatically entered. Simply press the send button to complete the integration.

Message Sending Method:

  • When sending a message to WhatsApp, enter the phone number displayed in the WhatsApp Sandbox in the From property.
  • Enter the phone number of the account you linked in the “To property”.
  • Add “whatsapp:” before the phone numbers in both the From and To properties. (Example: whatsapp:+1234567890)

Need more help with this?
Join our slack community for help

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.