{
  "name": "Lead gen agent (Telegram)",
  "nodes": [
    {
      "id": "171159eb-9936-4dbd-94a3-4277799353bc",
      "name": "leadScraping",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        680,
        460
      ]
    },
    {
      "id": "b561761a-a725-4b6e-b37f-090563107d24",
      "name": "leadResearch",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        840,
        440
      ]
    },
    {
      "id": "7ad71d24-25fd-4ca8-80c8-3124651ec6cf",
      "name": "Lead Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        520,
        100
      ]
    },
    {
      "id": "0d408086-fcd9-4d45-a3f3-8513fc6b3286",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        440,
        320
      ]
    },
    {
      "id": "db2aefae-bd30-4ec1-8f10-21be6ffc51b7",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        560,
        400
      ]
    },
    {
      "id": "5b27c7d7-3b29-4dfa-8ee3-8e6db26683cd",
      "name": "Download File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "4dedbb6f-1f11-4e9a-a878-e08625674ac8",
      "name": "Transcribe",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "3958a793-f379-4703-aabe-e2d508b1f2c4",
      "name": "Text",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        200
      ]
    },
    {
      "id": "79fc7be1-4af8-440d-aa98-f66ae47884f9",
      "name": "Voice or Text",
      "type": "n8n-nodes-base.switch",
      "position": [
        -220,
        100
      ]
    },
    {
      "id": "4e6e5070-1498-4e92-bd60-a6241f52f309",
      "name": "Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1000,
        0
      ]
    },
    {
      "id": "4d8e1de4-a02b-4fa9-ad0e-d57a03ef2aaa",
      "name": "Error Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1000,
        200
      ]
    },
    {
      "id": "5f476e63-4b80-43c4-957d-85261db977b9",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -480,
        100
      ]
    },
    {
      "id": "f21ff98d-e562-4ab6-9d14-0b675717e8ab",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -640
      ],
      "parameters": {
        "width": 320,
        "height": 540,
        "content": "## Research Report\n![](https://i.imgur.com/OnzVcDj.png)"
      }
    },
    {
      "id": "e70fba28-bcd8-4d34-912f-9a14676c6dee",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -640
      ],
      "parameters": {
        "width": 780,
        "height": 540,
        "content": "## Example Output\n![](https://i.imgur.com/q3pN5im.png)"
      }
    },
    {
      "id": "55a0f125-836d-45c6-af8b-fa7dbca2337c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -1200
      ],
      "parameters": {
        "width": 320,
        "height": 540,
        "content": "## Scraping Leads\n![](https://i.imgur.com/qiF5T23.png)"
      }
    },
    {
      "id": "345b869b-6150-4d03-8429-fd4fc577573a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -1200
      ],
      "parameters": {
        "width": 780,
        "height": 540,
        "content": "## Example Output\n![](https://i.imgur.com/vu7OOqE.png)"
      }
    },
    {
      "id": "d27149b2-bfc3-4d4a-a0b6-2414322c8700",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -40
      ],
      "parameters": {
        "width": 880,
        "height": 440,
        "content": "## Message Telegram Bot\n"
      }
    },
    {
      "id": "4d9b792a-4d43-4702-873e-539ad6c5bf59",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -40
      ],
      "parameters": {
        "width": 800,
        "height": 660,
        "content": "## Call Research or Scraping workflow & respond on Telegram\n"
      }
    },
    {
      "id": "2e106fbe-506c-4d8c-90a8-2a12fd07a10a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        440
      ],
      "parameters": {
        "width": 440,
        "height": 240,
        "content": "## Hey, I'm Abdul 👋\n### I build growth systems for consultants & agencies. If you want to work together or need help automating your business, check out my website: \n### **https://www.builtbyabdul.com"
      }
    },
    {
      "id": "8260426e-0e2f-4fbe-9327-8b4248014f70",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -1260
      ],
      "parameters": {
        "width": 780,
        "height": 1160,
        "content": "# Ultimate Lead Gen Agent Telegram\n## Overview\nUse your voice or text to command a Telegram-based AI agent that scrapes leads or generates detailed research reports—instantly.\n\nThis workflow turns you"
      }
    }
  ],
  "connections": {
    "Text": {
      "main": [
        [
          {
            "node": "Lead Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Agent": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe": {
      "main": [
        [
          {
            "node": "Lead Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "leadResearch": {
      "ai_tool": [
        [
          {
            "node": "Lead Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "leadScraping": {
      "ai_tool": [
        [
          {
            "node": "Lead Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Transcribe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Lead Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Voice or Text": {
      "main": [
        [
          {
            "node": "Download File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Voice or Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Lead Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}