{
  "workflow_name": "Send a Gmail welcome email after each ThriveCart purchase",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Order Success",
          "app": {
            "key": "thrivecart",
            "fm_app": "thrivecart"
          },
          "eventSlug": "order.success",
          "eventTitle": "Order Success",
          "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": "thrivecart",
        "stepID": "1",
        "action": "order.success",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "event": "order.success",
          "order_id": "4417",
          "invoice_id": "000004417",
          "base_product": "3",
          "base_product_name": "Course Builder Pro",
          "order_total": "197.00",
          "currency": "USD",
          "customer_first_name": "Ethan",
          "customer_last_name": "Brooks",
          "customer_email": "ethan.brooks@example.com"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "event": "order.success",
              "order_id": "4417",
              "invoice_id": "000004417",
              "base_product": "3",
              "base_product_name": "Course Builder Pro",
              "order_total": "197.00",
              "currency": "USD",
              "customer_first_name": "Ethan",
              "customer_last_name": "Brooks",
              "customer_email": "ethan.brooks@example.com"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Send the welcome email",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email_to": "{thrivecart1.customer_email}",
          "subject": "Welcome to {thrivecart1.base_product_name}",
          "message": "Hi {thrivecart1.customer_first_name},\n\nThank you for your order (#{thrivecart1.order_id}). You now have access to {thrivecart1.base_product_name}.\n\nHere is how to get started:\n1. ...\n2. ...\n\nJust reply to this email if you have any questions."
        },
        "application": "gmail",
        "action": "send_email",
        "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": "Send a Gmail welcome email after each ThriveCart purchase",
    "folder": "all",
    "description": "After a successful ThriveCart order, FlowMattic sends the buyer a welcome email from your Gmail account with what they bought and how to get started. Course creators and product sellers get a personal touch on top of the receipt. After import, connect Gmail and add your own access instructions to the message.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}