Automation library · CRM

Find cheap flight deals with Gemini and OpenAI

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to Gemini and OpenRouter. 17 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini, OpenRouter

17 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 1Model 8Logic 4Service 4

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

  1. 1Validate user InputsLm Chat Google GeminiModel
  2. 2Google GeminiLm Chat Google GeminiModel
  3. 3OpenRouter ModelLm Chat Open RouterModel
  4. 4User Sends Message to BotTelegram triggerStarts it
  5. 5Validate user InputAgentModel
  6. 6Structured Output ParserOutput Parser StructuredModel
  7. 7Chatting With UserAgentModel
  8. 8Analyze Data & Generate ResponseAgentModel
  9. 9Structured OutputOutput Parser StructuredModel
  10. 10Check For Input TypeSwitchLogic
  11. 11Answer the UserTelegramService
  12. 12Split Out Generated DataSplit OutLogic
  13. 13Process Initialization AlertTelegramService
  14. 14Run "Low-Const Travel Finder" workflowBrowser ActService
  15. 15Loop Over ItemsSplit In BatchesLogic
  16. 16Avoid Rate LimitsWaitLogic
  17. 17Send Travel List to UserTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
17, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Telegram
Model
Gemini, OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for Gemini and OpenRouter. 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 Gemini and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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 17 steps before you point it at anything that matters.