Automation library · Chat assistants

Magento maintenance with Telegram and WhatsApp

Started by an incoming WhatsApp message, and works across Telegram and WhatsApp. It hands the judgement calls to OpenAI. 17 steps, 4 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

17 stepsMedium: a working afternoon
4Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 3Logic 4Service 8

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Message TriggerTelegram triggerStarts it
  3. 3WhatsApp TriggerWhats App triggerStarts it
  4. 4Magento AI Agent 👩🏻‍🏫AgentModel
  5. 5Route Chat InputSwitchLogic
  6. 6IfIfLogic
  7. 7Get audio fileTelegramService
  8. 8Download mediaWhats AppService
  9. 9If2IfLogic
  10. 10Execute a commandSshService
  11. 11Transcribe audioOpen AiModel
  12. 12HTTP RequestHttp RequestService
  13. 13Send message1Whats AppService
  14. 14Send Error MessageTelegramService
  15. 15If1IfLogic
  16. 16Send messageWhats AppService
  17. 17Send OutputTelegramService

How it's built

Starts on
An incoming WhatsApp message
Steps
17, with 4 branches
Size
Medium: a working afternoon
Connects to
Telegram, WhatsApp
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Telegram and WhatsApp 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 WhatsApp 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?

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.