{ "kind": "open-flow-workflow", "version": 1, "name": "Send Pushcut Action Input by SMS", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_c2ccaa31592790dc": { "name": "Receive a Pushcut action", "kind": "webhook", "bodyFields": [ { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "id" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "actionName" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "input" }, { "jsonSchema": { "type": "number" }, "nullable": true, "handle": "timestamp" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "isoTimestamp" } ], "method": "POST", "options": { "responseStatusCode": 200 } }, "n_7bf758279a2399c7": { "inputs": { "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_c2ccaa31592790dc", "output": "body" } ] } }, "name": "Prepare the SMS", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "object", "additionalProperties": true }, "nullable": false, "handle": "body" } ], "outputs": [ { "jsonSchema": { "type": "string", "description": "The text body of the outbound message." }, "nullable": false, "handle": "message" } ], "name": "Prepare the SMS", "moduleId": "n_d0adb657c7c4560f", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_94800fd98b7d6d77": { "inputs": { "to": { "kind": "value", "value": "YOUR_RECIPIENT_NUMBER" }, "from": { "kind": "value", "value": "YOUR_TWILIO_NUMBER" }, "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_7bf758279a2399c7", "output": "message" } ] } }, "name": "Send the SMS", "kind": "task", "task": { "inputs": [ { "description": "The destination phone number in E.164 format.", "jsonSchema": { "type": "string", "description": "The destination phone number in E.164 format." }, "nullable": false, "handle": "to" }, { "description": "The Twilio phone number sending the message.", "jsonSchema": { "type": "string", "description": "The Twilio phone number sending the message." }, "nullable": false, "handle": "from" }, { "description": "The text body of the outbound message.", "jsonSchema": { "type": "string", "description": "The text body of the outbound message." }, "nullable": false, "handle": "body" } ], "outputs": [ { "description": "The Twilio message SID.", "jsonSchema": { "type": "string", "description": "The Twilio message SID." }, "nullable": false, "handle": "messageSid" }, { "description": "The Twilio account SID that owns the message.", "jsonSchema": { "type": [ "string", "null" ], "description": "The Twilio account SID that owns the message." }, "nullable": true, "handle": "accountSid" }, { "description": "The delivery status of the message.", "jsonSchema": { "type": [ "string", "null" ], "description": "The delivery status of the message." }, "nullable": true, "handle": "status" }, { "description": "The destination phone number.", "jsonSchema": { "type": [ "string", "null" ], "description": "The destination phone number." }, "nullable": true, "handle": "to" }, { "description": "The sender phone number.", "jsonSchema": { "type": [ "string", "null" ], "description": "The sender phone number." }, "nullable": true, "handle": "from" }, { "description": "The text body of the message.", "jsonSchema": { "type": [ "string", "null" ], "description": "The text body of the message." }, "nullable": true, "handle": "body" } ], "name": "Send the SMS", "executor": { "kind": "connector", "action": "twilio.send_message" } } } }, "edges": [ { "source": "n_c2ccaa31592790dc", "target": "n_7bf758279a2399c7" }, { "source": "n_7bf758279a2399c7", "target": "n_94800fd98b7d6d77" } ] } }, "modules": { "n_d0adb657c7c4560f": { "name": "Prepare the SMS", "imports": [], "source": "export default function pushcutSms({body}) { return {message: \"I'm \" + String(body.input)}; }\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }