{
  "workflow_name": "Give new Brevo (Sendinblue) subscribers a WooCommerce coupon",
  "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 welcome coupon",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "woocommerce",
            "fm_app": "woocommerce"
          },
          "eventSlug": "create_coupon",
          "eventTitle": "Create Coupon"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "coupon_code": "WELCOME-{sendinblue1.id}",
          "coupon_description": "Welcome offer for {sendinblue1.email}",
          "discount_type": "percent",
          "coupon_amount": "10",
          "customer_email": "{sendinblue1.email}",
          "usage_limit": "1",
          "usage_limit_per_user": "1",
          "individual_use": "Enable",
          "expiry_date": ""
        },
        "application": "woocommerce",
        "action": "create_coupon",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Email the coupon 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 welcome code is inside",
          "email_body": "Thanks for joining our list.\n\nUse code WELCOME-{sendinblue1.id} at checkout for 10% off your first order."
        },
        "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 Brevo (Sendinblue) subscribers a WooCommerce coupon",
    "folder": "all",
    "description": "When a contact joins your Brevo list, FlowMattic creates a single-use 10% WooCommerce coupon locked to their email address and emails them the code. Store owners get a welcome offer that cannot be shared or reused. After import, set the Brevo webhook for list additions, change the discount and wording, and add an expiry date if you want one.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}