Automation library · E-commerce

WooCommerce AI post-sales chatbot with OpenAI and Google Drive

Started by someone opening a chat with it, and works across Google Drive and Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 26 steps: 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
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Model 13Logic 1Service 9

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3get_orderWoo Commerce ToolService
  4. 4get_ordersWoo Commerce ToolService
  5. 5get_userWoo Commerce ToolService
  6. 6CalculatorTool CalculatorModel
  7. 7When clicking ‘Test workflow’Manual triggerStarts it
  8. 8Token SplitterText Splitter Token SplitterModel
  9. 9Embeddings OpenAI1Embeddings Open AiModel
  10. 10Embeddings OpenAIEmbeddings Open AiModel
  11. 11OpenAI Chat ModelLm Chat Open AiModel
  12. 12get_trackingTool WorkflowModel
  13. 13When Executed by Another WorkflowExecute Workflow triggerStarts it
  14. 14human_assistenceTelegram ToolService
  15. 15GPT 4o-miniLm Chat Open AiModel
  16. 16Post-Sales AgentAgentModel
  17. 17Create collectionHttp RequestService
  18. 18Refresh collectionHttp RequestService
  19. 19Default Data LoaderDocument Default Data LoaderModel
  20. 20Qdrant Vector Store1Vector Store QdrantModel
  21. 21Qdrant Vector StoreVector Store QdrantModel
  22. 22ToSTool Vector StoreModel
  23. 23Get trackingHttp RequestService
  24. 24Get folderGoogle DriveService
  25. 25Set tracking codeSetLogic
  26. 26Download FilesGoogle DriveService

How it's built

Starts on
Someone opening a chat with it
Steps
26
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Qdrant
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 Google Drive and Qdrant accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with 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.