{
  "workflow_name": "Give new MailerLite group members an Eventbrite discount code",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Subscriber Added to Group",
          "app": {
            "key": "mailerlite",
            "fm_app": "mailerlite"
          },
          "eventSlug": "subscriber_added_group",
          "eventTitle": "Subscriber Added to Group",
          "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": "mailerlite",
        "stepID": "1",
        "action": "subscriber_added_group",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": "139872034511488000",
          "email": "amelia.ross@example.com",
          "status": "active",
          "fields_name": "Amelia",
          "fields_last_name": "Ross",
          "group_id": "98123399",
          "group_name": "VIP"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "139872034511488000",
              "email": "amelia.ross@example.com",
              "status": "active",
              "fields_name": "Amelia",
              "fields_last_name": "Ross",
              "group_id": "98123399",
              "group_name": "VIP"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create a personal Eventbrite discount",
          "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": {
          "discount_code": "VIP-{mailerlite1.id}",
          "discount_type": "coded",
          "percent_off": "20",
          "quantity_available": "1"
        },
        "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": "{mailerlite1.email}",
          "email_subject": "Your VIP ticket discount, {mailerlite1.fields_name}",
          "email_body": "Hi {mailerlite1.fields_name},\n\nAs a thank you for being on our VIP list, here is 20% off your ticket. Use code VIP-{mailerlite1.id} at checkout on our Eventbrite page.\n\nSee you there!"
        },
        "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": "Give new MailerLite group members an Eventbrite discount code",
    "folder": "all",
    "description": "When a subscriber joins a MailerLite group, such as VIP or Past attendees, FlowMattic creates a personal single-use discount code on your Eventbrite event and emails it to them. Organisers reward their list without managing codes by hand. After import, pick the group and the Eventbrite event, set the discount percentage and edit the email.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}