{
  "startNodeId": "start",
  "nodes": {
    "start": {
      "type": "question",
      "message": "Your Order is Out for Delivery!\n\nDear {cus_name},\n\nYour order from {courier_name} (Tracking: {tracking_num}) is on the way.\n\nFor further information, please call {courier_name} Support at {courier_contact}.\n\nYour Rider will arrive on {delivery_date} between {delivery_time}.\n\nAre you available to receive it?",
      "options": [
        {
          "match": "1",
          "label": "YES",
          "nextNodeId": "node_1772047768598"
        },
        {
          "match": "2",
          "label": "NO",
          "nextNodeId": "node_1772047781828"
        }
      ]
    },
    "node_1772047768598": {
      "type": "message",
      "message": "Kindly share only the below delivery code with our Rider when the order is at your doorstep.\n\nDelivery code: {delivery_code}\n\nRider Details:\nName: {rider_name}\nContact: {rider_contact}"
    },
    "node_1772047781828": {
      "type": "action",
      "subtype": "collect",
      "question": "Please reply with your preferred date/time or instructions for the rider.",
      "saveReply": true,
      "saveReplyTo": "reschedule_notes",
      "url": "https://apps.yourdomain.com/ords/waaibot/v1/webhook-json/",
      "method": "POST",
      "nextNodeId": "node_1772048102138"
    },
    "node_1772048102138": {
      "type": "message",
      "message": "Thanks for your prompt Response. We have updated our system."
    }
  }
}