Automation library · Scheduling

WhatsApp appointment scheduling with Google Calendar

Started by an incoming WhatsApp message, and works across Google Calendar, Postgres and WhatsApp. 32 steps, 7 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 12Service 19

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

  1. 1WhatsApp TriggerWhats App triggerStarts it
  2. 2InitializationSetLogic
  3. 3Get bot statusPostgresService
  4. 4Is First?IfLogic
  5. 5Update bot status on STARTPostgresService
  6. 6Is bot starts?IfLogic
  7. 7Welcome MessageWhats AppService
  8. 8Update bot status on START PostgresService
  9. 9Define flowSwitchLogic
  10. 10Main MenuWhats AppService
  11. 11Get available questionPostgresService
  12. 12CommandsSwitchLogic
  13. 13Is found?IfLogic
  14. 14Update bot status on BOOKINGPostgresService
  15. 15ErrorWhats AppService
  16. 16Get available questionsPostgresService
  17. 17Add AnswerPostgresService
  18. 18Is Questions available?IfLogic
  19. 19Date?IfLogic
  20. 20FinishWhats AppService
  21. 21Set DateSetLogic
  22. 22QuestionWhats AppService
  23. 23Get AnswersPostgresService
  24. 24Get Day EventGoogle CalendarService
  25. 25Add pred AnswerPostgresService
  26. 26Set Datetime AND NameSetLogic
  27. 27Set Work HoursCodeLogic
  28. 28Create an eventGoogle CalendarService
  29. 29Set Free Time SlotsSetLogic
  30. 30Delete AnswersPostgresService
  31. 31Union SlotsSummarizeService
  32. 32Request TimeWhats AppService

How it's built

Starts on
An incoming WhatsApp message
Steps
32, with 7 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Calendar, Postgres, WhatsApp
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Calendar, Postgres and WhatsApp accounts. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 32 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 32 steps before you point it at anything that matters.