{
  "name": "Automated BBB lead generation with BrowserAct",
  "nodes": [
    {
      "id": "312354c8-9ef1-47fc-9be1-684276476ace",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        224,
        144
      ]
    },
    {
      "id": "79264b3f-8164-448a-b763-3439ae122d2a",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        512,
        384
      ]
    },
    {
      "id": "b61dd38b-1afc-4b69-90be-622d3b688c28",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1424,
        96
      ]
    },
    {
      "id": "e217f12f-5668-48e2-a40d-3e6a30522d11",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1152,
        336
      ]
    },
    {
      "id": "2001df14-7f5f-4c3c-8b7b-836370fdcbd3",
      "name": "Run a workflow",
      "type": "n8n-nodes-browseract.browserAct",
      "position": [
        0,
        240
      ]
    },
    {
      "id": "6c011868-7ffe-4a39-939c-94615e653b3c",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        448,
        -16
      ]
    },
    {
      "id": "d9e0caf5-a05d-4eb8-a0a3-ee6b8d440619",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        528,
        208
      ]
    },
    {
      "id": "5b8f9a50-b3ba-4265-9983-2c8382371524",
      "name": "get row's in sheet",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1312,
        336
      ]
    },
    {
      "id": "be8f442e-008b-4d39-99ac-29f89f8aa779",
      "name": "append row in sheet",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1760,
        336
      ]
    },
    {
      "id": "efdcbd10-0fb7-4209-8eb3-d8ca3570ee64",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -224,
        240
      ]
    },
    {
      "id": "9cfb5fbf-e5c7-450d-b7c1-9814ae33c1cf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        -144
      ],
      "parameters": {
        "width": 576,
        "height": 400,
        "content": "This n8n template automates business lead scraping using BrowserAct, cleans the data with AI Agents, checks duplicates, sends outreach emails via Gmail, and stores results in Google Sheets.\n\n## How it"
      }
    },
    {
      "id": "9857ea05-b7e7-4b9a-9726-124123393669",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        288
      ],
      "parameters": {
        "width": 576,
        "height": 304,
        "content": "## How to use it\n\nCreate the lead_scraping workflow inside your BrowserAct account.\n\nAdd your BrowserAct API token to the BrowserAct node inside this workflow.\n\nReplace the default workflow_id with yo"
      }
    },
    {
      "id": "bc60bd56-9561-4f64-a839-86b679599ddf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        -144
      ],
      "parameters": {
        "width": 1104,
        "height": 736,
        "content": "## Data Scrap & Structured"
      }
    },
    {
      "id": "9a5bc4a8-cec4-4610-aa9e-a7416f1de172",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -144
      ],
      "parameters": {
        "width": 1280,
        "height": 736,
        "content": "## Data search, append, email, update\n"
      }
    },
    {
      "id": "ac8dc50a-a1c5-42fa-b8ed-1aa59ab62c7e",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        64
      ]
    },
    {
      "id": "37710032-2b3a-4bf3-b6ce-4e907aca9e4c",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1056,
        80
      ]
    },
    {
      "id": "84de1f68-5233-412d-83a6-7466b5b4cc12",
      "name": "duplicate data",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1456,
        336
      ]
    },
    {
      "id": "085a9f00-c7d8-4a31-9acc-6614ba8b6d87",
      "name": "outreach email",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1600,
        336
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Run a workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run a workflow": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "duplicate data": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "outreach email": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Run a workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get row's in sheet": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "append row in sheet": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}