{
  "name": "Bulk email validation and AI scoring with ZeroBounce",
  "nodes": [
    {
      "id": "db33a572-7e96-4d0f-ad66-e30411319f6c",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        992,
        576
      ]
    },
    {
      "id": "f9fc720b-2905-45ed-9d40-fa9bb346a434",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        240
      ],
      "parameters": {
        "width": 1056,
        "height": 672,
        "content": "## 1. ZeroBounce Validation\n**Bulk validate** email addresses with ZeroBounce.\n\nThis uses the [ZeroBounce Bulk Email Validator API](https://www.zerobounce.net/docs/email-validation-api-quickstart/v2-s"
      }
    },
    {
      "id": "d78e56a8-b56f-4ce1-a01b-2584ca34d22d",
      "name": "Low score",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3616,
        1008
      ]
    },
    {
      "id": "5f017453-d874-4aa2-96b7-8efcda69eba3",
      "name": "Not valid",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2304,
        1008
      ]
    },
    {
      "id": "96f3ca4b-3b94-4ae1-a7b6-da37d20bd60b",
      "name": "Is valid?",
      "type": "n8n-nodes-base.switch",
      "position": [
        2304,
        768
      ]
    },
    {
      "id": "57277805-a523-480c-97a7-176feeef27f8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        240
      ],
      "parameters": {
        "width": 224,
        "height": 672,
        "content": "## Input data\nHere we are using [Sandbox](https://www.zerobounce.net/docs/email-validation-api-quickstart/v2-sandbox-mode) email addresses which don't use any ZeroBounce credits.\n\nThese can be used fo"
      }
    },
    {
      "id": "5d01a18b-d2ec-4a46-b1b0-7cae00d05726",
      "name": "Sandbox emails",
      "type": "n8n-nodes-base.set",
      "position": [
        1232,
        576
      ]
    },
    {
      "id": "1c9adf28-bc1b-4d24-8aa3-d3625a17be90",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        928
      ],
      "parameters": {
        "width": 2816,
        "height": 208,
        "content": "## Filtered outputs\nThese are the output branches which have been filtered by their validation status and score.\n\nFurther actions could be taken with these filtered results, e.g. followed up using [Em"
      }
    },
    {
      "id": "47d48a63-e2b0-471d-9eb8-de5068608720",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3552,
        240
      ],
      "parameters": {
        "width": 432,
        "height": 672,
        "content": "## 3. Split results by score\nHere is your output, this refined list can now be used with a high confidence that it will reach your intended recipient."
      }
    },
    {
      "id": "133b0d97-b131-4d39-9646-790cc8b6fa13",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        240
      ],
      "parameters": {
        "width": 1056,
        "height": 672,
        "content": "## 2. ZeroBounce A.I. Scoring\n**Bulk A.I. score** email addresses with ZeroBounce.\n\nThis uses the [ZeroBounce Bulk A.I. Scoring API](https://www.zerobounce.net/docs/ai-scoring-api/ai-scoring-api__send"
      }
    },
    {
      "id": "fdf0e620-952a-407e-9580-3f94500034b4",
      "name": "Filter by score",
      "type": "n8n-nodes-base.switch",
      "position": [
        3616,
        560
      ]
    },
    {
      "id": "c4f6f886-c6d9-4abc-84f7-3da410835b12",
      "name": "Medium score",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3824,
        640
      ]
    },
    {
      "id": "ee0f0b26-7ca7-4d97-b2de-5304c908a5f5",
      "name": "High score",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3824,
        496
      ]
    },
    {
      "id": "0a4828de-8290-4ad1-bc19-40abe5527590",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        240
      ],
      "parameters": {
        "width": 784,
        "height": 896,
        "content": "## ZeroBounce Email Validation and Scoring\n\nThis template uses the [ZeroBounce](https://www.zerobounce.net) node to validate and score email addresses. It is designed to first check if an email is del"
      }
    },
    {
      "id": "39cb5eb2-8e42-4cf0-b641-f72b0d73bc6e",
      "name": "Send file for validation",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        1472,
        576
      ]
    },
    {
      "id": "7edb59fe-bdbf-4a6f-9bec-58442f9b27fa",
      "name": "Wait for validation file to be processed",
      "type": "n8n-nodes-base.wait",
      "position": [
        1680,
        576
      ]
    },
    {
      "id": "58229cdd-3a9e-4539-9d4e-7e59e70494d0",
      "name": "Get validation results file",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        2304,
        544
      ]
    },
    {
      "id": "45c798f0-0440-4848-a82f-107c5c119a38",
      "name": "Get validation file status",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        1888,
        576
      ]
    },
    {
      "id": "55de8f1c-66d3-4110-a0ed-10fa924cfda4",
      "name": "Send file for scoring",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        2544,
        576
      ]
    },
    {
      "id": "c3d11e42-950f-4e0a-83f6-074472f61d0c",
      "name": "Get scoring file status",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        2960,
        576
      ]
    },
    {
      "id": "1db0c35d-63a6-4714-bcc0-16dc1c1f1f9c",
      "name": "Get scoring results file",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        3376,
        544
      ]
    },
    {
      "id": "86fefa03-5bdf-4e65-a8e8-27c9cc3d552b",
      "name": "Wait for scoring file to process",
      "type": "n8n-nodes-base.wait",
      "position": [
        2752,
        576
      ]
    },
    {
      "id": "a0d00c33-2154-4d08-8a4e-379895fffa71",
      "name": "Merge validation and scoring results",
      "type": "n8n-nodes-base.merge",
      "position": [
        3376,
        736
      ]
    },
    {
      "id": "afb14d11-3cee-4b92-807c-a45b91f943d7",
      "name": "Scoring file status",
      "type": "n8n-nodes-base.switch",
      "position": [
        3168,
        560
      ]
    },
    {
      "id": "06c41c16-81d3-417f-af85-00b58e9c6fd2",
      "name": "Validation file status",
      "type": "n8n-nodes-base.switch",
      "position": [
        2096,
        560
      ]
    },
    {
      "id": "20cc577d-a348-4a30-b8e2-46e4cb6498ec",
      "name": "Validation results",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2544,
        752
      ]
    },
    {
      "id": "3c43f23f-ef23-4589-bf9b-25337c5c5237",
      "name": "Bulk validation failed",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        2096,
        944
      ]
    },
    {
      "id": "0b027b94-6ea7-4cd0-8748-06505edc1b2e",
      "name": "Bulk scoring failed",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        3168,
        944
      ]
    }
  ],
  "connections": {
    "Is valid?": {
      "main": [
        [
          {
            "node": "Send file for scoring",
            "type": "main",
            "index": 0
          },
          {
            "node": "Validation results",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Not valid",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Low score": {
      "main": [
        []
      ]
    },
    "Sandbox emails": {
      "main": [
        [
          {
            "node": "Send file for validation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by score": {
      "main": [
        [
          {
            "node": "High score",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Medium score",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Low score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation results": {
      "main": [
        [
          {
            "node": "Merge validation and scoring results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Scoring file status": {
      "main": [
        [
          {
            "node": "Get scoring results file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for scoring file to process",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Bulk scoring failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send file for scoring": {
      "main": [
        [
          {
            "node": "Wait for scoring file to process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation file status": {
      "main": [
        [
          {
            "node": "Get validation results file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for validation file to be processed",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Bulk validation failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get scoring file status": {
      "main": [
        [
          {
            "node": "Scoring file status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get scoring results file": {
      "main": [
        [
          {
            "node": "Merge validation and scoring results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send file for validation": {
      "main": [
        [
          {
            "node": "Wait for validation file to be processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get validation file status": {
      "main": [
        [
          {
            "node": "Validation file status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get validation results file": {
      "main": [
        [
          {
            "node": "Is valid?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for scoring file to process": {
      "main": [
        [
          {
            "node": "Get scoring file status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge validation and scoring results": {
      "main": [
        [
          {
            "node": "Filter by score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Sandbox emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for validation file to be processed": {
      "main": [
        [
          {
            "node": "Get validation file status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}