{
  "name": "Automated B2B lead generation & cold emails with OpenAI, Apify, Gmail & Telegram",
  "nodes": [
    {
      "id": "76176e5d-13fa-41a9-89f6-fe3244818c76",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        384,
        288
      ]
    },
    {
      "id": "45dd2650-3dcf-43e3-a53d-4a96039e0c50",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        608,
        -48
      ]
    },
    {
      "id": "e8a9f686-d626-4891-a6ab-661d8de6ed93",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        -208
      ]
    },
    {
      "id": "18bf98e1-78a0-40ea-a021-caabfabf55c3",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        -352,
        -176
      ]
    },
    {
      "id": "c649fd90-9e3e-4e00-9bb8-30a66375af1f",
      "name": "Append or update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        384,
        592
      ]
    },
    {
      "id": "b533939d-5237-45ee-ba58-98c08ff16ee8",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        160,
        304
      ]
    },
    {
      "id": "30cd146e-1275-48e7-87da-da2db976a7b4",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -16,
        304
      ]
    },
    {
      "id": "9d8d7555-7587-4f4b-8178-2faab50ce85f",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -304,
        464
      ]
    },
    {
      "id": "42210a49-490c-4d6c-9171-2213e7ecb385",
      "name": "Information Extractor1",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        -304,
        304
      ]
    },
    {
      "id": "e32e288f-abb6-4cb2-ae8f-c227bb8380b7",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -464,
        304
      ]
    },
    {
      "id": "c1cadd00-ddff-4d37-9db2-fe4cb21b4cfe",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -672,
        288
      ]
    },
    {
      "id": "ac4d2d4d-ac22-4ced-8bf4-f57003e0a2ee",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        0,
        -64
      ]
    },
    {
      "id": "f01fbab3-38fb-4825-b4c4-e9a04bd8b851",
      "name": "Information Extractor",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        0,
        -272
      ]
    },
    {
      "id": "8bb28604-810b-41db-afe5-b56322483f72",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -544,
        -176
      ]
    },
    {
      "id": "150960a4-6e70-4e40-9671-e9608d890664",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -864,
        -336
      ]
    },
    {
      "id": "a8a4c50d-6aa1-4223-b9c5-0118b371407b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        -320
      ],
      "parameters": {
        "width": 384,
        "height": 336,
        "content": "## Step 2\nIn this step, apify searches for businesses in the relevant city based on the type and number of businesses entered on the form page. Businesses with websites pass through the filter."
      }
    },
    {
      "id": "d4a85604-bfcb-4d98-a346-89977ce61db5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -512
      ],
      "parameters": {
        "width": 320,
        "height": 320,
        "content": "## Step 1\nIn this step, we fill in the n8n form tool titled Lead Collect Tool with the requested information:\n1-business name\n2-number of businesses to be searched, etc."
      }
    },
    {
      "id": "65445276-a992-4515-a9c1-84fe84e4f141",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -416
      ],
      "parameters": {
        "width": 400,
        "height": 480,
        "content": "## Step 3\nAt this stage, the email addresses of the businesses that pass through the filter are found by AI from their own web addresses."
      }
    },
    {
      "id": "07f3e732-16f2-4133-87d9-e33a6a2006aa",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        -368
      ],
      "parameters": {
        "width": 432,
        "height": 480,
        "content": "## Step 4\nIn this step, businesses with email addresses found by Open AI are recorded in Google Sheets \nwith information such as company name, email address, etc.    "
      }
    },
    {
      "id": "9a59a5e5-9a74-4fd0-bcb6-9660b4b06b97",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        160
      ],
      "parameters": {
        "width": 976,
        "height": 432,
        "content": "## Step 5\nThis step consists of a loop. In the previous steps, emails are sent to each business that has a website and email address. This email is generated by AI according to the type specified in t"
      }
    },
    {
      "id": "c251a56e-1419-46f2-8561-ef2f13e07aa4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        480
      ],
      "parameters": {
        "width": 416,
        "height": 272,
        "content": "## Step 6.2\nIn this step, the business information in the previously created Google Sheet file is updated, and the status of the cold email process is confirmed."
      }
    },
    {
      "id": "f29a55af-00d0-42f8-b3ea-ecd0c958ce55",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        160
      ],
      "parameters": {
        "width": 400,
        "height": 304,
        "content": "## Step 6.1\nAt this step, the system enters a loop and sends emails assigned to each business to the designated Telegram account owner, allowing the automation owner to instantly view emails sent to b"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Information Extractor1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor1": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append or update row in sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}