Skip to content

Instantly share code, notes, and snippets.

@danilo-telnyx
Last active October 7, 2023 12:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilo-telnyx/5aa1fec6ccb1ef9a719c6a78b838eb31 to your computer and use it in GitHub Desktop.
Save danilo-telnyx/5aa1fec6ccb1ef9a719c6a78b838eb31 to your computer and use it in GitHub Desktop.
Telnyx Basic SMS Flow

This flow describes a basic Node Flow to test the newly born Telnyx node. In this flow, we take advantage of the native Inject and Debug nodes to understand how it works.

telnyx-basic-sms-flow

To get started, sign up for a Portal account, then follow the steps in our quickstart guide to buy an SMS-enabled number.

msg.payload should contain the content of the SMS message.
[
{
"id": "870259f405be5fc9",
"type": "tab",
"label": "Telnyx",
"disabled": false,
"info": "Telnyx Node-RED Sample Flow",
"env": []
},
{
"id": "d0a3bed732c81fde",
"type": "inject",
"z": "870259f405be5fc9",
"name": "Inject",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "This is a Test SMS from Telnyx Node-RED Module",
"payloadType": "str",
"x": 430,
"y": 320,
"wires": [
[
"4f6c83e011d5bd3a"
]
]
},
{
"id": "4f6c83e011d5bd3a",
"type": "Telnyx",
"z": "870259f405be5fc9",
"telnyx": "",
"name": "",
"product": "alpha",
"alpha": "",
"from": "",
"toNum": "",
"profile": "",
"x": 590,
"y": 320,
"wires": [
[
"8f4bc47a3a1be27e"
]
],
"icon": "node-red-node-telnyx/telnyx_logo_2023.png"
},
{
"id": "8f4bc47a3a1be27e",
"type": "debug",
"z": "870259f405be5fc9",
"name": "debug",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 750,
"y": 320,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment