{
  "name": "Validate and score email addresses with ZeroBounce AI",
  "nodes": [
    {
      "id": "22153003-c046-4703-84b7-89cfb0b5e5d8",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        512,
        80
      ]
    },
    {
      "id": "e1db2aa9-8bd2-420b-a8f1-2a2512281f05",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 3. ZeroBounce Validation\n**Validate** an email address with ZeroBounce.\n\nThis uses the ZeroBounce API to validate a single email address and optional IP address.\n\nDetails can be found here [Single "
      }
    },
    {
      "id": "817634e1-750b-45ef-a55d-23fa1685cf53",
      "name": "Check credits for validation",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        1232,
        144
      ]
    },
    {
      "id": "fd94c5ad-abfa-459d-b52f-2c4b2ea1c334",
      "name": "Check credits for scoring",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        2432,
        144
      ]
    },
    {
      "id": "6644c283-406f-4c14-bafd-dde1cdf213e7",
      "name": "Low score",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3632,
        464
      ]
    },
    {
      "id": "1bf8b4f3-4df6-480c-88f8-ad1c44a3b45b",
      "name": "Not valid",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1952,
        464
      ]
    },
    {
      "id": "6f6059f7-e27d-40ec-82c7-eb6d4d620fdd",
      "name": "Wait for scoring credits check",
      "type": "n8n-nodes-base.merge",
      "position": [
        2672,
        80
      ]
    },
    {
      "id": "468e17b7-e5a2-4dc6-b1de-f19c3dd8c5d8",
      "name": "Wait for validation credits check",
      "type": "n8n-nodes-base.merge",
      "position": [
        1472,
        80
      ]
    },
    {
      "id": "f8e0a28f-ca7c-4c7b-84c8-08ba6e6ea7db",
      "name": "Not scored",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2912,
        464
      ]
    },
    {
      "id": "49a7d0f6-eece-46b5-9e44-d80c5440b551",
      "name": "Merge validation and scoring results",
      "type": "n8n-nodes-base.merge",
      "position": [
        3392,
        80
      ]
    },
    {
      "id": "5b77fe7c-8fab-4a99-8bae-2e3a3162f522",
      "name": "Skip scoring?",
      "type": "n8n-nodes-base.switch",
      "position": [
        2912,
        80
      ]
    },
    {
      "id": "c2ed393f-0561-4beb-b0d0-b33d55a7962a",
      "name": "Is valid?",
      "type": "n8n-nodes-base.switch",
      "position": [
        1952,
        80
      ]
    },
    {
      "id": "b479bc31-3297-46d4-aed9-0e6c03a906bb",
      "name": "Split into items",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        992,
        80
      ]
    },
    {
      "id": "b2f95213-3b77-4291-b131-08f04e46dcf2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 2. Check ZeroBounce account credits balance (optional)\nCheck if your ZeroBounce account has enough credits to perform validation for all of the input items.\n\nThis step is optional, although checkin"
      }
    },
    {
      "id": "bde06e64-fae1-4d6e-8c22-14faf68ceffe",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 1. 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"
      }
    },
    {
      "id": "14cddc36-882d-46da-bd52-0b08f044db10",
      "name": "Sandbox emails",
      "type": "n8n-nodes-base.set",
      "position": [
        752,
        80
      ]
    },
    {
      "id": "f51f6d3c-9753-449c-b816-249fcbc60bfc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2128,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 4. Check ZeroBounce account credits balance (optional)\nCheck if your ZeroBounce account has enough credits to perform scoring for all of the input items.\n\nThe optional \"Credits required\" parameter "
      }
    },
    {
      "id": "74fc0dbe-815a-43da-b6a0-23ce569fdd95",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        336
      ],
      "parameters": {
        "width": 3344,
        "height": 272,
        "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": "dacd88cd-db68-4819-a8f4-bd5afc56f608",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3568,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 7. 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": "0e77fbbb-81fa-4d60-a4d7-7c49bc1e773e",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3088,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 6. ZeroBounce A.I. Scoring\n**A.I. Score** an email address with ZeroBounce.\n\nThis uses the ZeroBounce API to score a single email address.\n\nDetails can be found here [Single Email Scoring](https://"
      }
    },
    {
      "id": "99d5b954-003d-4167-86fa-68f9715e8730",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2192,
        144
      ]
    },
    {
      "id": "d1448267-8fa5-4161-8916-c935e9383954",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2608,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 560,
        "content": "## 5. Score emails or finish\nThis checks if there are enough credits to score the remaining emails.\n\nThis allows the validation results to be used even if scoring can't be performed."
      }
    },
    {
      "id": "c7aeca49-69ce-402a-a642-bc953ce659f6",
      "name": "Filter by score",
      "type": "n8n-nodes-base.switch",
      "position": [
        3632,
        64
      ]
    },
    {
      "id": "105b986d-84b0-48f6-b44c-e1c219ff471a",
      "name": "Medium score",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3872,
        144
      ]
    },
    {
      "id": "95a3bca3-f9e8-4227-a577-16251e5e061c",
      "name": "High score",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3872,
        0
      ]
    },
    {
      "id": "3bdb5066-93a5-42fa-86ca-c0a3de914015",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -240
      ],
      "parameters": {
        "width": 912,
        "height": 848,
        "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": "f245ff49-9fda-45fb-b724-394f3533ab07",
      "name": "Validate email",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        1712,
        80
      ]
    },
    {
      "id": "a2c894ad-25bf-44d7-8080-2c95760e3398",
      "name": "Score email",
      "type": "@zerobounce/n8n-nodes-zerobounce.zeroBounce",
      "position": [
        3152,
        144
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Check credits for scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is valid?": {
      "main": [
        [
          {
            "node": "Wait for scoring credits check",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Not valid",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Score email": {
      "main": [
        [
          {
            "node": "Merge validation and scoring results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Skip scoring?": {
      "main": [
        [
          {
            "node": "Score email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge validation and scoring results",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Not scored",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sandbox emails": {
      "main": [
        [
          {
            "node": "Split into items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate email": {
      "main": [
        [
          {
            "node": "Is valid?",
            "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
          }
        ]
      ]
    },
    "Split into items": {
      "main": [
        [
          {
            "node": "Check credits for validation",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait for validation credits check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check credits for scoring": {
      "main": [
        [
          {
            "node": "Wait for scoring credits check",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Check credits for validation": {
      "main": [
        [
          {
            "node": "Wait for validation credits check",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Wait for scoring credits check": {
      "main": [
        [
          {
            "node": "Skip scoring?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for validation credits check": {
      "main": [
        [
          {
            "node": "Validate email",
            "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
          }
        ]
      ]
    }
  }
}