Automation library · E-commerce

Run a WooCommerce store assistant with Telegram and OpenRouter

Started by an incoming Telegram message, and works across Email, Gmail, Google Sheets, Telegram and one other. It puts OpenRouter behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouterRetrieval

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

The flow

Starts it 2Model 3Logic 7Service 13

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

  1. 1Telegram Message TriggerTelegram triggerStarts it
  2. 2AI Chat RouterLm Chat Open RouterModel
  3. 3Store Conversation MemoryMemory Buffer WindowModel
  4. 4Retrieve OrdersWoo Commerce ToolService
  5. 5Search ProductsWoo Commerce ToolService
  6. 6Update Product InfoWoo Commerce ToolService
  7. 7Order Database SyncGoogle Sheets ToolService
  8. 8Dispatch Customer EmailGmail ToolService
  9. 9Trigger Daily DigestSchedule triggerStarts it
  10. 10Set Message FieldsSetLogic
  11. 11Store Assistant AgentAgentModel
  12. 12Fetch Latest OrdersWoo CommerceService
  13. 13Read Allowlist from SheetsGoogle SheetsService
  14. 14If Agent ResponseIfLogic
  15. 15Filter Recent OrdersCodeLogic
  16. 16Evaluate Access DecisionCodeLogic
  17. 17Send Bot Reply to OwnerTelegramService
  18. 18Notify Admin AlertTelegramService
  19. 19Route by Digest AvailableSwitchLogic
  20. 20If Allowed ChatIfLogic
  21. 21Send Order Digest MessageTelegramService
  22. 22Send Refusal MessageTelegramService
  23. 23Email Daily DigestEmail SendService
  24. 24No OperationNo OpLogic
  25. 25Log Digest ActivityGoogle SheetsService

How it's built

Starts on
An incoming Telegram message
Steps
25, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Email, Gmail, Google Sheets, Telegram, WooCommerce
Model
OpenRouter
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Email, Gmail, Google Sheets, Telegram and WooCommerce accounts, and a key for 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 OpenRouter. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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