Automation library · Customer support

Auto-reply to FAQs on WhatsApp with Postgres

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

Large

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

The flow

Starts it 1Logic 5Service 16

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

  1. 1WhatsApp TriggerWhats App triggerStarts it
  2. 2InitializationSetLogic
  3. 3Get Bot StatusPostgresService
  4. 4Define FlowSwitchLogic
  5. 5StartsWhats AppService
  6. 6CommandsSwitchLogic
  7. 7Add Consultation requestPostgresService
  8. 8Upsert Bot StatusPostgresService
  9. 9Request ManagerWhats AppService
  10. 10Main MenuWhats AppService
  11. 11List?IfLogic
  12. 12Request SuccessWhats AppService
  13. 13Update Bot Status on MANAGERPostgresService
  14. 14Get FAQsPostgresService
  15. 15Get FAQs PostgresService
  16. 16Request to ManagerWhats AppService
  17. 17Union Number with Question SetLogic
  18. 18Get FAQPostgresService
  19. 19Update Bot Status on STARTPostgresService
  20. 20Union list SummarizeService
  21. 21FAQWhats AppService
  22. 22FAQsWhats AppService

How it's built

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

Questions

What does it need to run?

An n8n account, plus your own 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 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.