Automation library · Chat assistants

WhatsApp chat agent with Gemini and Supabase

Started by an incoming WhatsApp message, and works across Supabase and WhatsApp. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 28 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

28 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 6Logic 8Service 13

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

  1. 1WhatsApp TriggerWhats App triggerStarts it
  2. 2Structured Output Parser1Output Parser StructuredModel
  3. 3Google Gemini Chat Model3Lm Chat Google GeminiModel
  4. 4Gemini Chat ModelLm Chat Google GeminiModel
  5. 5Postgres Chat MemoryMemory Postgres ChatModel
  6. 6Get CVsSupabase ToolService
  7. 7Get chat_historySupabase ToolService
  8. 8SwitchSwitchLogic
  9. 9CV Processor AgentAgentModel
  10. 10Interview ConductorAgentModel
  11. 11Get Audio URLWhats AppService
  12. 12text only promptSetLogic
  13. 13Edit FieldsSetLogic
  14. 14Set Interview DataSetLogic
  15. 15IF AudioIfLogic
  16. 16Download AudioHttp RequestService
  17. 17Download mediaWhats AppService
  18. 18Create a row1SupabaseService
  19. 19CodeCodeLogic
  20. 20Format ResponseSetLogic
  21. 21Extract from FileExtract From FileService
  22. 22Download Audio Http RequestService
  23. 23HTTP RequestHttp RequestService
  24. 24interview send msgWhats AppService
  25. 25audio to textHttp RequestService
  26. 26Extract from File1Extract From FileService
  27. 27interview send msg1Whats AppService
  28. 28Audio to textSetLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
28, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Supabase, WhatsApp
Model
Gemini
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 Supabase and WhatsApp accounts, and a key for Gemini. 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 Gemini. 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 28 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 28 steps before you point it at anything that matters.