{
  "workflow_name": "Validate submissions and quarantine the bad ones",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Submission",
          "app": {
            "key": "fluent_forms",
            "fm_app": "fluent_forms"
          },
          "eventSlug": "form_submission",
          "eventTitle": "New Form Submission",
          "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": "fluent_forms",
        "stepID": "1",
        "action": "form_submission",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "name": "Jane Doe",
          "email": "jane@example.com",
          "phone": "+15551234567",
          "subject": "Product enquiry",
          "message": "I'd like a demo and pricing for a team of 20."
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "name": "Jane Doe",
              "email": "jane@example.com",
              "phone": "+15551234567",
              "subject": "Product enquiry",
              "message": "I'd like a demo and pricing for a team of 20."
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Branch by FlowMattic",
          "app": {
            "key": "branch",
            "fm_app": "branch"
          },
          "eventSlug": "evaluate_condition",
          "eventTitle": "Branch",
          "customLabel": "Valid email address?",
          "layoutDirection": "horizontal",
          "stepNumber": 2
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "id": "c1",
                "key": "{fluent_forms1.email}",
                "condition": "is_email_valid",
                "value": ""
              }
            ]
          }
        },
        "filterConditions": {
          "1": [
            {
              "id": "c1",
              "key": "{fluent_forms1.email}",
              "condition": "is_email_valid",
              "value": ""
            }
          ]
        },
        "application": "branch",
        "stepID": "2",
        "action": "evaluate_condition",
        "nodeType": "branch"
      },
      {
        "id": "2-branchRoute_yes",
        "position": {
          "x": 395,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Yes",
          "branchType": "yes",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "yes",
        "stepID": "2-branchRoute_yes",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "3",
        "position": {
          "x": 595,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Store valid record",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "airtable",
            "fm_app": "airtable"
          },
          "eventSlug": "create_record",
          "eventTitle": "Create Record"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "airtable",
        "action": "create_record",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "2_yes_placeholder",
        "position": {
          "x": 770,
          "y": -160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "2_yes_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      },
      {
        "id": "2-branchRoute_no",
        "position": {
          "x": 395,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "No",
          "branchType": "no",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "no",
        "stepID": "2-branchRoute_no",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "4",
        "position": {
          "x": 595,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "Quarantine + flag",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "slack",
            "fm_app": "slack"
          },
          "eventSlug": "send_message_to_channel",
          "eventTitle": "Send Channel Message"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "message_text": "⚠️ Invalid submission from {fluent_forms1.name} — needs review"
        },
        "application": "slack",
        "action": "send_message_to_channel",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "5",
        "position": {
          "x": 770,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "Log to quarantine sheet",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "google_spreadsheets",
            "fm_app": "google_spreadsheets"
          },
          "eventSlug": "new_row",
          "eventTitle": "Add New Row"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "google_spreadsheets",
        "action": "new_row",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "2_no_placeholder",
        "position": {
          "x": 945,
          "y": 160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "2_no_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-2-branchRoute_yes",
        "source": "2",
        "target": "2-branchRoute_yes",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-2-branchRoute_yes-3",
        "source": "2-branchRoute_yes",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-2_yes_placeholder",
        "source": "3",
        "target": "2_yes_placeholder",
        "type": "placeholder",
        "data": []
      },
      {
        "id": "e-2-2-branchRoute_no",
        "source": "2",
        "target": "2-branchRoute_no",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-2-branchRoute_no-4",
        "source": "2-branchRoute_no",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-5",
        "source": "4",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-2_no_placeholder",
        "source": "5",
        "target": "2_no_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Validate submissions and quarantine the bad ones",
    "folder": "all",
    "description": "A Branch checks whether a submission has a valid email — valid records are stored in Airtable, invalid ones are quarantined and flagged for review. Uses a Branch.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}