[ {
  "id" : "entry_default",
  "type" : "ENTRY",
  "name" : "Flow Entry",
  "x" : 60.0,
  "y" : 400.0,
  "expectReply" : false,
  "api" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/identify",
    "headers" : [ ],
    "params" : [ {
      "key" : "phone",
      "value" : "{{phone}}"
    } ],
    "body" : ""
  },
  "conditions" : [ {
    "field" : "data.user_type",
    "op" : "==",
    "value" : "DRIVER",
    "targetId" : "msg_driver_welcome"
  }, {
    "field" : "data.user_type",
    "op" : "==",
    "value" : "OWNER",
    "targetId" : "msg_owner_welcome"
  }, {
    "field" : "data.user_type",
    "op" : "==",
    "value" : "PROSPECT",
    "targetId" : "msg_prospect_welcome"
  }, {
    "field" : "data.user_type",
    "op" : "==",
    "value" : "LEAD_SUBMITTED",
    "targetId" : "msg_lead_welcome_back"
  } ]
}, {
  "id" : "msg_owner_welcome",
  "type" : "MSG",
  "name" : "Owner Welcome",
  "msgType" : "TEXT",
  "title" : "{{data.greeting}}",
  "content" : "Namaste *{{data.name}}* \uD83D\uDE4F\nWelcome to your *BharatFleet Assistant*.\n\nI'm here to help you manage trips, vehicles, drivers, and finances efficiently.\n\nPlease choose an option below:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 380.0,
  "y" : 400.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "finance",
    "label" : "\uD83D\uDCCA Finance Management",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "trips",
    "label" : "\uD83D\uDE9A Trip Management",
    "logicEnabled" : false,
    "targetId" : "msg_trip_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "vehicles",
    "label" : "\uD83D\uDE9B Vehicle Management",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "drivers",
    "label" : "\uD83D\uDC68‍✈️ Drivers",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "maintenance",
    "label" : "\uD83D\uDEE0 Repair & Maint.",
    "logicEnabled" : false,
    "targetId" : "msg_maintenance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "exit",
    "label" : "\uD83D\uDD19 Exit",
    "logicEnabled" : false,
    "targetId" : "msg_goodbye",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_finance_menu",
  "type" : "MSG",
  "name" : "Finance Menu",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCCA Finance Management",
  "content" : "Select a finance option:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 100.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "revenue",
    "label" : "\uD83D\uDCB0 Revenue Overview",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "expense",
    "label" : "\uD83D\uDCB8 Expense Insights",
    "logicEnabled" : false,
    "targetId" : "msg_expense_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "pnl",
    "label" : "\uD83D\uDCC8 Profit & Loss",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_revenue_date",
  "type" : "MSG",
  "name" : "Revenue Date Filter",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCB0 Revenue Overview",
  "content" : "Select a time period:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 60.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "today",
    "label" : "Today",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last7",
    "label" : "Last 7 Days",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last15",
    "label" : "Last 15 Days",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last30",
    "label" : "Last 30 Days",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last90",
    "label" : "Last 90 Days",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "thisfy",
    "label" : "This Financial Year",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "lastfy",
    "label" : "Last Financial Year",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "use_last_period",
    "label" : "\uD83D\uDD01 Use Last Period",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_revenue_result",
  "type" : "MSG",
  "name" : "Revenue Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 60.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/finance/revenue",
    "headers" : [ ],
    "params" : [ {
      "key" : "period",
      "value" : "{{selected_period}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "expense",
    "label" : "\uD83D\uDCB8 Expenses",
    "logicEnabled" : false,
    "targetId" : "msg_expense_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "pnl",
    "label" : "\uD83D\uDCC8 P&L",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Finance Menu",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_expense_date",
  "type" : "MSG",
  "name" : "Expense Date Filter",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCB8 Expense Insights",
  "content" : "Select a time period:\n\n_Type *menu* to go back_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 260.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "today",
    "label" : "Today",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last7",
    "label" : "Last 7 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last15",
    "label" : "Last 15 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last30",
    "label" : "Last 30 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last90",
    "label" : "Last 90 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "thisfy",
    "label" : "This Financial Year",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "lastfy",
    "label" : "Last Financial Year",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "exp_date",
    "timeout" : 120,
    "fallbackTargetId" : "msg_finance_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_expense_type_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_expense_type_filter",
  "type" : "MSG",
  "name" : "Expense Type Filter",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCB8 Expense Insights",
  "content" : "Period: *{{exp_date}}*\n\nSelect expense type:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 460.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "all",
    "label" : "All Expenses",
    "logicEnabled" : false,
    "targetId" : "msg_expense_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "fuel",
    "label" : "⛽ Fuel",
    "logicEnabled" : false,
    "targetId" : "msg_expense_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "repair",
    "label" : "\uD83D\uDD27 Repair & Maint.",
    "logicEnabled" : false,
    "targetId" : "msg_expense_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "toll",
    "label" : "\uD83D\uDEE3 Toll Charges",
    "logicEnabled" : false,
    "targetId" : "msg_expense_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "driver",
    "label" : "\uD83D\uDC68‍✈️ Driver Expenses",
    "logicEnabled" : false,
    "targetId" : "msg_expense_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "other",
    "label" : "\uD83D\uDCE6 Other",
    "logicEnabled" : false,
    "targetId" : "msg_expense_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_expense_result",
  "type" : "MSG",
  "name" : "Expense Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 360.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/finance/expenses",
    "headers" : [ ],
    "params" : [ {
      "key" : "period",
      "value" : "{{exp_date}}"
    }, {
      "key" : "expense_type",
      "value" : "{{last_button_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "revenue",
    "label" : "\uD83D\uDCB0 Revenue",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "pnl",
    "label" : "\uD83D\uDCC8 P&L",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Finance Menu",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_pnl_date",
  "type" : "MSG",
  "name" : "P&L Date Filter",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCC8 Profit & Loss",
  "content" : "Select a time period:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 620.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "today",
    "label" : "Today",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last7",
    "label" : "Last 7 Days",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last15",
    "label" : "Last 15 Days",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last30",
    "label" : "Last 30 Days",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last90",
    "label" : "Last 90 Days",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "thisfy",
    "label" : "This Financial Year",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "lastfy",
    "label" : "Last Financial Year",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "use_last_period",
    "label" : "\uD83D\uDD01 Use Last Period",
    "logicEnabled" : false,
    "targetId" : "msg_pnl_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_pnl_result",
  "type" : "MSG",
  "name" : "P&L Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 620.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/finance/pnl",
    "headers" : [ ],
    "params" : [ {
      "key" : "period",
      "value" : "{{selected_period}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "revenue",
    "label" : "\uD83D\uDCB0 Revenue",
    "logicEnabled" : false,
    "targetId" : "msg_revenue_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "expense",
    "label" : "\uD83D\uDCB8 Expenses",
    "logicEnabled" : false,
    "targetId" : "msg_expense_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Finance Menu",
    "logicEnabled" : false,
    "targetId" : "msg_finance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_menu",
  "type" : "MSG",
  "name" : "Trip Menu",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDE9A Trip Management",
  "content" : "What would you like to do?",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 500.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "status",
    "label" : "\uD83D\uDCCA Overall Status",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "listing",
    "label" : "\uD83D\uDCCB Trip Listing",
    "logicEnabled" : false,
    "targetId" : "msg_trip_list_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "create",
    "label" : "➕ Create Trip",
    "logicEnabled" : false,
    "targetId" : "msg_create_party",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "search",
    "label" : "\uD83D\uDD0D Search Trip",
    "logicEnabled" : false,
    "targetId" : "msg_trip_search",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_status_date",
  "type" : "MSG",
  "name" : "Trip Status Date",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCCA Overall Status",
  "content" : "Select a time period:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 480.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "today",
    "label" : "Today",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last7",
    "label" : "Last 7 Days",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last15",
    "label" : "Last 15 Days",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last30",
    "label" : "Last 30 Days",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last90",
    "label" : "Last 90 Days",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "thisfy",
    "label" : "This Financial Year",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "lastfy",
    "label" : "Last Financial Year",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "use_last_period",
    "label" : "\uD83D\uDD01 Use Last Period",
    "logicEnabled" : false,
    "targetId" : "msg_trip_status_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_trip_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_status_result",
  "type" : "MSG",
  "name" : "Trip Status Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 480.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/trips/status",
    "headers" : [ ],
    "params" : [ {
      "key" : "period",
      "value" : "{{selected_period}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "list",
    "label" : "\uD83D\uDCCB View Trip List",
    "logicEnabled" : false,
    "targetId" : "msg_trip_list_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "search",
    "label" : "\uD83D\uDD0D Search Trip",
    "logicEnabled" : false,
    "targetId" : "msg_trip_search",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Trip Menu",
    "logicEnabled" : false,
    "targetId" : "msg_trip_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_list_date",
  "type" : "MSG",
  "name" : "Trip List Date Filter",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCCB Trip Listing",
  "content" : "Select a time period:\n\n_Type *menu* to go back_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 680.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "today",
    "label" : "Today",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last7",
    "label" : "Last 7 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last15",
    "label" : "Last 15 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last30",
    "label" : "Last 30 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "last90",
    "label" : "Last 90 Days",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "thisfy",
    "label" : "This Financial Year",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "lastfy",
    "label" : "Last Financial Year",
    "logicEnabled" : false,
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "trip_date_filter",
    "timeout" : 120,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_trip_list_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_list_result",
  "type" : "MSG",
  "name" : "Trip List",
  "msgType" : "DYNAMIC_LIST",
  "title" : "\uD83D\uDCCB Trip List",
  "content" : "Select a trip to view details:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "trips",
  "listTitleField" : "label",
  "listDescField" : "description",
  "listIdField" : "trip_id",
  "listSectionTitle" : "Trips",
  "listButtonLabel" : "Select Trip",
  "listEmptyMessage" : "No trips found for the selected period.",
  "x" : 1400.0,
  "y" : 680.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/trips/list",
    "headers" : [ ],
    "params" : [ {
      "key" : "period",
      "value" : "{{trip_date_filter}}"
    } ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "selected_trip",
    "timeout" : 300,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_trip_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_detail",
  "type" : "MSG",
  "name" : "Trip Detail",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 680.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/trips/detail",
    "headers" : [ ],
    "params" : [ {
      "key" : "trip_id",
      "value" : "{{selected_trip_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_trip_listing",
    "label" : "\uD83D\uDCCB Trip Listing",
    "logicEnabled" : false,
    "targetId" : "msg_trip_list_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDD0D_search_trip",
    "label" : "\uD83D\uDD0D Search Trip",
    "logicEnabled" : false,
    "targetId" : "msg_trip_search",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_trip_menu",
    "label" : "\uD83D\uDD19 Trip Menu",
    "logicEnabled" : false,
    "targetId" : "msg_trip_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_docs_owner",
  "type" : "MSG",
  "name" : "Trip Documents",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCC4 Trip Documents",
  "content" : "Documents for trip *{{selected_trip}}*:\n\n\uD83D\uDCCE E-Way Bill: Available\n\uD83D\uDCCE LR Copy: Available\n\uD83D\uDCCE Weighment Slip: Available\n\n_Contact your manager for physical copies._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2050.0,
  "y" : 680.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "back",
    "label" : "\uD83D\uDD19 Trip Detail",
    "logicEnabled" : false,
    "targetId" : "msg_trip_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "menu",
    "label" : "\uD83C\uDFE0 Main Menu",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_search",
  "type" : "MSG",
  "name" : "Search Trip",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDD0D Search Trip",
  "content" : "Enter the *last 4 digits* of Trip ID:\n\nExample: *1023*\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 880.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "search_last4",
    "timeout" : 60,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "^[0-9]{4}$",
    "invalidMessage" : "⚠️ Please enter exactly *4 digits*.\nExample: 1023",
    "actionMode" : "STORE",
    "targetId" : "msg_trip_search_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_search_result",
  "type" : "MSG",
  "name" : "Trip Search Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 880.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/trips/search",
    "headers" : [ ],
    "params" : [ {
      "key" : "last4",
      "value" : "{{search_last4}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_trip_listing",
    "label" : "\uD83D\uDCCB Trip Listing",
    "logicEnabled" : false,
    "targetId" : "msg_trip_list_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDD0D_search_trip",
    "label" : "\uD83D\uDD0D Search Trip",
    "logicEnabled" : false,
    "targetId" : "msg_trip_search",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_trip_menu",
    "label" : "\uD83D\uDD19 Trip Menu",
    "logicEnabled" : false,
    "targetId" : "msg_trip_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_create_party",
  "type" : "MSG",
  "name" : "Create Trip – Select Party",
  "msgType" : "DYNAMIC_LIST",
  "title" : "➕ Create Trip (1/5)",
  "content" : "Select the *Consignor Party*:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "parties",
  "listTitleField" : "name",
  "listDescField" : "description",
  "listIdField" : "name",
  "listSectionTitle" : "Your Parties",
  "listButtonLabel" : "Select Party",
  "listEmptyMessage" : "No parties found.",
  "x" : 1050.0,
  "y" : 1080.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/parties",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "trip_party",
    "timeout" : 120,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_create_pickup",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_create_pickup",
  "type" : "MSG",
  "name" : "Create Trip – Pickup",
  "msgType" : "TEXT",
  "title" : "➕ Create Trip (2/5)",
  "content" : "✅ Party: *{{trip_party}}*\n\nEnter *Pickup Location* (From):\n\nExample: _Mumbai, Andheri East_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "trip_pickup",
    "timeout" : 300,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_create_drop",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_create_drop",
  "type" : "MSG",
  "name" : "Create Trip – Drop",
  "msgType" : "TEXT",
  "title" : "➕ Create Trip (3/5)",
  "content" : "✅ From: *{{trip_pickup}}*\n\nEnter *Drop Location* (To):\n\nExample: _Pune, Hinjewadi Phase 2_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 1080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "trip_drop",
    "timeout" : 300,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_create_ewb",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_create_ewb",
  "type" : "MSG",
  "name" : "Create Trip – E-Way Bill",
  "msgType" : "TEXT",
  "title" : "➕ Create Trip (4/5)",
  "content" : "✅ Route: *{{trip_pickup}}* → *{{trip_drop}}*\n\nEnter *E-Way Bill Number*:\n\nExample: _EWB-2024-789012_\nType *SKIP* if not available\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2050.0,
  "y" : 1080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "trip_ewb",
    "timeout" : 300,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_create_load",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_create_load",
  "type" : "MSG",
  "name" : "Create Trip – Load Details",
  "msgType" : "TEXT",
  "title" : "➕ Create Trip (5/5)",
  "content" : "✅ EWB: *{{trip_ewb}}*\n\nEnter *Load Details*:\n\nFormat: _Material : Weight_\nExample: _General Cargo : 8 Tons_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2300.0,
  "y" : 1080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "trip_load_details",
    "timeout" : 300,
    "fallbackTargetId" : "msg_trip_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/owner/trips/create",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"party\":\"{{trip_party}}\",\"from\":\"{{trip_pickup}}\",\"to\":\"{{trip_drop}}\",\"ewb\":\"{{trip_ewb}}\",\"load\":\"{{trip_load_details}}\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_create_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_create_success",
  "type" : "MSG",
  "name" : "Trip Created ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2600.0,
  "y" : 1080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "menu",
    "label" : "\uD83C\uDFE0 Main Menu",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "list",
    "label" : "\uD83D\uDCCB View Trips",
    "logicEnabled" : false,
    "targetId" : "msg_trip_list_date",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_menu",
  "type" : "MSG",
  "name" : "Vehicle Menu",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDE9B Vehicle Management",
  "content" : "Select an option:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 900.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "list",
    "label" : "\uD83D\uDCCB View Vehicles",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "add",
    "label" : "➕ Add Vehicle",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_add_options",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "compliance",
    "label" : "\uD83D\uDCD1 Vehicle Compliance",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_compliance",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_list",
  "type" : "MSG",
  "name" : "Vehicle List",
  "msgType" : "DYNAMIC_LIST",
  "title" : "\uD83D\uDCCB Your Vehicles",
  "content" : "Select a vehicle to view details:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "vehicles",
  "listTitleField" : "label",
  "listDescField" : "description",
  "listIdField" : "vehicle_no",
  "listSectionTitle" : "Fleet Vehicles",
  "listButtonLabel" : "Select Vehicle",
  "listEmptyMessage" : "No vehicles registered yet.",
  "x" : 1050.0,
  "y" : 900.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/vehicles/list",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "selected_vehicle",
    "timeout" : 120,
    "fallbackTargetId" : "msg_vehicle_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_vehicle_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_detail",
  "type" : "MSG",
  "name" : "Vehicle Detail",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 900.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/vehicles/detail",
    "headers" : [ ],
    "params" : [ {
      "key" : "vehicle_no",
      "value" : "{{selected_vehicle_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "docs",
    "label" : "\uD83D\uDCD1 Documents",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "driver",
    "label" : "\uD83D\uDC68‍✈️ View Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Vehicle List",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_add_no",
  "type" : "MSG",
  "name" : "Add Vehicle – Reg No (Manual)",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDE9B Add Vehicle (Manual)",
  "content" : "Enter the *Vehicle Registration Number*:\n\nFormat: _MH-12-AB-1234_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1060.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "new_vehicle_no",
    "timeout" : 300,
    "fallbackTargetId" : "msg_vehicle_menu",
    "validationRegex" : "^[A-Z]{2}-[0-9]{2}-[A-Z]{1,2}-[0-9]{4}$",
    "invalidMessage" : "⚠️ Invalid format. Enter like: *MH-12-AB-1234*",
    "actionMode" : "STORE",
    "targetId" : "msg_vehicle_add_type",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_add_type",
  "type" : "MSG",
  "name" : "Vehicle Added via RC",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDE9B Add Vehicle (2/2)",
  "content" : "✅ Reg No: *{{new_vehicle_no}}*\n\nSelect *vehicle type*:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1060.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "hcv",
    "label" : "\uD83D\uDE9B HCV (>12 Ton)",
    "logicEnabled" : true,
    "targetId" : "msg_vehicle_add_success",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/owner/vehicles/add",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"vehicle_no\":\"{{new_vehicle_no}}\",\"vehicle_type\":\"HCV\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ {
      "field" : "btn_data.status",
      "op" : "==",
      "value" : "success",
      "targetId" : "msg_vehicle_add_success"
    } ]
  }, {
    "id" : "mcv",
    "label" : "\uD83D\uDE9A MCV (6–12 Ton)",
    "logicEnabled" : true,
    "targetId" : "msg_vehicle_add_success",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/owner/vehicles/add",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"vehicle_no\":\"{{new_vehicle_no}}\",\"vehicle_type\":\"MCV\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ {
      "field" : "btn_data.status",
      "op" : "==",
      "value" : "success",
      "targetId" : "msg_vehicle_add_success"
    } ]
  }, {
    "id" : "lcv",
    "label" : "\uD83D\uDEFB LCV (<6 Ton)",
    "logicEnabled" : true,
    "targetId" : "msg_vehicle_add_success",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/owner/vehicles/add",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"vehicle_no\":\"{{new_vehicle_no}}\",\"vehicle_type\":\"LCV\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ {
      "field" : "btn_data.status",
      "op" : "==",
      "value" : "success",
      "targetId" : "msg_vehicle_add_success"
    } ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_add_success",
  "type" : "MSG",
  "name" : "Vehicle Added ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 1060.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "add_another",
    "label" : "➕ Add Another",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_add_no",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "list",
    "label" : "\uD83D\uDCCB View Vehicles",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "menu",
    "label" : "\uD83C\uDFE0 Main Menu",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_compliance",
  "type" : "MSG",
  "name" : "Vehicle Compliance",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCD1 Vehicle Compliance",
  "content" : "Filter by document status:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1220.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "expired",
    "label" : "\uD83D\uDD34 Expired",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "exp2",
    "label" : "\uD83D\uDFE0 Expiring in 2 Days",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "exp7",
    "label" : "\uD83D\uDFE1 Expiring in 7 Days",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "exp15",
    "label" : "\uD83D\uDFE2 Expiring 15 Days",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_compliance_result",
  "type" : "MSG",
  "name" : "Vehicle Compliance Result",
  "msgType" : "DYNAMIC_LIST",
  "title" : "\uD83D\uDCD1 Compliance",
  "content" : "Select a vehicle to view details:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "vehicles",
  "listTitleField" : "label",
  "listDescField" : "description",
  "listIdField" : "vehicle_no",
  "listSectionTitle" : "Compliance Status",
  "listButtonLabel" : "Select Vehicle",
  "listEmptyMessage" : "✅ No vehicles with document issues!",
  "x" : 1400.0,
  "y" : 1220.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/vehicles/compliance",
    "headers" : [ ],
    "params" : [ {
      "key" : "filter",
      "value" : "{{last_button}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_view_vehicles",
    "label" : "\uD83D\uDCCB View Vehicles",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "➕_add_vehicle",
    "label" : "➕ Add Vehicle",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_add_no",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_vehicle_menu",
    "label" : "\uD83D\uDD19 Vehicle Menu",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "selected_vehicle",
    "timeout" : 120,
    "fallbackTargetId" : "msg_vehicle_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_vehicle_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_mgmt_menu",
  "type" : "MSG",
  "name" : "Driver Management Menu",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDC68‍✈️ Driver Management",
  "content" : "Select an option:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 1300.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "list",
    "label" : "\uD83D\uDCCB List Drivers",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "add",
    "label" : "➕ Add Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_options",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "search",
    "label" : "\uD83D\uDD0D Search Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_search",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "compliance",
    "label" : "\uD83D\uDCD1 Driver Compliance",
    "logicEnabled" : false,
    "targetId" : "msg_driver_compliance",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_mgmt_list",
  "type" : "MSG",
  "name" : "Driver List",
  "msgType" : "DYNAMIC_LIST",
  "title" : "\uD83D\uDCCB Your Drivers",
  "content" : "Select a driver to view details:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "drivers",
  "listTitleField" : "label",
  "listDescField" : "description",
  "listIdField" : "mobile",
  "listSectionTitle" : "Drivers",
  "listButtonLabel" : "Select Driver",
  "listEmptyMessage" : "No drivers registered yet.",
  "x" : 1050.0,
  "y" : 1360.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/drivers/list",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "selected_driver",
    "timeout" : 120,
    "fallbackTargetId" : "msg_driver_mgmt_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_driver_mgmt_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_mgmt_detail",
  "type" : "MSG",
  "name" : "Driver Detail",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1360.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/drivers/detail",
    "headers" : [ ],
    "params" : [ {
      "key" : "mobile",
      "value" : "{{selected_driver_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_list_drivers",
    "label" : "\uD83D\uDCCB List Drivers",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "➕_add_driver",
    "label" : "➕ Add Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_name",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_driver_menu",
    "label" : "\uD83D\uDD19 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_name",
  "type" : "MSG",
  "name" : "Add Driver – Name",
  "msgType" : "TEXT",
  "title" : "➕ Add Driver (1/3)",
  "content" : "Enter the driver's *full name*:\n\nExample: _Ramesh Kumar Gupta_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1520.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "new_driver_name",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_mgmt_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_driver_add_mobile",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_mobile",
  "type" : "MSG",
  "name" : "Add Driver – Mobile",
  "msgType" : "TEXT",
  "title" : "➕ Add Driver (2/3)",
  "content" : "✅ Name: *{{new_driver_name}}*\n\nEnter *mobile number* (10 digits):\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1520.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "new_driver_mobile",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_mgmt_menu",
    "validationRegex" : "^[6-9][0-9]{9}$",
    "invalidMessage" : "⚠️ Enter a valid 10-digit mobile number.",
    "actionMode" : "STORE",
    "targetId" : "msg_driver_add_dl",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_dl",
  "type" : "MSG",
  "name" : "Add Driver – DL Upload + OCR",
  "msgType" : "TEXT",
  "title" : "➕ Add Driver (3/3)",
  "content" : "✅ Name: *{{new_driver_name}}*\n✅ Mobile: *{{new_driver_mobile}}*\n\nUpload *Driving Licence* photo \uD83D\uDCF8\n\n\uD83E\uDD16 Our AI will auto-read the DL details!\nMake sure DL number and expiry are clearly visible.\nTap \uD83D\uDCCE → Camera or Gallery\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 1520.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "IMAGE",
    "variable" : "driver_dl",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_mgmt_menu",
    "validationRegex" : "",
    "invalidMessage" : "⚠️ Please upload an *image* of the Driving Licence.",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/ocr/driver",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"name\":\"{{new_driver_name}}\",\"mobile\":\"{{new_driver_mobile}}\",\"image_url\":\"{{driver_dl_url}}\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_driver_add_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_success",
  "type" : "MSG",
  "name" : "Driver Added ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2050.0,
  "y" : 1520.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_list_drivers",
    "label" : "\uD83D\uDCCB List Drivers",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "➕_add_driver",
    "label" : "➕ Add Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_name",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_driver_menu",
    "label" : "\uD83D\uDD19 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_search",
  "type" : "MSG",
  "name" : "Search Driver",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDD0D Search Driver",
  "content" : "Enter driver *name* or *mobile number*:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1680.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "driver_search_query",
    "timeout" : 120,
    "fallbackTargetId" : "msg_driver_mgmt_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_driver_search_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_search_result",
  "type" : "MSG",
  "name" : "Driver Search Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1680.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/drivers/search",
    "headers" : [ ],
    "params" : [ {
      "key" : "query",
      "value" : "{{driver_search_query}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_list_drivers",
    "label" : "\uD83D\uDCCB List Drivers",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "➕_add_driver",
    "label" : "➕ Add Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_name",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_driver_menu",
    "label" : "\uD83D\uDD19 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_compliance",
  "type" : "MSG",
  "name" : "Driver Compliance",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCD1 Driver Compliance",
  "content" : "Filter drivers by DL status:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1840.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "nodl",
    "label" : "❌ No DL",
    "logicEnabled" : false,
    "targetId" : "msg_driver_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "expired",
    "label" : "\uD83D\uDD34 Expired DL",
    "logicEnabled" : false,
    "targetId" : "msg_driver_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "expiring",
    "label" : "\uD83D\uDFE1 Expiring Soon",
    "logicEnabled" : false,
    "targetId" : "msg_driver_compliance_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_compliance_result",
  "type" : "MSG",
  "name" : "Driver Compliance Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1840.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/drivers/compliance",
    "headers" : [ ],
    "params" : [ {
      "key" : "filter",
      "value" : "{{last_button}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_list_drivers",
    "label" : "\uD83D\uDCCB List Drivers",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "➕_add_driver",
    "label" : "➕ Add Driver",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_name",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_driver_menu",
    "label" : "\uD83D\uDD19 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_maintenance_menu",
  "type" : "MSG",
  "name" : "Maintenance Menu",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDEE0 Repair & Maintenance",
  "content" : "Select an option:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 1700.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "report",
    "label" : "\uD83D\uDEA8 Report Breakdown",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_location",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "view",
    "label" : "\uD83D\uDCCB View Breakdowns",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "detail",
    "label" : "\uD83D\uDD0D Breakdown Details",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_id_input",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_breakdown_location",
  "type" : "MSG",
  "name" : "Breakdown – Location",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDEA8 Report Breakdown (1/2)",
  "content" : "Share your *current location* \uD83D\uDCCD\n\nTap \uD83D\uDCCE → Location\n_or type the location/landmark_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 2000.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LOCATION",
    "variable" : "breakdown_location",
    "timeout" : 300,
    "fallbackTargetId" : "msg_maintenance_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_breakdown_issue",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_breakdown_issue",
  "type" : "MSG",
  "name" : "Breakdown – Issue",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDEA8 Report Breakdown (2/2)",
  "content" : "\uD83D\uDCCD Location received ✅\n\nDescribe the *vehicle issue*:\n\nExamples:\n• Flat tyre on rear left\n• Engine overheating\n• Minor accident\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 2000.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "breakdown_issue",
    "timeout" : 300,
    "fallbackTargetId" : "msg_maintenance_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/owner/maintenance/report",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"location\":\"{{breakdown_location}}\",\"issue\":\"{{breakdown_issue}}\",\"fleet_id\":\"{{data.fleet_id}}\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_breakdown_report_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_breakdown_report_success",
  "type" : "MSG",
  "name" : "Breakdown Reported ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 2000.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_view_breakdowns",
    "label" : "\uD83D\uDCCB View Breakdowns",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDEA8_report_breakdown",
    "label" : "\uD83D\uDEA8 Report Breakdown",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_location",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_maintenance_men",
    "label" : "\uD83D\uDD19 Maintenance Menu",
    "logicEnabled" : false,
    "targetId" : "msg_maintenance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_breakdown_list",
  "type" : "MSG",
  "name" : "Breakdown List",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 2160.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/maintenance/list",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDD0D_breakdown_details",
    "label" : "\uD83D\uDD0D Breakdown Details",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_id_input",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDEA8_report_new",
    "label" : "\uD83D\uDEA8 Report New",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_location",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_go_back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_maintenance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_breakdown_id_input",
  "type" : "MSG",
  "name" : "Breakdown ID Input",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDD0D Breakdown Details",
  "content" : "Enter the *Breakdown ID*:\n\nExample: _BRK-30001_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 2320.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "breakdown_id",
    "timeout" : 120,
    "fallbackTargetId" : "msg_maintenance_menu",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_breakdown_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_breakdown_detail",
  "type" : "MSG",
  "name" : "Breakdown Detail",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 2320.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/owner/maintenance/detail",
    "headers" : [ ],
    "params" : [ {
      "key" : "id",
      "value" : "{{breakdown_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDCCB_view_breakdowns",
    "label" : "\uD83D\uDCCB View Breakdowns",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDEA8_report_breakdown",
    "label" : "\uD83D\uDEA8 Report Breakdown",
    "logicEnabled" : false,
    "targetId" : "msg_breakdown_location",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back_maintenance_men",
    "label" : "\uD83D\uDD19 Maintenance Menu",
    "logicEnabled" : false,
    "targetId" : "msg_maintenance_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_goodbye",
  "type" : "MSG",
  "name" : "Goodbye",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDC4B Thank You!",
  "content" : "Thank you for using *BharatFleet Assistant*. \uD83D\uDE4F\n\nType *hi* anytime to start again.\n\n_Have a great day!_",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 1950.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_welcome",
  "type" : "MSG",
  "name" : "Driver Welcome",
  "msgType" : "TEXT",
  "title" : "{{data.greeting}}",
  "content" : "Namaste *{{data.name}}* \uD83D\uDE4F\nWelcome to your *Driver Assistant*.\n\nPlease choose an option below:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 380.0,
  "y" : 2100.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "epod",
    "label" : "\uD83D\uDCE6 Submit ePOD",
    "logicEnabled" : false,
    "targetId" : "msg_epod_select_trip",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "docs",
    "label" : "\uD83D\uDCC4 My Documents",
    "logicEnabled" : false,
    "targetId" : "msg_my_docs",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "trip_docs",
    "label" : "\uD83D\uDCD1 Trip Documents",
    "logicEnabled" : false,
    "targetId" : "msg_trip_docs_input",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "breakdown",
    "label" : "\uD83D\uDEA8 Report Breakdown",
    "logicEnabled" : false,
    "targetId" : "msg_drv_breakdown_location",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDCB8_add_expense",
    "label" : "\uD83D\uDCB8 Add Expense",
    "logicEnabled" : false,
    "targetId" : "msg_drv_expense_type",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "sos",
    "label" : "\uD83C\uDD98 SOS",
    "logicEnabled" : false,
    "targetId" : "msg_sos_location",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "attendance",
    "label" : "\uD83D\uDD50 Attendance",
    "logicEnabled" : true,
    "targetId" : "msg_attendance_punch_in",
    "api" : {
      "enabled" : true,
      "method" : "GET",
      "url" : "http://localhost:8088/api/sample/driver/attendance/validate",
      "headers" : [ ],
      "params" : [ {
        "key" : "phone",
        "value" : "{{phone}}"
      } ],
      "body" : ""
    },
    "conditions" : [ {
      "field" : "btn_data.action",
      "op" : "==",
      "value" : "punch_out",
      "targetId" : "msg_attendance_punch_out"
    } ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_epod_select_trip",
  "type" : "MSG",
  "name" : "ePOD – Trip ID",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCE6 Submit ePOD (1/4)",
  "content" : "Enter the *Trip ID*:\n\nExample: _TRP-5040_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 2300.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "epod_trip_id",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_epod_poc_name",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_epod_poc_name",
  "type" : "MSG",
  "name" : "ePOD – POC Name",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCE6 Submit ePOD (2/4)",
  "content" : "✅ Trip: *{{epod_trip_id}}*\n\nEnter *POC (Point of Contact) name* at delivery location:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 2300.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "epod_poc_name",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_epod_poc_mobile",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_epod_poc_mobile",
  "type" : "MSG",
  "name" : "ePOD – POC Mobile",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCE6 Submit ePOD (3/4)",
  "content" : "✅ POC: *{{epod_poc_name}}*\n\nEnter *POC mobile number*:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 2300.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "epod_poc_mobile",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "^[6-9][0-9]{9}$",
    "invalidMessage" : "⚠️ Enter a valid 10-digit mobile number.",
    "actionMode" : "STORE",
    "targetId" : "msg_epod_image",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_epod_image",
  "type" : "MSG",
  "name" : "ePOD – Upload Image",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCE6 Submit ePOD (4/4)",
  "content" : "✅ POC: *{{epod_poc_name}}* ({{epod_poc_mobile}})\n\nUpload *Proof of Delivery* image \uD83D\uDCF8\n\n• Show signed delivery receipt\n• Make sure text is clearly visible\nTap \uD83D\uDCCE → Camera or Gallery\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 2300.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "IMAGE",
    "variable" : "epod_image",
    "timeout" : 600,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "⚠️ Please upload an *image* of the signed delivery receipt.",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/driver/epod",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"trip_id\":\"{{epod_trip_id}}\",\"poc_name\":\"{{epod_poc_name}}\",\"poc_mobile\":\"{{epod_poc_mobile}}\",\"image_url\":\"{{epod_image_url}}\",\"driver_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_epod_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_epod_success",
  "type" : "MSG",
  "name" : "ePOD Success ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2050.0,
  "y" : 2300.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDE9A_my_trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDCE6_submit_epod",
    "label" : "\uD83D\uDCE6 Submit ePOD",
    "logicEnabled" : false,
    "targetId" : "msg_epod_select_trip",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83C\uDFE0_driver_menu",
    "label" : "\uD83C\uDFE0 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_my_trips_filter",
  "type" : "MSG",
  "name" : "My Trips Filter",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDE9A My Trips",
  "content" : "Select trip status:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 2500.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "upcoming",
    "label" : "⏳ Upcoming",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "live",
    "label" : "\uD83D\uDD04 Live",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "completed",
    "label" : "✅ Completed",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_list",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_my_trips_list",
  "type" : "MSG",
  "name" : "My Trips List",
  "msgType" : "DYNAMIC_LIST",
  "title" : "\uD83D\uDE9A My Trips",
  "content" : "Select a trip to view details:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "trips",
  "listTitleField" : "label",
  "listDescField" : "description",
  "listIdField" : "trip_id",
  "listSectionTitle" : "My Trips",
  "listButtonLabel" : "Select Trip",
  "listEmptyMessage" : "No trips found for this status.",
  "x" : 1050.0,
  "y" : 2500.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/driver/trips",
    "headers" : [ ],
    "params" : [ {
      "key" : "filter",
      "value" : "{{last_button}}"
    }, {
      "key" : "phone",
      "value" : "{{phone}}"
    } ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LIST_REPLY",
    "variable" : "my_selected_trip",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_my_trips_detail",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_my_trips_detail",
  "type" : "MSG",
  "name" : "My Trip Detail",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 2500.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/driver/trips/detail",
    "headers" : [ ],
    "params" : [ {
      "key" : "trip_id",
      "value" : "{{my_selected_trip_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDE9A_my_trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDCD1_trip_documents",
    "label" : "\uD83D\uDCD1 Trip Documents",
    "logicEnabled" : false,
    "targetId" : "msg_trip_docs_input",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83C\uDFE0_driver_menu",
    "label" : "\uD83C\uDFE0 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_my_docs",
  "type" : "MSG",
  "name" : "My Documents",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 2700.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/driver/documents",
    "headers" : [ ],
    "params" : [ {
      "key" : "phone",
      "value" : "{{phone}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDE9A_my_trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDCE6_submit_epod",
    "label" : "\uD83D\uDCE6 Submit ePOD",
    "logicEnabled" : false,
    "targetId" : "msg_epod_select_trip",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83C\uDFE0_driver_menu",
    "label" : "\uD83C\uDFE0 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_docs_input",
  "type" : "MSG",
  "name" : "Trip Documents – Trip ID",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCD1 Trip Documents",
  "content" : "Enter the *Trip ID*:\n\nExample: _TRP-5040_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 2700.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "docs_trip_id",
    "timeout" : 120,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_trip_docs_result",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_trip_docs_result",
  "type" : "MSG",
  "name" : "Trip Documents Result",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 2700.0,
  "preSendApi" : {
    "enabled" : true,
    "method" : "GET",
    "url" : "http://localhost:8088/api/sample/driver/trip-documents",
    "headers" : [ ],
    "params" : [ {
      "key" : "trip_id",
      "value" : "{{docs_trip_id}}"
    } ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDE9A_my_trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDCE6_submit_epod",
    "label" : "\uD83D\uDCE6 Submit ePOD",
    "logicEnabled" : false,
    "targetId" : "msg_epod_select_trip",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83C\uDFE0_driver_menu",
    "label" : "\uD83C\uDFE0 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_breakdown_location",
  "type" : "MSG",
  "name" : "Driver Breakdown – Location",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDEA8 Report Breakdown (1/2)",
  "content" : "Share your *current location* \uD83D\uDCCD\n\nTap \uD83D\uDCCE → Location\n_or type the location/landmark_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 2900.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LOCATION",
    "variable" : "drv_location",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_drv_breakdown_issue",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_breakdown_issue",
  "type" : "MSG",
  "name" : "Driver Breakdown – Issue",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDEA8 Report Breakdown (2/2)",
  "content" : "\uD83D\uDCCD Location received ✅\n\nDescribe the *vehicle issue*:\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 2900.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "drv_issue",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/driver/breakdown",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"location\":\"{{drv_location}}\",\"issue\":\"{{drv_issue}}\",\"driver_id\":\"{{data.user_id}}\",\"phone\":\"{{phone}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_drv_breakdown_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_breakdown_success",
  "type" : "MSG",
  "name" : "Breakdown Reported ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 2900.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "\uD83D\uDE9A_my_trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83C\uDFE0_driver_menu",
    "label" : "\uD83C\uDFE0 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_sos_location",
  "type" : "MSG",
  "name" : "SOS – Location",
  "msgType" : "TEXT",
  "title" : "\uD83C\uDD98 SOS Alert",
  "content" : "⚠️ *EMERGENCY SOS* ⚠️\n\nShare your *current location* immediately:\n\nTap \uD83D\uDCCE → Location\n_or type your location/landmark_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 700.0,
  "y" : 3100.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LOCATION",
    "variable" : "sos_location",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/driver/sos",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"location\":\"{{sos_location}}\",\"driver_id\":\"{{data.user_id}}\",\"phone\":\"{{phone}}\",\"name\":\"{{data.name}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_sos_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_sos_success",
  "type" : "MSG",
  "name" : "SOS Sent ✅",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 3100.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "menu",
    "label" : "\uD83C\uDFE0 Main Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_help",
  "type" : "MSG",
  "name" : "Help",
  "msgType" : "TEXT",
  "title" : "ℹ️ Help",
  "content" : "\uD83D\uDCDE *Support Helpline:* 1800-XXX-XXXX _(24x7)_\n\uD83D\uDCE7 *Email:* support@fleetops.com\n\n*Quick Commands:*\n• *hi* — Restart\n• *menu* — Go to your menu\n• *help* — This message\n\n_Powered by Bharatfleet \uD83D\uDE9B",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 60.0,
  "y" : 600.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "menu",
    "label" : "\uD83C\uDFE0 Main Menu",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_type",
  "type" : "MSG",
  "name" : "Driver Expense Type",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCB8 Add Expense",
  "content" : "Select the type of expense:",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 200.0,
  "y" : 1900.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "⛽_fuel",
    "label" : "⛽ Fuel",
    "logicEnabled" : false,
    "targetId" : "msg_drv_expense_fuel",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDEE3_toll_charges",
    "label" : "\uD83D\uDEE3 Toll Charges",
    "logicEnabled" : false,
    "targetId" : "msg_drv_expense_toll",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDD27_repair",
    "label" : "\uD83D\uDD27 Repair",
    "logicEnabled" : false,
    "targetId" : "msg_drv_expense_repair",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDCE6_other",
    "label" : "\uD83D\uDCE6 Other",
    "logicEnabled" : false,
    "targetId" : "msg_drv_expense_other",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "drv_exp_back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_fuel",
  "type" : "MSG",
  "name" : "Driver Fuel Expense Amount",
  "msgType" : "TEXT",
  "title" : "⛽ Fuel Expense",
  "content" : "Please enter the *fuel amount* in ₹:\n\n_Example: 3500_\n\nType *0* to go back or *cancel* to abort.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 200.0,
  "y" : 2080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "NUMBER",
    "variable" : "drv_exp_amount",
    "timeout" : 300,
    "fallbackTargetId" : "msg_drv_expense_type",
    "validationRegex" : "^[0-9]+(\\.[0-9]{1,2})?$",
    "invalidMessage" : "⚠️ Please enter a valid amount in numbers only.\n\nExample: *3500*\n\nType *0* to go back.",
    "actionMode" : "STORE",
    "targetId" : "msg_drv_expense_receipt",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_toll",
  "type" : "MSG",
  "name" : "Driver Toll Expense Amount",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDEE3 Toll Charge",
  "content" : "Please enter the *toll amount* in ₹:\n\n_Example: 150_\n\nType *0* to go back or *cancel* to abort.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 400.0,
  "y" : 2080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "NUMBER",
    "variable" : "drv_exp_amount",
    "timeout" : 300,
    "fallbackTargetId" : "msg_drv_expense_type",
    "validationRegex" : "^[0-9]+(\\.[0-9]{1,2})?$",
    "invalidMessage" : "⚠️ Please enter a valid amount. Example: *150*\n\nType *0* to go back.",
    "actionMode" : "STORE",
    "targetId" : "msg_drv_expense_receipt",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_repair",
  "type" : "MSG",
  "name" : "Driver Repair Expense Amount",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDD27 Repair Expense",
  "content" : "Please enter the *repair amount* in ₹:\n\n_Example: 2500_\n\nType *0* to go back or *cancel* to abort.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 600.0,
  "y" : 2080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "NUMBER",
    "variable" : "drv_exp_amount",
    "timeout" : 300,
    "fallbackTargetId" : "msg_drv_expense_type",
    "validationRegex" : "^[0-9]+(\\.[0-9]{1,2})?$",
    "invalidMessage" : "⚠️ Please enter a valid amount. Example: *2500*\n\nType *0* to go back.",
    "actionMode" : "STORE",
    "targetId" : "msg_drv_expense_receipt",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_other",
  "type" : "MSG",
  "name" : "Driver Other Expense Detail",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCE6 Other Expense",
  "content" : "Please describe the expense and amount:\n\n_Format: Description : Amount_\n_Example: Parking : 50_\n\nType *0* to go back or *cancel* to abort.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 800.0,
  "y" : 2080.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "drv_exp_detail",
    "timeout" : 300,
    "fallbackTargetId" : "msg_drv_expense_type",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_drv_expense_receipt",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_receipt",
  "type" : "MSG",
  "name" : "Driver Expense Receipt Upload",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCF8 Upload Receipt",
  "content" : "\uD83D\uDCF8 Upload the *receipt/bill* image:\n\n\uD83E\uDD16 _AI will auto-verify and extract details!_\nTap \uD83D\uDCCE → Camera or Gallery\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 500.0,
  "y" : 2260.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "IMAGE",
    "variable" : "drv_exp_receipt",
    "timeout" : 300,
    "fallbackTargetId" : "msg_drv_expense_type",
    "validationRegex" : "",
    "invalidMessage" : "⚠️ Please upload an *image* of the receipt. Tap \uD83D\uDCCE to attach.",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/ocr/expense",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"type\":\"{{last_button}}\",\"amount\":\"{{drv_exp_amount}}\",\"detail\":\"{{drv_exp_detail}}\",\"receipt_url\":\"{{drv_exp_receipt_url}}\",\"driver_id\":\"{{data.user_id}}\",\"phone\":\"{{phone}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_drv_expense_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_drv_expense_success",
  "type" : "MSG",
  "name" : "Driver Expense Success",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{reply_api.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 500.0,
  "y" : 2440.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "➕_add_another_expens",
    "label" : "➕ Add Expense",
    "logicEnabled" : false,
    "targetId" : "msg_drv_expense_type",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83D\uDE9A_my_trips",
    "label" : "\uD83D\uDE9A My Trips",
    "logicEnabled" : false,
    "targetId" : "msg_my_trips_filter",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "\uD83C\uDFE0_driver_menu",
    "label" : "\uD83C\uDFE0 Driver Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_welcome",
  "type" : "MSG",
  "name" : "Prospect Welcome",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDC4B Welcome to BharatFleet!",
  "content" : "Namaste! \uD83D\uDE4F\n\nWelcome to *BharatFleet* — India's smart fleet management platform.\n\nWe help fleet owners manage trips, drivers, vehicles and finances — all from WhatsApp! \uD83D\uDE9B\n\nMay I know your *full name* to get started? \uD83D\uDC47",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 380.0,
  "y" : 3400.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "prospect_name",
    "timeout" : 300,
    "fallbackTargetId" : "msg_prospect_welcome",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "msg_prospect_form",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : false,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_form",
  "type" : "MSG",
  "name" : "Prospect Lead Form",
  "msgType" : "WA_FORM",
  "title" : "",
  "content" : "Thank you *{{prospect_name}}*! \uD83C\uDF89\n\nPlease fill out this quick form. Our team will get in touch with you shortly.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "YOUR_LEAD_FORM_ID",
  "waFormInitialScreen" : "BUSINESS_DETAILS",
  "waFormCtaText" : "\uD83D\uDCCB Fill Lead Form",
  "waFormJson" : "{\"version\": \"7.3\", \"screens\": [{\"id\": \"BUSINESS_DETAILS\", \"title\": \"Step 1 of 3\", \"data\": {}, \"layout\": {\"type\": \"SingleColumnLayout\", \"children\": [{\"type\": \"Form\", \"name\": \"form\", \"children\": [{\"type\": \"TextSubheading\", \"text\": \"Tell us about your business\"}, {\"type\": \"TextInput\", \"label\": \"Company Name\", \"name\": \"company_name\", \"required\": true}, {\"type\": \"TextInput\", \"label\": \"City of Operation\", \"name\": \"city\", \"required\": true}, {\"type\": \"Dropdown\", \"label\": \"Fleet Size\", \"name\": \"fleet_size\", \"required\": true, \"data-source\": [{\"id\": \"0 to 10\", \"title\": \"0 to 10\"}, {\"id\": \"11 to 20\", \"title\": \"11 to 20\"}, {\"id\": \"21 to 30\", \"title\": \"21 to 30\"}, {\"id\": \"31 to 40\", \"title\": \"31 to 40\"}, {\"id\": \"41 to 50\", \"title\": \"41 to 50\"}, {\"id\": \"50 plus\", \"title\": \"50 plus\"}]}, {\"type\": \"Dropdown\", \"label\": \"Industry\", \"name\": \"industry\", \"required\": true, \"data-source\": [{\"id\": \"Cement\", \"title\": \"Cement\"}, {\"id\": \"Construction\", \"title\": \"Construction\"}, {\"id\": \"Automobile\", \"title\": \"Automobile\"}, {\"id\": \"eCommerce\", \"title\": \"eCommerce\"}, {\"id\": \"Agriculture\", \"title\": \"Agriculture\"}, {\"id\": \"Trading\", \"title\": \"Trading\"}, {\"id\": \"Container and Cargo\", \"title\": \"Container and Cargo\"}, {\"id\": \"Other\", \"title\": \"Other\"}]}, {\"type\": \"Dropdown\", \"label\": \"Trip Type\", \"name\": \"trip_type\", \"required\": true, \"data-source\": [{\"id\": \"Full Truck Load (FTL)\", \"title\": \"Full Truck Load (FTL)\"}, {\"id\": \"Part Truck Load (PTL)\", \"title\": \"Part Truck Load (PTL)\"}, {\"id\": \"Parchoon/Retail Load\", \"title\": \"Parchoon/Retail Load\"}, {\"id\": \"Freight Forwarding\", \"title\": \"Freight Forwarding\"}, {\"id\": \"3PL\", \"title\": \"3PL\"}, {\"id\": \"Last Mile Delivery\", \"title\": \"Last Mile Delivery\"}]}, {\"type\": \"Footer\", \"label\": \"Next\", \"on-click-action\": {\"name\": \"navigate\", \"next\": {\"type\": \"screen\", \"name\": \"DIAGNOSTIC\"}, \"payload\": {\"company_name\": \"${form.company_name}\", \"city\": \"${form.city}\", \"fleet_size\": \"${form.fleet_size}\", \"industry\": \"${form.industry}\", \"trip_type\": \"${form.trip_type}\"}}}]}]}}, {\"id\": \"DIAGNOSTIC\", \"title\": \"Step 2 of 3\", \"data\": {\"company_name\": {\"type\": \"string\", \"__example__\": \"ABC Logistics\"}, \"city\": {\"type\": \"string\", \"__example__\": \"Delhi\"}, \"fleet_size\": {\"type\": \"string\", \"__example__\": \"0 to 10\"}, \"industry\": {\"type\": \"string\", \"__example__\": \"Cement\"}, \"trip_type\": {\"type\": \"string\", \"__example__\": \"Full Truck Load (FTL)\"}}, \"layout\": {\"type\": \"SingleColumnLayout\", \"children\": [{\"type\": \"Form\", \"name\": \"form\", \"children\": [{\"type\": \"TextSubheading\", \"text\": \"Cash flow issues affecting your business?\"}, {\"type\": \"CheckboxGroup\", \"label\": \"Select all that apply\", \"name\": \"cashflow_issues\", \"data-source\": [{\"id\": \"No visibility of P&L basis Trips/Drivers\", \"title\": \"No visibility of P&L basis Trips/Drivers\"}, {\"id\": \"Delayed invoicing\", \"title\": \"Delayed invoicing\"}, {\"id\": \"Difficulty tracking outstanding receivables\", \"title\": \"Difficulty tracking outstanding receivables\"}, {\"id\": \"No visibility on party-wise dues\", \"title\": \"No visibility on party-wise dues\"}, {\"id\": \"Late payments due to missing ePODs\", \"title\": \"Late payments due to missing ePODs\"}, {\"id\": \"Expenses increasing but profits are stagnant\", \"title\": \"Expenses increasing but profits are stagnant\"}, {\"id\": \"Difficulty giving receipts to Accounts team\", \"title\": \"Difficulty giving receipts to Accounts team\"}]}, {\"type\": \"Footer\", \"label\": \"Next\", \"on-click-action\": {\"name\": \"navigate\", \"next\": {\"type\": \"screen\", \"name\": \"OPERATIONAL\"}, \"payload\": {\"company_name\": \"${data.company_name}\", \"city\": \"${data.city}\", \"fleet_size\": \"${data.fleet_size}\", \"industry\": \"${data.industry}\", \"trip_type\": \"${data.trip_type}\", \"cashflow_issues\": \"${form.cashflow_issues}\"}}}]}]}}, {\"id\": \"OPERATIONAL\", \"title\": \"Step 3 of 3\", \"data\": {\"company_name\": {\"type\": \"string\", \"__example__\": \"ABC Logistics\"}, \"city\": {\"type\": \"string\", \"__example__\": \"Delhi\"}, \"fleet_size\": {\"type\": \"string\", \"__example__\": \"0 to 10\"}, \"industry\": {\"type\": \"string\", \"__example__\": \"Cement\"}, \"trip_type\": {\"type\": \"string\", \"__example__\": \"Full Truck Load (FTL)\"}, \"cashflow_issues\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"__example__\": [\"Delayed invoicing\"]}}, \"terminal\": true, \"success\": true, \"layout\": {\"type\": \"SingleColumnLayout\", \"children\": [{\"type\": \"Form\", \"name\": \"form\", \"children\": [{\"type\": \"TextSubheading\", \"text\": \"Select problems to solve:\"}, {\"type\": \"CheckboxGroup\", \"label\": \"Operational Issues\", \"name\": \"operational_issues\", \"data-source\": [{\"id\": \"Penalties for late deliveries\", \"title\": \"Penalties for late deliveries\"}, {\"id\": \"Vehicles with missing/expired documents\", \"title\": \"Vehicles with missing/expired documents\"}, {\"id\": \"Empty leg trips eating revenues\", \"title\": \"Empty leg trips eating revenues\"}, {\"id\": \"Missing out on vehicle service schedules\", \"title\": \"Missing out on vehicle service schedules\"}, {\"id\": \"Using multiple spreadsheets/apps\", \"title\": \"Using multiple spreadsheets/apps\"}]}, {\"type\": \"Footer\", \"label\": \"Submit\", \"on-click-action\": {\"name\": \"complete\", \"payload\": {\"company_name\": \"${data.company_name}\", \"city\": \"${data.city}\", \"fleet_size\": \"${data.fleet_size}\", \"industry\": \"${data.industry}\", \"trip_type\": \"${data.trip_type}\", \"cashflow_issues\": \"${data.cashflow_issues}\", \"operational_issues\": \"${form.operational_issues}\"}}}]}]}}]}",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 680.0,
  "y" : 3400.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "WA_FORM",
    "variable" : "lead_form_data",
    "timeout" : 900,
    "fallbackTargetId" : "msg_prospect_form",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/prospect/create",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"phone\":\"{{phone}}\",\"name\":\"{{prospect_name}}\",\"company_name\":\"{{form_data.company_name}}\",\"city\":\"{{form_data.city}}\",\"fleet_size\":\"{{form_data.fleet_size}}\",\"industry\":\"{{form_data.industry}}\",\"trip_type\":\"{{form_data.trip_type}}\",\"cashflow_issues\":\"{{form_data.cashflow_issues}}\",\"operational_issues\":\"{{form_data.operational_issues}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "lead_data",
    "successTargetId" : "msg_prospect_post_form",
    "failTargetId" : "msg_prospect_post_form"
  }
}, {
  "id" : "msg_prospect_post_form",
  "type" : "MSG",
  "name" : "Post Lead Form",
  "msgType" : "TEXT",
  "title" : "\uD83C\uDF89 Thank You!",
  "content" : "We've received your details! Our team will reach out within 24 hours. \uD83D\uDE4F\n\nMeanwhile, you can *set up your fleet* right now — add your first driver, vehicle & party in under 2 minutes!",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 980.0,
  "y" : 3400.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "schedule_demo",
    "label" : "\uD83D\uDCC5 Schedule Demo",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_schedule",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "view_demo",
    "label" : "▶️ View Demo",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_view_demo",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "setup",
    "label" : "\uD83D\uDE80 Setup My Fleet",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_setup_form",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_schedule",
  "type" : "MSG",
  "name" : "Schedule Demo",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCC5 Demo Scheduled!",
  "content" : "Great choice! \uD83C\uDFAF\n\nOur product specialist will contact you shortly to confirm a time slot convenient for you.\n\n✅ *What to expect:*\n• 30-minute live demo\n• See real fleet management in action\n• Get your questions answered\n\nWe'll see you soon! \uD83D\uDE9B",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1280.0,
  "y" : 3200.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "back_prospect",
    "label" : "⬅️ Back",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_post_form",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_view_demo",
  "type" : "MSG",
  "name" : "View Demo",
  "msgType" : "TEXT",
  "title" : "▶️ BharatFleet Demo",
  "content" : "Watch BharatFleet in action! \uD83C\uDFAC\n\n\uD83D\uDD17 *Demo Video:* https://demo.bharatfleet.in/video\n\n\uD83D\uDCCB *What you'll see:*\n• Real-time trip tracking\n• Driver management\n• Finance & expense control\n• WhatsApp-first workflow\n\nReady to get started?",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1280.0,
  "y" : 3400.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "schedule_after_demo",
    "label" : "\uD83D\uDCC5 Schedule Demo",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_schedule",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "setup_after_demo",
    "label" : "⚙️ Continue Setup",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_setup_form",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_setup_form",
  "type" : "MSG",
  "name" : "Setup – Add Driver, Vehicle & Party",
  "msgType" : "WA_FORM",
  "title" : "",
  "content" : "Let's set up your *BharatFleet* account! \uD83D\uDE9B\n\nWe'll quickly add your:\n\uD83D\uDC68‍✈️ First *Driver*\n\uD83D\uDE9B First *Vehicle*\n\uD83C\uDFED First *Party / Consignee*\n\nTakes less than 2 minutes! \uD83D\uDC47",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "SETUP_FORM_ID",
  "waFormInitialScreen" : "ADD_DRIVER",
  "waFormCtaText" : "\uD83D\uDE80 Setup My Fleet",
  "waFormJson" : "{\"version\": \"7.3\", \"screens\": [{\"id\": \"ADD_DRIVER\", \"title\": \"Step 1 of 3 \\u2014 Driver\", \"data\": {}, \"layout\": {\"type\": \"SingleColumnLayout\", \"children\": [{\"type\": \"Form\", \"name\": \"form\", \"children\": [{\"type\": \"TextSubheading\", \"text\": \"Add your first driver\"}, {\"type\": \"TextInput\", \"label\": \"Driver Full Name\", \"name\": \"driver_name\", \"required\": true}, {\"type\": \"TextInput\", \"label\": \"Mobile Number (10 digits)\", \"name\": \"driver_mobile\", \"required\": true}, {\"type\": \"Footer\", \"label\": \"Next \\u2192 Add Vehicle\", \"on-click-action\": {\"name\": \"navigate\", \"next\": {\"type\": \"screen\", \"name\": \"ADD_VEHICLE\"}, \"payload\": {\"driver_name\": \"${form.driver_name}\", \"driver_mobile\": \"${form.driver_mobile}\"}}}]}]}}, {\"id\": \"ADD_VEHICLE\", \"title\": \"Step 2 of 3 \\u2014 Vehicle\", \"data\": {\"driver_name\": {\"type\": \"string\", \"__example__\": \"Ramesh Kumar\"}, \"driver_mobile\": {\"type\": \"string\", \"__example__\": \"9876543210\"}}, \"layout\": {\"type\": \"SingleColumnLayout\", \"children\": [{\"type\": \"Form\", \"name\": \"form\", \"children\": [{\"type\": \"TextSubheading\", \"text\": \"Add your first vehicle\"}, {\"type\": \"TextInput\", \"label\": \"Vehicle Registration No.\", \"name\": \"vehicle_number\", \"required\": true}, {\"type\": \"Dropdown\", \"label\": \"Vehicle Type\", \"name\": \"vehicle_type\", \"required\": true, \"data-source\": [{\"id\": \"HCV (>12 Ton)\", \"title\": \"\\ud83d\\ude9b HCV (>12 Ton)\"}, {\"id\": \"MCV (6-12 Ton)\", \"title\": \"\\ud83d\\ude9a MCV (6-12 Ton)\"}, {\"id\": \"LCV (<6 Ton)\", \"title\": \"\\ud83d\\udefb LCV (<6 Ton)\"}, {\"id\": \"Trailer\", \"title\": \"\\ud83d\\ude9c Trailer\"}, {\"id\": \"Tanker\", \"title\": \"\\u26fd Tanker\"}, {\"id\": \"Container\", \"title\": \"\\ud83d\\udce6 Container\"}]}, {\"type\": \"Footer\", \"label\": \"Next \\u2192 Add Party\", \"on-click-action\": {\"name\": \"navigate\", \"next\": {\"type\": \"screen\", \"name\": \"ADD_PARTY\"}, \"payload\": {\"driver_name\": \"${data.driver_name}\", \"driver_mobile\": \"${data.driver_mobile}\", \"vehicle_number\": \"${form.vehicle_number}\", \"vehicle_type\": \"${form.vehicle_type}\"}}}]}]}}, {\"id\": \"ADD_PARTY\", \"title\": \"Step 3 of 3 \\u2014 Party\", \"data\": {\"driver_name\": {\"type\": \"string\", \"__example__\": \"Ramesh Kumar\"}, \"driver_mobile\": {\"type\": \"string\", \"__example__\": \"9876543210\"}, \"vehicle_number\": {\"type\": \"string\", \"__example__\": \"MH-12-AB-1234\"}, \"vehicle_type\": {\"type\": \"string\", \"__example__\": \"HCV (>12 Ton)\"}}, \"terminal\": true, \"success\": true, \"layout\": {\"type\": \"SingleColumnLayout\", \"children\": [{\"type\": \"Form\", \"name\": \"form\", \"children\": [{\"type\": \"TextSubheading\", \"text\": \"Add your first consignor / party\"}, {\"type\": \"TextInput\", \"label\": \"Party / Company Name\", \"name\": \"party_name\", \"required\": true}, {\"type\": \"TextInput\", \"label\": \"Contact Person Name\", \"name\": \"party_contact\", \"required\": true}, {\"type\": \"TextInput\", \"label\": \"Contact Mobile\", \"name\": \"party_mobile\", \"required\": true}, {\"type\": \"TextInput\", \"label\": \"City\", \"name\": \"party_city\", \"required\": true}, {\"type\": \"Footer\", \"label\": \"Complete Setup \\u2705\", \"on-click-action\": {\"name\": \"complete\", \"payload\": {\"driver_name\": \"${data.driver_name}\", \"driver_mobile\": \"${data.driver_mobile}\", \"vehicle_number\": \"${data.vehicle_number}\", \"vehicle_type\": \"${data.vehicle_type}\", \"party_name\": \"${form.party_name}\", \"party_contact\": \"${form.party_contact}\", \"party_mobile\": \"${form.party_mobile}\", \"party_city\": \"${form.party_city}\"}}}]}]}}]}",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1280.0,
  "y" : 3600.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "WA_FORM",
    "variable" : "setup_form_data",
    "timeout" : 900,
    "fallbackTargetId" : "msg_prospect_setup_form",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/prospect/create-account",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"phone\":\"{{phone}}\",\"name\":\"{{prospect_name}}\",\"company_name\":\"{{form_data.company_name}}\",\"city\":\"{{form_data.city}}\",\"fleet_size\":\"{{form_data.fleet_size}}\",\"industry\":\"{{form_data.industry}}\",\"driver_name\":\"{{form_data.driver_name}}\",\"driver_mobile\":\"{{form_data.driver_mobile}}\",\"vehicle_number\":\"{{form_data.vehicle_number}}\",\"vehicle_type\":\"{{form_data.vehicle_type}}\",\"party_name\":\"{{form_data.party_name}}\",\"party_contact\":\"{{form_data.party_contact}}\",\"party_mobile\":\"{{form_data.party_mobile}}\",\"party_city\":\"{{form_data.party_city}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "setup_data",
    "successTargetId" : "msg_prospect_account_created",
    "failTargetId" : "msg_prospect_setup_form"
  }
}, {
  "id" : "msg_attendance_punch_in",
  "type" : "MSG",
  "name" : "Attendance – Punch In",
  "msgType" : "TEXT",
  "title" : "\uD83C\uDF05 Good Morning!",
  "content" : "Ready to start your shift? \uD83D\uDCAA\n\nTap *Punch In* and share your location to mark your attendance.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 380.0,
  "y" : 3000.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "punch_in_btn",
    "label" : "\uD83D\uDCCD Punch In",
    "logicEnabled" : false,
    "targetId" : "msg_attendance_punch_in_loc",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_attendance_punch_in_loc",
  "type" : "MSG",
  "name" : "Punch In – Location",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCCD Share Your Location",
  "content" : "Please share your *current location* to punch in.\n\nTap \uD83D\uDCCE → Location → Send Current Location",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 680.0,
  "y" : 3000.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LOCATION",
    "variable" : "punch_in_location",
    "timeout" : 300,
    "fallbackTargetId" : "msg_attendance_punch_in",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/driver/attendance/create",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"phone\":\"{{phone}}\",\"action\":\"punch_in\",\"lat\":\"{{punch_in_location_lat}}\",\"lng\":\"{{punch_in_location_lng}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "attendance_data",
    "successTargetId" : "msg_attendance_success",
    "failTargetId" : "msg_attendance_punch_in_loc"
  }
}, {
  "id" : "msg_attendance_punch_out",
  "type" : "MSG",
  "name" : "Attendance – Punch Out",
  "msgType" : "TEXT",
  "title" : "\uD83C\uDF19 Good Work Today!",
  "content" : "Time to call it a day! \uD83D\uDE4C\n\nTap *Punch Out* and share your location to mark the end of your shift.",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 380.0,
  "y" : 3200.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "punch_out_btn",
    "label" : "\uD83D\uDCCD Punch Out",
    "logicEnabled" : false,
    "targetId" : "msg_attendance_punch_out_loc",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_attendance_punch_out_loc",
  "type" : "MSG",
  "name" : "Punch Out – Location",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCCD Share Your Location",
  "content" : "Please share your *current location* to punch out.\n\nTap \uD83D\uDCCE → Location → Send Current Location",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 680.0,
  "y" : 3200.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "LOCATION",
    "variable" : "punch_out_location",
    "timeout" : 300,
    "fallbackTargetId" : "msg_attendance_punch_out",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/driver/attendance/create",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"phone\":\"{{phone}}\",\"action\":\"punch_out\",\"lat\":\"{{punch_out_location_lat}}\",\"lng\":\"{{punch_out_location_lng}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "attendance_data",
    "successTargetId" : "msg_attendance_success",
    "failTargetId" : "msg_attendance_punch_out_loc"
  }
}, {
  "id" : "msg_attendance_success",
  "type" : "MSG",
  "name" : "Attendance Success",
  "msgType" : "TEXT",
  "title" : "",
  "content" : "{{attendance_data.message}}",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 980.0,
  "y" : 3100.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "back_to_menu",
    "label" : "\uD83C\uDFE0 Main Menu",
    "logicEnabled" : false,
    "targetId" : "msg_driver_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_account_created",
  "type" : "MSG",
  "name" : "Account Created \uD83C\uDF89",
  "msgType" : "IMAGE",
  "title" : "",
  "content" : "\uD83C\uDF8A *Congratulations, {{prospect_name}}!* \uD83C\uDF8A\n\nYour *BharatFleet* account has been set up successfully! \uD83D\uDE9B✨\n\n━━━━━━━━━━━━━━━━━━━\n\uD83D\uDD10 *Your Login Credentials*\n━━━━━━━━━━━━━━━━━━━\n\n\uD83D\uDCF1 *Portal:* app.bharatfleet.com\n\uD83D\uDC64 *Username:* {{phone}}\n\uD83D\uDD11 *Password:* bharat@123\n\n\uD83D\uDCF2 *Download App:*\nhttps://play.google.com/store/search?q=bharatfleet&c=apps\n\n━━━━━━━━━━━━━━━━━━━\n\uD83D\uDCCB *Account Summary*\n━━━━━━━━━━━━━━━━━━━\n\n\uD83C\uDFE2 Company: *{{form_data.company_name}}*\n\uD83D\uDCCD City: *{{form_data.city}}*\n\uD83D\uDC68‍✈️ Driver: *{{form_data.driver_name}}* ({{form_data.driver_mobile}})\n\uD83D\uDE9B Vehicle: *{{form_data.vehicle_number}}* ({{form_data.vehicle_type}})\n\uD83C\uDFED Party: *{{form_data.party_name}}* — {{form_data.party_contact}} ({{form_data.party_mobile}})\n\n━━━━━━━━━━━━━━━━━━━\n\uD83D\uDCDE *Your Dedicated Sales Manager*\n━━━━━━━━━━━━━━━━━━━\n\n\uD83D\uDC64 *Rajesh Kumar*\n\uD83D\uDCF1 +91 98765 43210\n\uD83D\uDCE7 rajesh.kumar@bharatfleet.com\n\uD83D\uDCAC WhatsApp: wa.me/919876543210\n\n_Feel free to reach out anytime for help!_\n\n━━━━━━━━━━━━━━━━━━━\n\n⚡ *Next Steps:*\n1. Download the app \uD83D\uDC46\n2. Login with your credentials\n3. Start creating trips!\n\n_Tap \uD83D\uDE80 Start Using to explore your dashboard._",
  "footer" : "",
  "imageUrl" : "https://rocketflow-prod.s3.amazonaws.com/user-img/8ded1754-6e69-4597-aa61-42a9599f4378/IMG/1774353872602.png",
  "imageCaption" : "\uD83C\uDF89 Welcome to BharatFleet!",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1880.0,
  "y" : 3600.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "start_using",
    "label" : "\uD83D\uDE80 Start Using",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "call_sales",
    "label" : "\uD83D\uDCDE Call Sales",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_call_sales",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "help",
    "label" : "❓ Need Help",
    "logicEnabled" : false,
    "targetId" : "msg_help",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_prospect_call_sales",
  "type" : "MSG",
  "name" : "Contact Sales",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCDE Your Sales Manager",
  "content" : "\uD83D\uDC64 *Rajesh Kumar*\n\uD83D\uDCF1 *+91 98765 43210*\n\uD83D\uDCE7 rajesh.kumar@bharatfleet.com\n\n\uD83D\uDCA1 _You can also WhatsApp him directly:_\n\uD83D\uDD17 wa.me/919876543210\n\n⏰ Available Mon-Sat, 9 AM - 7 PM",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 2180.0,
  "y" : 3600.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "back",
    "label" : "\uD83D\uDD19 Back",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_account_created",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "start",
    "label" : "\uD83D\uDE80 Start Using",
    "logicEnabled" : false,
    "targetId" : "msg_owner_welcome",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_lead_welcome_back",
  "type" : "MSG",
  "name" : "Lead – Welcome Back",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDC4B Welcome Back!",
  "content" : "Namaste *{{data.name}}*! \uD83D\uDE4F\n\nWe see you've already shown interest in *BharatFleet*.\n\nYour lead details:\n\uD83C\uDFE2 Company: *{{data.company_name}}*\n\uD83D\uDCCD City: *{{data.city}}*\n\uD83D\uDE9B Fleet: *{{data.fleet_size}}*\n\nLet's complete your setup and get you started! It takes less than 2 minutes \uD83D\uDE80",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 380.0,
  "y" : 3200.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "setup",
    "label" : "\uD83D\uDE80 Setup My Fleet",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_setup_form",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "schedule",
    "label" : "\uD83D\uDCC5 Schedule Demo",
    "logicEnabled" : false,
    "targetId" : "msg_prospect_schedule",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "help",
    "label" : "❓ Need Help",
    "logicEnabled" : false,
    "targetId" : "msg_help",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_options",
  "type" : "MSG",
  "name" : "Add Driver – Choose Method",
  "msgType" : "TEXT",
  "title" : "➕ Add Driver",
  "content" : "How would you like to add a driver?",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1440.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "dl_ocr",
    "label" : "\uD83D\uDCF8 Scan DL (AI OCR)",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_mobile_ocr",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "manual",
    "label" : "✍️ Enter Manually",
    "logicEnabled" : false,
    "targetId" : "msg_driver_add_name",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_driver_mgmt_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_mobile_ocr",
  "type" : "MSG",
  "name" : "Add Driver – Mobile (OCR)",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCF8 Add Driver via DL Scan",
  "content" : "Enter driver's *mobile number* (10 digits):\n\n_We'll extract name and details from the DL automatically!_\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1440.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "ocr_driver_mobile",
    "timeout" : 180,
    "fallbackTargetId" : "msg_driver_add_options",
    "validationRegex" : "^[6-9][0-9]{9}$",
    "invalidMessage" : "⚠️ Enter a valid 10-digit mobile number.",
    "actionMode" : "STORE",
    "targetId" : "msg_driver_add_dl_ocr",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_driver_add_dl_ocr",
  "type" : "MSG",
  "name" : "Add Driver – DL Upload (OCR)",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCF8 Upload Driving Licence",
  "content" : "✅ Mobile: *{{ocr_driver_mobile}}*\n\nNow upload the *Driving Licence* photo \uD83D\uDCF8\n\n\uD83E\uDD16 _AI will auto-extract all details!_\nMake sure DL number and expiry are clearly visible.\n\nTap \uD83D\uDCCE → Camera or Gallery\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1750.0,
  "y" : 1440.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "IMAGE",
    "variable" : "ocr_dl_image",
    "timeout" : 300,
    "fallbackTargetId" : "msg_driver_add_options",
    "validationRegex" : "",
    "invalidMessage" : "⚠️ Please upload an *image* of the Driving Licence.",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/ocr/driver",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"mobile\":\"{{ocr_driver_mobile}}\",\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_driver_add_success",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_add_options",
  "type" : "MSG",
  "name" : "Add Vehicle – Choose Method",
  "msgType" : "TEXT",
  "title" : "➕ Add Vehicle",
  "content" : "How would you like to add a vehicle?",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1050.0,
  "y" : 1140.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ {
    "id" : "rc_ocr",
    "label" : "\uD83D\uDCF8 Scan RC (AI OCR)",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_add_rc_ocr",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "manual",
    "label" : "✍️ Enter Manually",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_add_no",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  }, {
    "id" : "back",
    "label" : "\uD83D\uDD19 Go Back",
    "logicEnabled" : false,
    "targetId" : "msg_vehicle_menu",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ]
  } ],
  "expectReply" : false,
  "replyConfig" : {
    "type" : "TEXT",
    "variable" : "user_reply",
    "timeout" : 180,
    "fallbackTargetId" : "",
    "validationRegex" : "",
    "invalidMessage" : "",
    "actionMode" : "STORE",
    "targetId" : "",
    "api" : {
      "enabled" : false,
      "method" : "GET",
      "url" : "",
      "headers" : [ ],
      "params" : [ ],
      "body" : ""
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "",
    "failTargetId" : ""
  }
}, {
  "id" : "msg_vehicle_add_rc_ocr",
  "type" : "MSG",
  "name" : "Add Vehicle – RC Upload (OCR)",
  "msgType" : "TEXT",
  "title" : "\uD83D\uDCF8 Upload Vehicle RC",
  "content" : "Upload the *Registration Certificate (RC)* photo \uD83D\uDCF8\n\n\uD83E\uDD16 _AI will auto-extract all vehicle details!_\nMake sure RC is clearly visible.\n\nTap \uD83D\uDCCE → Camera or Gallery\n\n_Type *0* to go back or *cancel* to abort._",
  "footer" : "",
  "imageUrl" : "",
  "imageCaption" : "",
  "waFormId" : "",
  "waFormInitialScreen" : "",
  "waFormCtaText" : "",
  "waFormJson" : "",
  "listSource" : "",
  "listTitleField" : "",
  "listDescField" : "",
  "listIdField" : "",
  "listSectionTitle" : "",
  "listButtonLabel" : "",
  "listEmptyMessage" : "",
  "x" : 1400.0,
  "y" : 1140.0,
  "preSendApi" : {
    "enabled" : false,
    "method" : "GET",
    "url" : "",
    "headers" : [ ],
    "params" : [ ],
    "body" : ""
  },
  "buttons" : [ ],
  "expectReply" : true,
  "replyConfig" : {
    "type" : "IMAGE",
    "variable" : "ocr_rc_image",
    "timeout" : 300,
    "fallbackTargetId" : "msg_vehicle_add_options",
    "validationRegex" : "",
    "invalidMessage" : "⚠️ Please upload an *image* of the Vehicle RC.",
    "actionMode" : "API",
    "targetId" : "",
    "api" : {
      "enabled" : true,
      "method" : "POST",
      "url" : "http://localhost:8088/api/sample/ocr/vehicle",
      "headers" : [ {
        "key" : "Content-Type",
        "value" : "application/json"
      } ],
      "params" : [ ],
      "body" : "{\"owner_id\":\"{{data.user_id}}\"}"
    },
    "conditions" : [ ],
    "injectResponse" : true,
    "injectPrefix" : "reply_api",
    "successTargetId" : "msg_vehicle_add_success",
    "failTargetId" : ""
  }
} ]