# AI-powered e-commerce customer support chatbot with OpenAI: n8n workflow

> Started by another system calling it, and works across Gmail. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather...

Source: https://millionrounds.com/workflow/ai-powered-e-commerce-customer-support-chatbot-with-openai (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)

# AI-powered e-commerce customer support chatbot with OpenAI

Started by another system calling it, and works across Gmail. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 26 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-e-commerce-customer-support-chatbot-with-openai)

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

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 5 Model 13 Logic 2 Service 6

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **getOrderStatus** Supabase Tool *Service*
- 3 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 4 **Simple Memory** Memory Buffer Window *Model*
- 5 **Simple Memory1** Memory Buffer Window *Model*
- 6 **handle support tickets** Lm Chat Open Ai *Model*
- 7 **Simple Memory2** Memory Buffer Window *Model*
- 8 **Code Tool** Tool Code *Model*
- 9 **Send** Gmail Tool *Service*
- 10 **createSupportTicket** Supabase Tool *Service*
- 11 **getTicketStatus** Supabase Tool *Service*
- 12 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 13 **Simple Memory3** Memory Buffer Window *Model*
- 14 **getCategoryRecommendations** Supabase Tool *Service*
- 15 **getProductRecommendations** Supabase Tool *Service*
- 16 **Webhook** Webhook *Starts it*
- 17 **AI Agent** Agent *Model*
- 18 **Order Queries** Agent *Model*
- 19 **AI Agent1** Agent *Model*
- 20 **Recommendations** Agent *Model*
- 21 **Code** Code *Logic*
- 22 **Respond to Webhook** Respond To Webhook *Starts it*
- 23 **Respond to Webhook2** Respond To Webhook *Starts it*
- 24 **Respond to Webhook1** Respond To Webhook *Starts it*
- 25 **Switch** Switch *Logic*
- 26 **Respond to Webhook3** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 26, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail
- **Model:** OpenAI
- **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 Gmail account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. 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 26 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 26 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%2Fai-powered-e-commerce-customer-support-chatbot-with-openai)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)

## Workflows like it

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

- [**Reprice WooCommerce products with Amazon and Bright Data** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/reprice-woocommerce-products-with-amazon-and-bright-data)
- [**Run a WooCommerce store assistant with Telegram and OpenRouter** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/run-a-woocommerce-store-assistant-with-telegram-and-openrout)
- [**Validate wholesale order emails against a Google Sheets price** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/validate-wholesale-order-emails-against-a-google-sheets-pric)
- [**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)
- [**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)
