Automation library · Research and reporting

Conversational Razorpay Analytics with Gemini and Telegram Bot

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to Gemini. 22 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

22 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 12Logic 5Service 4

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Google Gemini Chat Model1Lm Chat Google GeminiModel
  3. 3Google Gemini Chat ModelLm Chat Google GeminiModel
  4. 4Google Gemini Chat Model2Lm Chat Google GeminiModel
  5. 5Google Gemini Chat Model3Lm Chat Google GeminiModel
  6. 6Intent ClassifierAgentModel
  7. 7Payments ProcessorAgentModel
  8. 8AI Agent3AgentModel
  9. 9OrdersAgentModel
  10. 10Order Processing AgentAgentModel
  11. 11RefundsAgentModel
  12. 12Refund Processing AgentAgentModel
  13. 13General Chat Processing AgentAgentModel
  14. 14Payment BranchIfLogic
  15. 15Refund BranchIfLogic
  16. 16Order BranchIfLogic
  17. 17General Chat Branch1IfLogic
  18. 18Fetch all paymentsRazorpayService
  19. 19Merge ResponsesMergeLogic
  20. 20Fetch all ordersRazorpayService
  21. 21Fetch all refundsRazorpayService
  22. 22Send a text messageTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
22, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
Gemini

Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 22 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 22 steps before you point it at anything that matters.