# Run a WooCommerce store assistant with Telegram and OpenRouter: n8n workflow

> Started by an incoming Telegram message, and works across Email, Gmail, Google Sheets, Telegram and one other.

Source: https://millionrounds.com/workflow/run-a-woocommerce-store-assistant-with-telegram-and-openrout (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# 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.

Large Calls a model: OpenRouter Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frun-a-woocommerce-store-assistant-with-telegram-and-openrout)

**25 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 2 Model 3 Logic 7 Service 13

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

- 1 **Telegram Message Trigger** Telegram trigger *Starts it*
- 2 **AI Chat Router** Lm Chat Open Router *Model*
- 3 **Store Conversation Memory** Memory Buffer Window *Model*
- 4 **Retrieve Orders** Woo Commerce Tool *Service*
- 5 **Search Products** Woo Commerce Tool *Service*
- 6 **Update Product Info** Woo Commerce Tool *Service*
- 7 **Order Database Sync** Google Sheets Tool *Service*
- 8 **Dispatch Customer Email** Gmail Tool *Service*
- 9 **Trigger Daily Digest** Schedule trigger *Starts it*
- 10 **Set Message Fields** Set *Logic*
- 11 **Store Assistant Agent** Agent *Model*
- 12 **Fetch Latest Orders** Woo Commerce *Service*
- 13 **Read Allowlist from Sheets** Google Sheets *Service*
- 14 **If Agent Response** If *Logic*
- 15 **Filter Recent Orders** Code *Logic*
- 16 **Evaluate Access Decision** Code *Logic*
- 17 **Send Bot Reply to Owner** Telegram *Service*
- 18 **Notify Admin Alert** Telegram *Service*
- 19 **Route by Digest Available** Switch *Logic*
- 20 **If Allowed Chat** If *Logic*
- 21 **Send Order Digest Message** Telegram *Service*
- 22 **Send Refusal Message** Telegram *Service*
- 23 **Email Daily Digest** Email Send *Service*
- 24 **No Operation** No Op *Logic*
- 25 **Log Digest Activity** Google Sheets *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frun-a-woocommerce-store-assistant-with-telegram-and-openrout)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[WooCommerce](https://millionrounds.com/workflows?service=WooCommerce#library)

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**AI-powered e-commerce customer support chatbot with OpenAI** 26 steps · calls a model · Gmail](https://millionrounds.com/workflow/ai-powered-e-commerce-customer-support-chatbot-with-openai)
- [**Create AI-powered 3D product videos from images with VEO3** 24 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/create-ai-powered-3d-product-videos-from-images-with-veo3)
- [**Create WooCommerce products and WordPress posts** 24 steps · calls a model · Telegram, WooCommerce](https://millionrounds.com/workflow/create-woocommerce-products-and-wordpress-posts)
- [**Provide ecommerce support with Qdrant RAG and WooCommerce** 24 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/provide-ecommerce-support-with-qdrant-rag-and-woocommerce)
- [**Triage warranty claims and issue RMAs with OpenAI and Shopify** 24 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/triage-warranty-claims-and-issue-rmas-with-openai-and-shopif)
- [**Automate order confirmations with VAPI Voice AI** 24 steps · Airtable, Email](https://millionrounds.com/workflow/automate-order-confirmations-with-vapi-voice-ai)
