{ "description": "Appt Soon!", "states": [ { "name": "Trigger", "type": "trigger", "transitions": [ { "event": "incomingMessage" }, { "event": "incomingCall" }, { "next": "send_message_1", "event": "incomingRequest" } ], "properties": { "offset": { "x": 40, "y": -180 } } }, { "name": "send_message_1", "type": "send-message", "transitions": [ { "event": "sent" }, { "event": "failed" } ], "properties": { "offset": { "x": 70, "y": 220 }, "service": "{{trigger.message.InstanceSid}}", "channel": "{{trigger.message.ChannelSid}}", "from": "{{flow.channel.address}}", "to": "{{contact.channel.address}}", "body": "Hi {{flow.data.customer.name}}!\n{{flow.data.tech.name | split:\" \" | first | strip}}, your technician, is coming soon for your upcomming appointment at {{flow.data.appointment.time | split:\" \" | last}}. \nSee you soon!", "media_url": "{{flow.data.tech.image_url}}" } } ], "initial_state": "Trigger", "flags": { "allow_concurrent_calls": true } }