{
  "workflow_name": "Send a Gmail follow-up to each lead Mailparser extracts",
  "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": "88213",
          "received_at": "2026-10-22 11:05:00",
          "lead_name": "Tom Becker",
          "lead_email": "tom.becker@example.com",
          "lead_phone": "+15550199876",
          "enquiry": "Looking for a quote to repaint a two-storey house.",
          "source": "HomePros directory"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "88213",
              "received_at": "2026-10-22 11:05:00",
              "lead_name": "Tom Becker",
              "lead_email": "tom.becker@example.com",
              "lead_phone": "+15550199876",
              "enquiry": "Looking for a quote to repaint a two-storey house.",
              "source": "HomePros directory"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Filter Conditions",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "filter",
            "fm_app": "filter"
          },
          "eventSlug": "continue_if",
          "eventTitle": "Continue If Condition Meet",
          "customLabel": "Continue if a lead email was parsed"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "key": "{mailparser1.lead_email}",
                "condition": "is_not_empty",
                "value": ""
              }
            ]
          }
        },
        "application": "filter",
        "action": "continue_if",
        "nodeType": "step",
        "stepID": "2",
        "filterConditions": {
          "filterConditions": {
            "1": [
              {
                "key": "{mailparser1.lead_email}",
                "condition": "is_not_empty",
                "value": ""
              }
            ]
          }
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Email the lead from Gmail",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "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": "{mailparser1.lead_email}",
          "subject": "Thanks for your enquiry, {mailparser1.lead_name}",
          "message": "Hi {mailparser1.lead_name},\n\nThanks for reaching out through {mailparser1.source}. You asked about: {mailparser1.enquiry}\n\nWhen is a good time for a quick call this week?\n\nBest regards"
        },
        "application": "gmail",
        "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": "Send a Gmail follow-up to each lead Mailparser extracts",
    "folder": "all",
    "description": "When Mailparser parses a new lead notification email, FlowMattic sends that lead a personal follow-up from your Gmail account within seconds. It helps agencies and local businesses that get leads from directories or portals as plain emails. After import, connect Gmail, rename the fields to match your Mailparser parsing rules and rewrite the message in your own voice.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}