{
  "name": "AI-powered lead research & personalized email generation with Groq & Google Sheets",
  "nodes": [
    {
      "id": "aef4dd12-816e-4017-a951-dc2c6a0b8a1e",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -880,
        -100
      ]
    },
    {
      "id": "3205240f-3653-4e0d-a638-2044a4a0a253",
      "name": "Search Internet1",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        560,
        0
      ]
    },
    {
      "id": "6e9e4bcc-a713-421c-bac6-2901ca810723",
      "name": "Company Research1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -360,
        -40
      ]
    },
    {
      "id": "3f1d292f-a909-4b22-bbbf-3843cdd0913a",
      "name": "Groq Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        400,
        60
      ]
    },
    {
      "id": "c075d4d7-ac55-4a4b-884e-67138d50a0c4",
      "name": "updateStatus",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        180,
        -40
      ]
    },
    {
      "id": "a22f8ce1-bf68-408a-ba00-7f1ac83a7211",
      "name": "updateDescription",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -20,
        -40
      ]
    },
    {
      "id": "89dd2953-8fe2-4798-879f-d92d1eb77c4d",
      "name": "getTemplate",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -520,
        540
      ]
    },
    {
      "id": "eb74fb86-f67d-474b-a021-1077e6f7fa99",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        980,
        580
      ]
    },
    {
      "id": "2dde3089-fb2a-4c20-a19a-ee75f250aebd",
      "name": "draftEmail",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        120,
        540
      ]
    },
    {
      "id": "b2e44f4b-50f3-4bb6-9d60-ac6787f8c1b0",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1320,
        -100
      ]
    },
    {
      "id": "65a91454-d953-4a14-b115-012cc5af41bb",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1100,
        -100
      ]
    },
    {
      "id": "9ee78456-5839-48b5-a89d-1bc1855e6607",
      "name": "inputLink",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        480,
        540
      ]
    },
    {
      "id": "20ca4e42-14f9-4393-92d4-32c6da0ba6c9",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        300,
        540
      ]
    },
    {
      "id": "781e118b-7062-4f1c-aeb3-a025f9740844",
      "name": "Search Internet2",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        840,
        640
      ]
    },
    {
      "id": "dfab319e-a76d-4c72-a0e9-6d8120efc0f5",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -580,
        -40
      ]
    },
    {
      "id": "6db18626-365c-4071-a777-7e4c56455f74",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        700,
        580
      ]
    },
    {
      "id": "256aaaca-a8a1-4499-bdbc-650137550b8a",
      "name": "getService",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -360,
        540
      ]
    },
    {
      "id": "573beee9-2030-496f-bb63-0a3384d4d07a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1380,
        -340
      ],
      "parameters": {
        "width": 720,
        "height": 380,
        "content": "## Get Leads Data\n*   **Data Source:** The workflow starts by fetching lead data from a **Google Sheet**. This sheet is designed to act as a central hub, likely connected to a **Google Form** where ne"
      }
    },
    {
      "id": "20a1914f-6bf3-4093-9acb-98ae73cbb17a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -340
      ],
      "parameters": {
        "width": 1380,
        "height": 540,
        "content": "## Company Research\n*   **Individual Processing:** Each qualified lead is then processed individually using the `Loop Over Items` node, ensuring that every research task and the generated email is foc"
      }
    },
    {
      "id": "3fe97a6c-794b-4912-8a2e-bee3c69fd8f5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        220
      ],
      "parameters": {
        "width": 1720,
        "height": 560,
        "content": "## Generate & Send Lead Email\n*   **Gathering Context:** A second **AI Sales Assistant** ,\" is activated. This agent gathers various pieces of information to craft the perfect email:\n    *   **Lead Da"
      }
    },
    {
      "id": "74633aa8-d54a-4003-a06c-bd7f697b3950",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1380,
        80
      ],
      "parameters": {
        "width": 720,
        "height": 940,
        "content": "## Overall Description & Potential\n\n**<< What Does This Flow Do? >>**\n\nOverall, this workflow is an **intelligent sales outreach automation engine** that transforms raw leads from a form or a list int"
      }
    },
    {
      "id": "0d809625-af14-4e3f-9a43-dcebb36d3100",
      "name": "AI Sales Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -180,
        540
      ]
    }
  ],
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "inputLink",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "inputLink": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "draftEmail": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getService": {
      "main": [
        [
          {
            "node": "AI Sales Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getTemplate": {
      "main": [
        [
          {
            "node": "getService",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "updateStatus": {
      "main": [
        [
          {
            "node": "getTemplate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Sales Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Company Research1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "Company Research1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Internet1": {
      "ai_tool": [
        [
          {
            "node": "Company Research1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Search Internet2": {
      "ai_tool": [
        [
          {
            "node": "AI Sales Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Company Research1": {
      "main": [
        [
          {
            "node": "updateDescription",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "updateDescription": {
      "main": [
        [
          {
            "node": "updateStatus",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Sales Assistant": {
      "main": [
        [
          {
            "node": "draftEmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Sales Assistant",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}