Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Send SMS node is used to send SMS from the Orbita platform to the listed valid phone numbers.

Fields

  • Name. The display name of the node.

  • Phone. Comma-separated phone number values that accept string values only. This can also be accessed by mustache {} template from the Message object. Provide phone numbers in ITU-T E.164 format that has ‘+’ followed by ISD code, AREA code, and phone number.
    For example, +13156607630

  • Message. Plain text message that can directly be entered or accessed by mustache {} template from Message object.

Sample for Phone

  • +1617xxxxxxx

  • +1617xxxxxxx, +1617xxxxxxx

  • {{msg.payload.phone}}

Sample for message

  • Hi, this is the message

  • {{msg.payload.message}}

Sample payload function

var message = "Hi, this is a test message from Amazon SNS";
var phone = "+1632xxxxxxxx, +134xxxxxxxx";
if(!msg.payload) {
 msg.payload = {};
}
msg.payload.message = message;
msg.payload.phone = phone;
return msg;

Sample flow

[
    {
        "id": "66fe1580.0d3a8c",
        "type": "orbita-send-sms",
        "z": "8f923fe7.31371",
        "name": "Intro message",
        "message": "Hi {{msg.payload.text}}, \nThis is Orbita welcoming you to the platform.",
        "phone": "+13156607630,{{msg.payload.phone}}",
        "x": 500,
        "y": 240,
        "wires": [
            [
                "4064cf29.c4a46"
            ]
        ]
    },
    {
        "id": "4064cf29.c4a46",
        "type": "debug",
        "z": "8f923fe7.31371",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 690,
        "y": 240,
        "wires": []
    },
    {
        "id": "169c4008.6abe5",
        "type": "function",
        "z": "8f923fe7.31371",
        "name": "Construct message",
        "func": "msg.payload.phone = \"+919494041911\";\nmsg.payload.text = \"Rajkiran\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 290,
        "y": 240,
        "wires": [
            [
                "66fe1580.0d3a8c"
            ]
        ]
    },
    {
        "id": "16ecbfaa.8c75",
        "type": "inject",
        "z": "8f923fe7.31371",
        "name": "",
        "topic": "",
        "payload": "{}",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 110,
        "y": 240,
        "wires": [
            [
                "169c4008.6abe5"
            ]
        ]
    },
    {
        "id": "slots",
        "type": "slots",
        "z": "",
        "slots": []
    }
]

Related Articles

  • No labels