Automation library · Customer support

Handle WhatsApp support and Cal.com bookings with Gemini

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

LargeCalls a model: GeminiRetrieval

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

The flow

Starts it 1Model 5Logic 11Service 5

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

  1. 1When WhatsApp Message ReceivedWhats App triggerStarts it
  2. 2Google Chat Model (Booking)Lm Chat Google GeminiModel
  3. 3Store Simple MemoryMemory Buffer WindowModel
  4. 4Google Chat Model (Support)Lm Chat Google GeminiModel
  5. 5Normalize Message InputCodeLogic
  6. 6Booking Information AgentAgentModel
  7. 7General Support AgentAgentModel
  8. 8Check 24h Message WindowIfLogic
  9. 9Parse Booking DataCodeLogic
  10. 10Compose WhatsApp ResponseCodeLogic
  11. 11Fetch Current Date & TimeDate TimeLogic
  12. 12Retrieve Company KnowledgeGoogle DocsService
  13. 13Send WhatsApp Reopen MessageWhats AppService
  14. 14Normalize Date and TimeCodeLogic
  15. 15Send WhatsApp ResponseWhats AppService
  16. 16Append Log to Google SheetsGoogle SheetsService
  17. 17Build AI ContextCodeLogic
  18. 18Extract Booking DetailsCodeLogic
  19. 19Check Booking FeasibilityIfLogic
  20. 20Prepare AI Booking PromptCodeLogic
  21. 21Post Cal BookingHttp RequestService
  22. 22Handle Booking FailureCodeLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
22, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Docs, Google Sheets, 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 Google Docs, Google Sheets 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 22 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 22 steps before you point it at anything that matters.