SMS Node

The SMS Node allows a workflow to send SMS messages using Losant provided SMS delivery.

Important

This node will also not send SMS messages that cost more than 6 cents (see Twilio SMS Prices CSV).

We intend for Losant Developers to use this node for testing and/or proof of concept applications. For production applications, we recommend the Twilio Node. Using the Twilio Node will allow for a unique number for your application, no rate limiting, message history, and more benefits that Twilio provides.

SMS Node

Node Properties

The SMS Node has two main configuration sections:

Input

SMS Node Input

  • Phone Number (Required): The phone number of the recipient.
  • Message Contents (Required): The contents of the message.

Both fields support string templates, and so can be dynamically determined from the payload of the currently executing workflow.

Result Path

SMS Node Result

You may optionally store an indication of success or failure of the SMS operation at a path on the payload.

Node Example

In the example above, the phone number being sent to is (212) 867-5309 and the contents of the message to being sent to that phone number will be Power level exceeded error threshold at {{data.power}}!.

If the result path has been configured, the success or failure of the operation will be placed at that path like so:

{
  ...
  "working": {
    "smsResult": {
      "success": true
    }
  }
  ...
}

Node Errors

The following is an example of a failed operation:

{
  ...
  "working": {
    "smsResult": {
      "error": {
        "type": "LOSANT_SMS_ERROR",
        "message": "Losant SMS send throttled.",
      }
    }
  }
  ...
}

Node Throttling and Limits

This node is rate limited to one SMS message every five minutes per workflow (bursts of up to 10 allowed). If more frequent or complex SMS messages are required, please use the Twilio Node.