{
  "workflow_name": "Add ThriveCart buyers to ActiveCampaign and tag them by product",
  "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",
          "mode": "live",
          "order_id": "4471203",
          "invoice_id": "INV-99812",
          "base_product": "12",
          "base_product_name": "Brand Photography Course",
          "order_total": "19700",
          "currency": "USD",
          "customer_email": "nina.hale@example.com",
          "customer_first_name": "Nina",
          "customer_last_name": "Hale",
          "customer_name": "Nina Hale",
          "customer_phone": "+15554443322"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "event": "order.success",
              "mode": "live",
              "order_id": "4471203",
              "invoice_id": "INV-99812",
              "base_product": "12",
              "base_product_name": "Brand Photography Course",
              "order_total": "19700",
              "currency": "USD",
              "customer_email": "nina.hale@example.com",
              "customer_first_name": "Nina",
              "customer_last_name": "Hale",
              "customer_name": "Nina Hale",
              "customer_phone": "+15554443322"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create or update ActiveCampaign contact",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "activecampaign",
            "fm_app": "activecampaign"
          },
          "eventSlug": "create_or_update_contact",
          "eventTitle": "Create or Update Contact"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email": "{thrivecart1.customer_email}",
          "firstName": "{thrivecart1.customer_first_name}",
          "lastName": "{thrivecart1.customer_last_name}",
          "phone": "{thrivecart1.customer_phone}"
        },
        "application": "activecampaign",
        "action": "create_or_update_contact",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Tag the buyer with the product",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "activecampaign",
            "fm_app": "activecampaign"
          },
          "eventSlug": "add_tag_to_contact",
          "eventTitle": "Add/Remove Tag From Contact"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "contact_id": "{activecampaign2.contact_id}",
          "tag_id": "bought-{thrivecart1.base_product_name}",
          "tag_action": "add"
        },
        "application": "activecampaign",
        "action": "add_tag_to_contact",
        "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": "Add ThriveCart buyers to ActiveCampaign and tag them by product",
    "folder": "all",
    "description": "After a successful ThriveCart order, FlowMattic creates or updates the buyer in ActiveCampaign and tags them with the product they bought. Course creators and info-product sellers can start the right onboarding sequence for each product. After import, add the webhook in ThriveCart and adjust the tag format if you use your own naming.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}