Automation library · Customer support

Run a WhatsApp customer support chatbot with OpenWA and OpenAI

Started by an event in a connected app, and works across Gmail, 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, 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
3Services it connects to

The flow

Starts it 2Model 12Logic 3Service 9

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

  1. 1OpenWA TriggerOpen Wa triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Window Buffer MemoryMemory Buffer WindowModel
  4. 4OpenAI Chat Model1Lm Chat Open AiModel
  5. 5Embeddings OpenAI2Embeddings Open AiModel
  6. 6CalculatorTool CalculatorModel
  7. 7get_human_supportGmail ToolService
  8. 8When clicking ‘Test workflow’Manual triggerStarts it
  9. 9Embeddings OpenAIEmbeddings Open AiModel
  10. 10Token SplitterText Splitter Token SplitterModel
  11. 11SwitchSwitchLogic
  12. 12Customer Support AgentAgentModel
  13. 13rag_searchTool Vector StoreModel
  14. 14Retrive Qdrant Vector StoreVector Store QdrantModel
  15. 15Create collectionHttp RequestService
  16. 16Refresh collectionHttp RequestService
  17. 17Qdrant Vector StoreVector Store QdrantModel
  18. 18Default Data LoaderDocument Default Data LoaderModel
  19. 19Edit Fields1SetLogic
  20. 20Send Text1Open WaService
  21. 21NormalizeCodeLogic
  22. 22Get folderGoogle DriveService
  23. 23DebugHelperDebug HelperService
  24. 24Send TextOpen WaService
  25. 25Download FilesGoogle DriveService
  26. 26DebugHelper1Debug HelperService

How it's built

Starts on
An event in a connected app
Steps
26, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, 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 Gmail, 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 an event in a connected app.

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.