{
  "workflow_name": "Add a booking automatically when a Stripe payment succeeds",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Invoice Paid",
          "app": {
            "key": "stripe",
            "fm_app": "stripe"
          },
          "eventSlug": "invoice.payment_succeeded",
          "eventTitle": "Invoice Payment Succeeded",
          "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": "stripe",
        "stepID": "1",
        "action": "invoice.payment_succeeded",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": "in_123",
          "customer_email": "buyer@acme.com",
          "customer_name": "Priya Nair",
          "amount_paid": 4900,
          "currency": "usd"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "in_123",
              "customer_email": "buyer@acme.com",
              "customer_name": "Priya Nair",
              "amount_paid": 4900,
              "currency": "usd"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create the booking",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "bookings",
            "fm_app": "bookings"
          },
          "eventSlug": "add_booking",
          "eventTitle": "Add Booking"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "name": "{stripe1.customer_name}",
          "email": "{stripe1.customer_email}",
          "status": "confirmed"
        },
        "application": "bookings",
        "action": "add_booking",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 350,
          "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-main_end_placeholder",
        "source": "2",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Add a booking automatically when a Stripe payment succeeds",
    "folder": "all",
    "description": "Paid means booked: a successful Stripe payment creates the booking on your calendar with the customer's details.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}