Automation library · E-commerce

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.

LargeCalls a model: OpenAIRetrieval

26 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 5Model 13Logic 2Service 6

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2getOrderStatusSupabase ToolService
  3. 3OpenAI Chat Model1Lm Chat Open AiModel
  4. 4Simple MemoryMemory Buffer WindowModel
  5. 5Simple Memory1Memory Buffer WindowModel
  6. 6handle support ticketsLm Chat Open AiModel
  7. 7Simple Memory2Memory Buffer WindowModel
  8. 8Code ToolTool CodeModel
  9. 9SendGmail ToolService
  10. 10createSupportTicketSupabase ToolService
  11. 11getTicketStatusSupabase ToolService
  12. 12OpenAI Chat Model2Lm Chat Open AiModel
  13. 13Simple Memory3Memory Buffer WindowModel
  14. 14getCategoryRecommendationsSupabase ToolService
  15. 15getProductRecommendationsSupabase ToolService
  16. 16WebhookWebhookStarts it
  17. 17AI AgentAgentModel
  18. 18Order QueriesAgentModel
  19. 19AI Agent1AgentModel
  20. 20RecommendationsAgentModel
  21. 21CodeCodeLogic
  22. 22Respond to WebhookRespond To WebhookStarts it
  23. 23Respond to Webhook2Respond To WebhookStarts it
  24. 24Respond to Webhook1Respond To WebhookStarts it
  25. 25SwitchSwitchLogic
  26. 26Respond to Webhook3Respond To WebhookStarts 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.