{
  "workflow_name": "Create Eventbrite discount codes for new Brevo (Sendinblue) contacts",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Contact Added to List",
          "app": {
            "key": "sendinblue",
            "fm_app": "sendinblue"
          },
          "eventSlug": "contact_added",
          "eventTitle": "Contact Added to List",
          "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": "sendinblue",
        "stepID": "1",
        "action": "contact_added",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": 1842,
          "email": "nadia.kowalski@example.com",
          "list_id_0": 7,
          "list_id_json": "[7]",
          "date": "2026-10-21 10:14:02",
          "event": "list_addition",
          "key": "xkeysib-hook-3b81"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": 1842,
              "email": "nadia.kowalski@example.com",
              "list_id_0": 7,
              "list_id_json": "[7]",
              "date": "2026-10-21 10:14:02",
              "event": "list_addition",
              "key": "xkeysib-hook-3b81"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create personal discount code",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "eventbrite",
            "fm_app": "eventbrite"
          },
          "eventSlug": "create_discount",
          "eventTitle": "Create Discount"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "organization_id": "",
          "event_id": "",
          "discount_type": "coded",
          "discount_code": "VIP-{sendinblue1.id}",
          "percent_off": "20",
          "amount_off": "",
          "quantity_available": "1",
          "ticket_class_ids": "",
          "start_date": "",
          "end_date": ""
        },
        "application": "eventbrite",
        "action": "create_discount",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Email the discount code",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "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": "{sendinblue1.email}",
          "email_subject": "Your subscriber discount for our next event",
          "email_body": "Thanks for subscribing. Use code VIP-{sendinblue1.id} on Eventbrite for 20% off one ticket."
        },
        "application": "email",
        "action": "send_email",
        "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": "Create Eventbrite discount codes for new Brevo (Sendinblue) contacts",
    "folder": "all",
    "description": "When a contact joins your Brevo list, FlowMattic creates a personal Eventbrite discount code for your event and emails it to them. Event organisers can reward subscribers with early tickets that each work once. After import, connect Eventbrite, choose the organization and event, and set the discount.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}