Automation library · Chat assistants

Source and approve emergency equipment rentals with Telegram

Started by an incoming Telegram message, and works across Gmail, Slack and Telegram. It hands the judgement calls to Azure OpenAI. 18 steps, 2 branches, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Azure OpenAI

18 stepsMedium: a working afternoon
2Branches: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 2Model 2Logic 8Service 6

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

  1. 1Telegram: Breakdown ReportTelegram triggerStarts it
  2. 2Azure OpenAI Chat ModelLm Chat Azure Open AiModel
  3. 3On Workflow ErrorError triggerStarts it
  4. 4Normalise Intake DataCodeLogic
  5. 5AI Agent: Analyse & Rank Vendor QuotesAgentModel
  6. 6Slack – Send Error AlertSlackService
  7. 7Split Into Vendor ItemsCodeLogic
  8. 8Parse AI AnalysisCodeLogic
  9. 9Send Vendor Quote Request EmailsGmailService
  10. 10Email PM: Vendor Comparison + Approval RequestGmailService
  11. 11Wait for Vendor Reply WindowWaitLogic
  12. 12Wait for PM Approval ResponseWaitLogic
  13. 13IfIfLogic
  14. 14Approved?IfLogic
  15. 15Aggregate Vendor QuotesCodeLogic
  16. 16Notify Foreman via Telegram: Booking ConfirmedTelegramService
  17. 17Send Booking Confirmation to VendorGmailService
  18. 18Email PM: Rejection NoticeGmailService

How it's built

Starts on
An incoming Telegram message
Steps
18, with 2 branches, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Gmail, Slack, Telegram
Model
Azure OpenAI

Questions

What does it need to run?

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

How long does it take to set up?

Plan an afternoon. 18 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 18 steps before you point it at anything that matters.