{
  "workflow_name": "Create ActiveCampaign contacts from emails parsed by Mailparser",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Email Parsed (Per Email)",
          "app": {
            "key": "mailparser",
            "fm_app": "mailparser"
          },
          "eventSlug": "parsed_email_per_email",
          "eventTitle": "New Email Parsed (Per Email)",
          "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": "mailparser",
        "stepID": "1",
        "action": "parsed_email_per_email",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": "98123",
          "received_at": "2026-10-22 09:14:00",
          "first_name": "Liam",
          "last_name": "Okafor",
          "email": "liam.okafor@example.com",
          "phone": "+15550187766",
          "company": "Northwind Studio",
          "message": "Interested in the annual plan for a team of 12."
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "98123",
              "received_at": "2026-10-22 09:14:00",
              "first_name": "Liam",
              "last_name": "Okafor",
              "email": "liam.okafor@example.com",
              "phone": "+15550187766",
              "company": "Northwind Studio",
              "message": "Interested in the annual plan for a team of 12."
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create or update the 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": "{mailparser1.email}",
          "firstName": "{mailparser1.first_name}",
          "lastName": "{mailparser1.last_name}",
          "phone": "{mailparser1.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 contact as an email lead",
          "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": {
          "tag_action": "add",
          "contact_id": "{activecampaign2.contact_id}",
          "tag_id": ""
        },
        "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": "Create ActiveCampaign contacts from emails parsed by Mailparser",
    "folder": "all",
    "description": "When Mailparser parses a lead notification email, FlowMattic creates or updates the person in ActiveCampaign and tags them. It helps teams whose leads arrive by email from partners, portals or old forms. After import, match the Mailparser fields to your parsing rules and choose the tag to apply.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}