Automation library · E-commerce

Handle WhatsApp orders, FAQs, and tracking with OpenAI

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

LargeCalls a model: OpenAIRetrieval

37 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 15Logic 9Service 11

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

  1. 1WhatsApp Incoming Message TriggerWhats App triggerStarts it
  2. 2FAQ Response Language ModelLm Chat Open AiModel
  3. 3Conversation Memory ManagerMemory Buffer WindowModel
  4. 4FAQ Embedding GeneratorEmbeddings Open AiModel
  5. 5Knowledge Retrieval LLMLm Chat Open AiModel
  6. 6Knowledge Base File Change TriggerGoogle Drive triggerStarts it
  7. 7Split Knowledge Base Into ChunksText Splitter Character Text SplitterModel
  8. 8Generate Knowledge EmbeddingsEmbeddings Open AiModel
  9. 9Extract WhatsApp Message DetailsSetLogic
  10. 10WhatsApp FAQ AI AgentAgentModel
  11. 11Pinecone FAQ Vector StoreVector Store PineconeModel
  12. 12Knowledge Base Retrieval ToolTool Vector StoreModel
  13. 13Download Knowledge Base FileGoogle DriveService
  14. 14Load Knowledge Base DocumentDocument Default Data LoaderModel
  15. 15Store Knowledge Embeddings In PineconeVector Store PineconeModel
  16. 16AI Intent ClassificationOpen AiModel
  17. 17Send FAQ WhatsApp ReplyWhats AppService
  18. 18Parse Intent Classification ResponseCodeLogic
  19. 19Intent-Based Request RouterSwitchLogic
  20. 20AI Order Information ExtractorOpen AiModel
  21. 21AI Order ID ExtractorOpen AiModel
  22. 22Notify Human Support TeamSlackService
  23. 23Parse Order Details JSONCodeLogic
  24. 24Parse Order Tracking RequestCodeLogic
  25. 25Send Human Support AcknowledgementWhats AppService
  26. 26Fetch Product CatalogGoogle SheetsService
  27. 27Fetch Order StatusGoogle SheetsService
  28. 28Prepare Product Catalog ContextCodeLogic
  29. 29Send Order Status ReplyWhats AppService
  30. 30AI Semantic Product MatcherOpen AiModel
  31. 31Parse & Validate Product MatchCodeLogic
  32. 32Product Match Validation CheckIfLogic
  33. 33Inventory Availability CheckIfLogic
  34. 34Send Product Error / Stock Failure MessageWhats AppService
  35. 35Create New Order RecordGoogle SheetsService
  36. 36Update Product InventoryGoogle SheetsService
  37. 37Send Order Confirmation MessageWhats AppService

How it's built

Starts on
An incoming WhatsApp message
Steps
37, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets, Pinecone, Slack, WhatsApp
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, Google Sheets, Pinecone, Slack and WhatsApp accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

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 37 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 37 steps before you point it at anything that matters.