{
  "workflow_name": "Email a branded ticket image for each confirmed booking",
  "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",
          "customer_name": "Priya Nair",
          "customer_email": "priya@example.com",
          "customer_phone": "+15551234567",
          "booking_date": "2026-08-03",
          "booking_time": "10:00",
          "booking_end": "10:30",
          "timezone": "America/New_York",
          "status": "confirmed",
          "location": "zoom"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "booking_id": 501,
              "calendar_id": 3,
              "calendar_name": "Strategy Call",
              "customer_name": "Priya Nair",
              "customer_email": "priya@example.com",
              "customer_phone": "+15551234567",
              "booking_date": "2026-08-03",
              "booking_time": "10:00",
              "booking_end": "10:30",
              "timezone": "America/New_York",
              "status": "confirmed",
              "location": "zoom"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Filter Conditions",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "filter",
            "fm_app": "filter"
          },
          "eventSlug": "continue_if",
          "eventTitle": "Continue If Condition Meet",
          "customLabel": "Continue if"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "key": "{bookings1.status}",
                "condition": "exactly_match",
                "value": "confirmed"
              }
            ]
          }
        },
        "application": "filter",
        "action": "continue_if",
        "nodeType": "step",
        "stepID": "2",
        "filterConditions": {
          "filterConditions": {
            "1": [
              {
                "key": "{bookings1.status}",
                "condition": "exactly_match",
                "value": "confirmed"
              }
            ]
          }
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Generate the ticket",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "image_builder",
            "fm_app": "image_builder"
          },
          "eventSlug": "generate_image_from_template",
          "eventTitle": "Generate Image from Template"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "data_mode": "json",
          "data_json": "{\"name\":\"{bookings1.customer_name}\",\"calendar\":\"{bookings1.calendar_name}\",\"date\":\"{bookings1.booking_date}\",\"time\":\"{bookings1.booking_time}\"}"
        },
        "application": "image_builder",
        "action": "generate_image_from_template",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Email the ticket",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "email",
            "fm_app": "email"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to_email": "{bookings1.customer_email}",
          "email_subject": "Your ticket for {bookings1.calendar_name}",
          "email_body": "Hi {bookings1.customer_name}, see you on {bookings1.booking_date} at {bookings1.booking_time}! Your ticket: {image_builder3.url}"
        },
        "application": "email",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 700,
          "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-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-main_end_placeholder",
        "source": "4",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Email a branded ticket image for each confirmed booking",
    "folder": "all",
    "description": "When a booking is confirmed, FlowMattic renders a ticket image from your Image Builder template (it receives name, calendar, date and time) and emails the attendee a link to it. Choose the template in the Image Builder step after import.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}