Automation library · Lead generation

Scrape Google Maps leads with OpenAI and Telegram

Started by an incoming Telegram message, and works across Notion and Telegram. It hands the judgement calls to OpenAI. 21 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 2Model 1Logic 9Service 9

The steps in the order they run, from what starts it.

  1. 1Manual TriggerManual triggerStarts it
  2. 2Telegram CallbackTelegram triggerStarts it
  3. 3📝 CONFIGURATIONSetLogic
  4. 4🕵️‍♂️ Find AgentNotionService
  5. 51. Fetch Google Maps DataHttp RequestService
  6. 6Agent Exists?IfLogic
  7. 72. Clean & NormalizeCodeLogic
  8. 8📝 Assign LeadNotionService
  9. 9❌ Error ToastTelegramService
  10. 10🔄 Loop ItemsSplit In BatchesLogic
  11. 11✅ Update ChatTelegramService
  12. 12🔎 Search DuplicateNotionService
  13. 13🛡️ Restore DataMergeLogic
  14. 14🔔 Show ToastTelegramService
  15. 15Found?IfLogic
  16. 16🚫 Duplicate / SkipNo OpLogic
  17. 17🤖 AI IcebreakerOpen AiModel
  18. 18🔗 Merge FinalMergeLogic
  19. 19💾 Create New LeadNotionService
  20. 20🎨 Prepare MessageCodeLogic
  21. 21📢 Notify TeamTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
21, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Notion, Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Notion and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.