Automation library · Lead generation

Qualify real estate leads and answer EMI queries with Telegram

Started by an incoming Telegram message, and works across Gmail, Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI. 24 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 2Model 5Logic 5Service 12

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

  1. 1Telegram – Receive Customer MessageTelegram triggerStarts it
  2. 2On Workflow ErrorError triggerStarts it
  3. 3Normalize InputSetLogic
  4. 4Slack – Post Workflow Error AlertSlackService
  5. 5Classify Intent & LanguageOpen AiModel
  6. 6Route by IntentSwitchLogic
  7. 7Extract & Score LeadOpen AiModel
  8. 8Extract Loan ParametersOpen AiModel
  9. 9Answer Support QueryOpen AiModel
  10. 10Reply – Fallback ClarificationTelegramService
  11. 11Append Lead to SheetsGoogle SheetsService
  12. 12Calculate EMICodeLogic
  13. 13Query Resolved?IfLogic
  14. 14High Score Lead?IfLogic
  15. 15Generate EMI ReplyOpen AiModel
  16. 16Log EMI SimulationGoogle SheetsService
  17. 17Reply With AnswerTelegramService
  18. 18Log Escalated TicketGoogle SheetsService
  19. 19Notify Agent – Hot Lead EmailGmailService
  20. 20Reply – Nurture LeadTelegramService
  21. 21Send EMI BreakdownTelegramService
  22. 22Notify Agent – Unresolved TicketSlackService
  23. 23Reply – Connecting AgentTelegramService
  24. 24Reply – Connecting to Support AgentTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
24, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Slack, Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets, Slack 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 24 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 24 steps before you point it at anything that matters.