Twilio SMS


The Twilio SMS node sends the input msg as an SMS message via Twilio. The send results will be output to the metadata and does not affect the flow, i.e. even if the sending of the SMS fails, the flow will still continue.


If the input msg has more than 150 characters, the msg will be divided and sent using multiple SMSes.

Node Type

External.

Input and Output Ability

This node has 1 entry points and 1 exit points. Both the input and the output can be any format.

Node Properties

../../_images/twilio_sms.png


Name

The name for this node.


Account SID

The string identifier (SID) of the account used to log in to Twilio.


Auth Token

The authentication token which acts as a password to the Twilio account.


Sender Number

The mobile number of the sender.


Recipient Number

The mobile number to send the SMS to. Select the country code and enter the mobile number.


Click + Add Number to send to multiple recipients.


Description

The description for this node.

Limitations

  • Coverage depends on the carrier networks that Twilio supports. For more information, see Twilio FAQ.

  • As Twilio is a third-party system not managed by EnOS, EnOS does not guarantee that all SMSes will be sent successfully. Failures could occur due to Twilio server downtime or other instances that are not within our control.

Samples

Input Sample

{
    "MetaData": {},
    "Body": {
        "assetId":"assetId",
        "timestamp":24214324324,
        "measurepoints":{
            "speed":32,
            "heat":40
        }
    }
}

Output Sample

Successfully sent SMSes will return a unique string identifier (SID) created by Twilio.

{
    "MetaData": {
        "result": "execution succeed , sids : [\"SM9ce6bc6b79644777b8a2520269472f59\",\"SM7a65b408f6b640ec9710d66ab2079e01\"]"
    },
    "Body": {
        "assetId":"assetId",
        "timestamp":24214324324,
        "measurepoints":{
            "speed":32,
            "heat":40
        }
    }
}