AutomationFlowsAI & RAG › Automate Lead Generation with Apollo, AI Scoring and Brevo Email Outreach

Automate Lead Generation with Apollo, AI Scoring and Brevo Email Outreach

ByLuka Zivkovic @zivkovic58 on n8n.io

This comprehensive automation flow helps you scale your outreach to potential customers through intelligent personalized email campaigns. The system combines web scraping, AI-powered lead scoring, and automated email sequences to maximize your conversion rates. Intelligent…

Event trigger★★★★★ complexityAI-powered63 nodesNoco DbHTTP RequestOpenAISendinblueSend In Blue Trigger
AI & RAG Trigger: Event Nodes: 63 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4539 — we link there as the canonical source.

This workflow follows the HTTP Request → OpenAI recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "185b452b-b8c6-4921-8fb1-2885dcb6b89f",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -3552,
        1152
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "45a75dae-8cfa-422d-a271-7d775b5e9dac",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3280,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4f1f4f08-22c8-452a-ae5b-aba2c25db9a2",
      "name": "Fetch data to prepare for scoring",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -1536,
        1792
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "cbce4e7b-79f9-4012-bfb6-14cf181609ac",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        1440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8d30c1dc-472b-4cef-8654-4c70620dac42",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        864
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3c00a888-8fea-44de-aee0-f06fdf5a1f4f",
      "name": "If not scored",
      "type": "n8n-nodes-base.if",
      "onError": "continueRegularOutput",
      "position": [
        -1040,
        1552
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ef059ab1-c43d-4546-99e5-d571a0be1ae5",
      "name": "Add a score",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -400,
        1584
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "67e4f480-e278-4835-bed8-b1d7b721ae6f",
      "name": "Crawl4AI",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -2816,
        608
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a9bc7a68-5af5-4f6e-8efc-4f31d25c5321",
      "name": "Crawl4AI resolve",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -2544,
        608
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b88bf154-2d5e-44f9-a376-766884451f9c",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -2688,
        864
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "2b8e7083-a923-455d-a8c2-b68ededef146",
      "name": "If mail not created",
      "type": "n8n-nodes-base.if",
      "position": [
        -1104,
        1024
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ff292cb3-d84e-4127-8750-d697cf08b819",
      "name": "Add Personalized mail",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        -416,
        1120
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "3f8c8cc8-aaab-421b-ad62-22877ac0df5b",
      "name": "Ai Scoring",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "onError": "continueRegularOutput",
      "position": [
        -784,
        1504
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "6b9353d7-bfb3-404e-9fb5-952ea1e78a46",
      "name": "Email Personalization",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "onError": "continueErrorOutput",
      "position": [
        -816,
        1072
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "b64c09a5-7fd2-4e11-b2a2-7947aa191c19",
      "name": "Personalized Mail Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "onError": "continueRegularOutput",
      "position": [
        80,
        944
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "7fd44bfb-54a9-4a03-a762-a50ec0364e1d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        864
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f4e4bf1c-a753-4f6b-800f-33009623a4ab",
      "name": "Mark as contacted",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        1360,
        1168
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "70c7bd98-1b3a-44db-b24a-6b1c41f00193",
      "name": "Email Exists -> Mark as Contacted",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        768,
        1024
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "581b9c23-2ce5-4ada-b576-2c5cea9e82dd",
      "name": "Email Send",
      "type": "n8n-nodes-base.sendInBlue",
      "onError": "continueErrorOutput",
      "position": [
        1088,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "31f77b41-7db3-49c7-ab14-9e53f3828714",
      "name": "Create Contact",
      "type": "n8n-nodes-base.sendInBlue",
      "onError": "continueErrorOutput",
      "position": [
        624,
        912
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f985ddc3-e850-44e4-b570-d486a306e9eb",
      "name": "If not contacted and email created",
      "type": "n8n-nodes-base.if",
      "position": [
        352,
        960
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e0209794-b0f6-4058-8e93-f270452a3641",
      "name": "If pending",
      "type": "n8n-nodes-base.if",
      "position": [
        -2400,
        864
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5b944173-a258-4d72-9d1d-2e2bcc5f5bb3",
      "name": "Mark as Trash",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1088,
        1104
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "511ceea7-0c35-40ed-8ed1-aafc12588d9c",
      "name": "If not success",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        880
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "31e9e3e7-e809-4a64-aa07-2028ab8e35d1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4656,
        512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c86fc6b6-28ca-4e68-bb1d-8b89065d2960",
      "name": "Get by email",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        544,
        544
      ],
      "parameters": {},
      "typeVersion": 3,
      "alwaysOutputData": false
    },
    {
      "id": "801271c7-0d74-4a46-92c7-c6889c9f5ea8",
      "name": "Lead Status -> Trash",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        992,
        544
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "b1149801-6b1d-46da-a9cc-7abd11d11f36",
      "name": "Delete Contact In Brevo",
      "type": "n8n-nodes-base.sendInBlue",
      "onError": "continueRegularOutput",
      "position": [
        320,
        544
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e9aaf1b7-a39a-4529-9c6a-df0581d6398b",
      "name": "Email Opened",
      "type": "n8n-nodes-base.sendInBlueTrigger",
      "disabled": true,
      "position": [
        112,
        288
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4f61f838-bd69-4bf0-a230-7f987c7cb0cb",
      "name": "Lead Status -> Email Opened",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        544,
        288
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "079ce9cd-da5c-486a-965c-7a73cc155630",
      "name": "If Email Opened More Than Once",
      "type": "n8n-nodes-base.if",
      "position": [
        768,
        288
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3fe53373-3d70-48c2-9684-b2c94ce0f4f5",
      "name": "Lead Status -> Warm",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        992,
        288
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "d40e2f00-3af9-4d86-9079-54d4fbb0ee84",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7a82ee63-8d8a-4870-891e-0493395d19cb",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "24073d7f-8b43-4732-aaad-1c64d3aae06c",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "93571f0c-e690-4148-b745-366b69f315de",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3280,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e7527c45-c1dd-43f2-9cc4-6e5b2403225d",
      "name": "Apify Crawl Request",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -2384,
        1200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6dd70de7-545c-4b4d-b06e-f526f177506f",
      "name": "Process Apify Crawl",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        -1920,
        1360
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "801c21a4-1c22-4f8f-956b-f549ce5d8b7f",
      "name": "Mark as failed_to_process",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        -2224,
        1328
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "ffb3b70f-6f81-45ba-9136-f08274228636",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4672,
        256
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "75c4e291-292f-48ed-9ca8-419b63b2da9f",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4672,
        368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e0bc84d7-ddbd-42a2-89b9-e96bf8ebfe26",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3680,
        704
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f0d7886b-65f4-49cd-8d44-7c1c50be2711",
      "name": "Get Entered Leads From Crawl4AI",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -3216,
        624
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "2a74597a-47b5-4553-bd9b-e7a907fc48bd",
      "name": "Get 'Entered' Leads From Apify",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -3248,
        1184
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "d559eb82-5cd7-43cb-8122-6e8a23226084",
      "name": "Set Lead Status -> 'processed'",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        -1936,
        880
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "69f42228-f621-4c52-a702-863883228f33",
      "name": "Set Lead Status -> 'failed_to_process'",
      "type": "n8n-nodes-base.nocoDb",
      "onError": "continueRegularOutput",
      "position": [
        -1936,
        608
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "cb5b9124-8a83-480a-b13a-b381999ad6cd",
      "name": "Loop over entered leads",
      "type": "n8n-nodes-base.splitInBatches",
      "onError": "continueRegularOutput",
      "position": [
        -2976,
        1184
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "e7751ecc-5ebc-485b-ba22-812c647aa621",
      "name": "Loop Over Entered Leads Crawl4AI",
      "type": "n8n-nodes-base.splitInBatches",
      "onError": "continueRegularOutput",
      "position": [
        -3216,
        848
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "27138cb1-97a0-4b8b-b8ff-212137354cf2",
      "name": "Fetch processed leads",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -1568,
        1040
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "fd7b3576-8624-4aed-a820-f4f8068ad2cd",
      "name": "Loop Over Processed Leads",
      "type": "n8n-nodes-base.splitInBatches",
      "onError": "continueRegularOutput",
      "position": [
        -1280,
        912
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "c21f5d53-818d-4632-949e-b5943a149ddb",
      "name": "Loop Over Leads For Scoring",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1344,
        1504
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 3
    },
    {
      "id": "abb10ee1-85fb-4008-882f-09f79ab66d36",
      "name": "Fetch Leads With Created Emails",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -128,
        944
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "505435b0-f50f-4957-9168-9048d1f03a07",
      "name": "Get by user email",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        320,
        288
      ],
      "parameters": {},
      "typeVersion": 3,
      "alwaysOutputData": false
    },
    {
      "id": "1772f60c-f3aa-4873-a595-d3928130a9ac",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3280,
        304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a3caebb4-9697-426d-be37-999236d5d97f",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3280,
        1680
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "331b3767-c3c5-4740-b7d0-cbb8414e808d",
      "name": "If organization website exists Crawl4AI",
      "type": "n8n-nodes-base.if",
      "position": [
        -2976,
        848
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4027e972-4917-414c-9e4f-c5e2255152ff",
      "name": "If organization website exists",
      "type": "n8n-nodes-base.if",
      "position": [
        -2736,
        1248
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "bafe70b7-dd47-435b-a611-88030f188c56",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        1760
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "13320ef4-7316-4bfe-910f-1061b051df79",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "39867c6d-4337-44c5-aeb6-815242d078c4",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        1440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d641f178-7afc-437b-8eb0-13a0a006183a",
      "name": "Sticky Note22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5feac51d-0e4b-47ed-bcc6-836a1aae2766",
      "name": "Email Unwanted",
      "type": "n8n-nodes-base.sendInBlueTrigger",
      "disabled": true,
      "position": [
        112,
        544
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8090a000-3cb4-433f-a632-2d4ab350f66b",
      "name": "Sticky Note23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3680,
        1328
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Crawl4AI resolve",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crawl4AI": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ai Scoring": {
      "main": [
        [
          {
            "node": "Add a score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Send": {
      "main": [
        [
          {
            "node": "Mark as contacted",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mark as Trash",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If pending": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If not success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add a score": {
      "main": [
        [
          {
            "node": "Loop Over Leads For Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Opened": {
      "main": [
        [
          {
            "node": "Get by user email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get by email": {
      "main": [
        [
          {
            "node": "Lead Status -> Trash",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If not scored": {
      "main": [
        [
          {
            "node": "Loop Over Leads For Scoring",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Ai Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as Trash": {
      "main": [
        [
          {
            "node": "Personalized Mail Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Contact": {
      "main": [
        [
          {
            "node": "Email Send",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Email Exists -> Mark as Contacted",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Unwanted": {
      "main": [
        [
          {
            "node": "Delete Contact In Brevo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If not success": {
      "main": [
        [
          {
            "node": "Set Lead Status -> 'failed_to_process'",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Lead Status -> 'processed'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crawl4AI resolve": {
      "main": [
        [
          {
            "node": "If pending",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Lead Status -> 'failed_to_process'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get by user email": {
      "main": [
        [
          {
            "node": "Lead Status -> Email Opened",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as contacted": {
      "main": [
        [
          {
            "node": "Personalized Mail Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apify Crawl Request": {
      "main": [
        [
          {
            "node": "Process Apify Crawl",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mark as failed_to_process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If mail not created": {
      "main": [
        [
          {
            "node": "Email Personalization",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Processed Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Apify Crawl": {
      "main": [
        [
          {
            "node": "Loop over entered leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Personalized mail": {
      "main": [
        [
          {
            "node": "Loop Over Processed Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Personalization": {
      "main": [
        [
          {
            "node": "Add Personalized mail",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Processed Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch processed leads": {
      "main": [
        [
          {
            "node": "Loop Over Processed Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Personalized Mail Loop": {
      "main": [
        [],
        [
          {
            "node": "If not contacted and email created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete Contact In Brevo": {
      "main": [
        [
          {
            "node": "Get by email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop over entered leads": {
      "main": [
        [
          {
            "node": "Fetch data to prepare for scoring",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If organization website exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Processed Leads": {
      "main": [
        [
          {
            "node": "Fetch Leads With Created Emails",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If mail not created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as failed_to_process": {
      "main": [
        [
          {
            "node": "Loop over entered leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Status -> Email Opened": {
      "main": [
        [
          {
            "node": "If Email Opened More Than Once",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Leads For Scoring": {
      "main": [
        [
          {
            "node": "Fetch processed leads",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If not scored",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get 'Entered' Leads From Apify": {
      "main": [
        [
          {
            "node": "Loop over entered leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Email Opened More Than Once": {
      "main": [
        [
          {
            "node": "Lead Status -> Warm",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If organization website exists": {
      "main": [
        [
          {
            "node": "Apify Crawl Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mark as failed_to_process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Lead Status -> 'processed'": {
      "main": [
        [
          {
            "node": "Loop Over Entered Leads Crawl4AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Leads With Created Emails": {
      "main": [
        [
          {
            "node": "Personalized Mail Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Entered Leads From Crawl4AI": {
      "main": [
        [
          {
            "node": "Loop Over Entered Leads Crawl4AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Entered Leads Crawl4AI": {
      "main": [
        [],
        [
          {
            "node": "If organization website exists Crawl4AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Exists -> Mark as Contacted": {
      "main": [
        [
          {
            "node": "Personalized Mail Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch data to prepare for scoring": {
      "main": [
        [
          {
            "node": "Loop Over Leads For Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Get 'Entered' Leads From Apify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If not contacted and email created": {
      "main": [
        [
          {
            "node": "Create Contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Personalized Mail Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Lead Status -> 'failed_to_process'": {
      "main": [
        [
          {
            "node": "Loop Over Entered Leads Crawl4AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If organization website exists Crawl4AI": {
      "main": [
        [
          {
            "node": "Crawl4AI",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Entered Leads Crawl4AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This comprehensive automation flow helps you scale your outreach to potential customers through intelligent personalized email campaigns. The system combines web scraping, AI-powered lead scoring, and automated email sequences to maximize your conversion rates. Intelligent…

Source: https://n8n.io/workflows/4539/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Automatically find company domains, extract decision maker emails (CEO, Sales, Marketing), validate email quality, and build a comprehensive prospect database using AI-powered search and professional

Noco Db, HTTP Request, OpenAI
AI & RAG

[](https://drive.google.com/file/d/1Cl0KwgRgcuBPVdGgL-nqAcheyvfVXttD/view) Click on the image to see the Example output in google drive

HTTP Request, Stop And Error, OpenAI +3
AI & RAG

It fetches LinkedIn profiles for a multitude of purposes based on a keyword and location via Google search and stores them in an Excel file for download and in a NocoDB database. It tries to avoid usi

HTTP Request, OpenAI, Noco Db
AI & RAG

Ask questions like “How much did I spend on food last month?” and get instant answers from your financial data — directly in Telegram.

Telegram Trigger, OpenAI, Google Sheets +2
AI & RAG

The Problem That it Solves

Google Drive Trigger, OpenAI, Google Drive +5