ApplicationExperience

SMS Node

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

Important

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 allows for:

  • A unique number for your application
  • No rate limiting
  • History of messages sent
  • No limit on cost per message (this node will not send any message that costs more than $0.06)
  • 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.

Was this page helpful?


Still looking for help? You can also search the Losant Forums or submit your question there.