TriSMS - Sends SMS from TRIRIGA to Employees

SMS in TRIRIGA helps to reach out to employees/consultant in TRIRIGA through TRIRIGA.

[{"id":"812c0c22.f561d","type":"tab","label":"TRIRIGA SMS","disabled":false,"info":""},{"id":"2e7fd7cb.346838","type":"inject","z":"812c0c22.f561d","name":"Manual Trigger","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":180,"wires":[["3a955696.f7567a"]]},{"id":"3a955696.f7567a","type":"function","z":"812c0c22.f561d","name":"payload","func":"msg.payload={\n  \"spi:triUserMessageTX\": \"There's been an emergency.\",\n  \"spi:triPhoneNumTX\": \"9787315096\"\n}\nreturn msg;","outputs":1,"noerr":0,"x":360,"y":180,"wires":[["7a079d57.550dc4"]]},{"id":"7a079d57.550dc4","type":"change","z":"812c0c22.f561d","name":"Change the Payload to Twilio Variables","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.spi:triPhoneNumTX","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload.spi:triDescriptionTX","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":607.6191215515137,"y":355.2381057739258,"wires":[["d304403a.9817e"]]},{"id":"d304403a.9817e","type":"function","z":"812c0c22.f561d","name":"Adding Counrty Code","func":"msg.topic = \"+91\"+msg.topic;\nreturn msg;","outputs":1,"noerr":0,"x":928.3334350585938,"y":354.9524841308594,"wires":[["1ba3ece.0f37e13","81ea0fb3.ce8da"]]},{"id":"1ba3ece.0f37e13","type":"twilio out","z":"812c0c22.f561d","service":"_ext_","twilio":"64f9531e.b77f9c","from":"","number":"","name":"SMS","x":1185.476432800293,"y":354.2381286621094,"wires":[]},{"id":"be39b61d.002a58","type":"http in","z":"812c0c22.f561d","name":"TRIRIGA-OutboundSMS","url":"/tririga-outbound-sms","method":"post","upload":false,"swaggerDoc":"","x":226.19051361083984,"y":355.23812675476074,"wires":[["7a079d57.550dc4","5d292c8.9bba8d4","c2d58a12.bd3b88"]]},{"id":"5d292c8.9bba8d4","type":"http response","z":"812c0c22.f561d","name":"Response","statusCode":"200","headers":{"content-type":"application/json","status":"completed"},"x":439.04765701293945,"y":553.3334197998047,"wires":[]},{"id":"81ea0fb3.ce8da","type":"debug","z":"812c0c22.f561d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1194.2857578822543,"y":214.76190839494976,"wires":[]},{"id":"c2d58a12.bd3b88","type":"debug","z":"812c0c22.f561d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":688.0952671595982,"y":520.4762159075055,"wires":[]},{"id":"8f618396.de3b4","type":"comment","z":"812c0c22.f561d","name":"Manual Trigger","info":"","x":100,"y":140,"wires":[]},{"id":"74a3fa72.fbe014","type":"comment","z":"812c0c22.f561d","name":"TRIRIGA Trigger","info":"This will Trigger from TRIRIGA with help of IMS.","x":100,"y":300,"wires":[]},{"id":"64f9531e.b77f9c","type":"twilio-api","z":"","sid":"AC9d2a5b3ec55d6fb0514fe60492af00","from":"+15854617570","name":"surendran"}]

Flow Info

Created 5 years, 4 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x1)
  • comment (x2)
  • debug (x2)
  • function (x2)
  • http in (x1)
  • http response (x1)
  • inject (x1)
Other
  • tab (x1)
  • twilio out (x1)
  • twilio-api (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option