{
  "workflow_name": "Send an SMS reminder one day before every appointment",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Booking",
          "app": {
            "key": "bookings",
            "fm_app": "bookings"
          },
          "eventSlug": "booking_created",
          "eventTitle": "New Booking",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "bookings",
        "stepID": "1",
        "action": "booking_created",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "booking_id": 501,
          "calendar_id": 3,
          "calendar_name": "Strategy Call",
          "booking_date": "2026-08-03",
          "booking_time": "10:00",
          "timezone": "America/New_York",
          "customer_name": "Priya Nair",
          "customer_email": "priya@example.com",
          "customer_phone": "+15551234567",
          "status": "confirmed"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "booking_id": 501,
              "calendar_id": 3,
              "calendar_name": "Strategy Call",
              "booking_date": "2026-08-03",
              "booking_time": "10:00",
              "timezone": "America/New_York",
              "customer_name": "Priya Nair",
              "customer_email": "priya@example.com",
              "customer_phone": "+15551234567",
              "status": "confirmed"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Wait until a day before the slot",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "delay",
            "fm_app": "delay"
          },
          "eventSlug": "delay_until",
          "eventTitle": "Delay Until"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "delayTime": "{bookings1.booking_date} {bookings1.booking_time} -1 day",
          "delayTimezone": "{bookings1.timezone}"
        },
        "application": "delay",
        "action": "delay_until",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Send the reminder SMS",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "twilio",
            "fm_app": "twilio"
          },
          "eventSlug": "send_sms",
          "eventTitle": "Send SMS"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to": "{bookings1.customer_phone}",
          "message": "Hi {bookings1.customer_name}, reminder: {bookings1.calendar_name} on {bookings1.booking_date} at {bookings1.booking_time}. See you there!"
        },
        "application": "twilio",
        "action": "send_sms",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-main_end_placeholder",
        "source": "3",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Send an SMS reminder one day before every appointment",
    "folder": "all",
    "description": "For every new booking, FlowMattic waits until one day before the slot and then sends the attendee an SMS reminder with their slot details via Twilio. Bookings made within a day of the slot get the reminder right away.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}