# Automated customer reservations with Postgres and WhatsApp: n8n workflow

> Started by an incoming WhatsApp message, and works across Postgres and WhatsApp. 39 steps, 6 branches: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/automated-customer-reservations-with-postgres-and-whatsapp (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Automated customer reservations with Postgres and WhatsApp

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

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-customer-reservations-with-postgres-and-whatsapp)

**39 steps** Large: read it before trusting it with anything live

**6** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 12 Service 26

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

- 1 **WhatsApp Trigger** Whats App trigger *Starts it*
- 2 **Initialization** Set *Logic*
- 3 **Get Bot Status** Postgres *Service*
- 4 **Define Flow** Switch *Logic*
- 5 **Starts** Whats App *Service*
- 6 **Commands** Switch *Logic*
- 7 **Get book** Postgres *Service*
- 8 **Edit Fields** Set *Logic*
- 9 **Payments** Whats App *Service*
- 10 **Upsert Bot Status on START** Postgres *Service*
- 11 **Main Menu** Whats App *Service*
- 12 **Get Work Days** Postgres *Service*
- 13 **Merge** Merge *Logic*
- 14 **Update bot status on START** Postgres *Service*
- 15 **Is Date correct?** If *Logic*
- 16 **First Question?** If *Logic*
- 17 **Union Number with Question** Set *Logic*
- 18 **Add Book** Postgres *Service*
- 19 **Get Work Days** Postgres *Service*
- 20 **Merge1** Merge *Logic*
- 21 **Switch** Switch *Logic*
- 22 **Union list** Summarize *Service*
- 23 **Update Date AND Status** Postgres *Service*
- 24 **Update Hour** Postgres *Service*
- 25 **Phone validation1** If *Logic*
- 26 **Update Name** Postgres *Service*
- 27 **Request Date** Whats App *Service*
- 28 **Get Work Hours** Postgres *Service*
- 29 **Request Phone** Whats App *Service*
- 30 **Update Phone** Postgres *Service*
- 31 **Phone Error** Whats App *Service*
- 32 **page booking success** Whats App *Service*
- 33 **Update bot status on BOOKING** Postgres *Service*
- 34 **Union Number with Question1** Set *Logic*
- 35 **Request Name** Whats App *Service*
- 36 **Update status on BOOKED** Postgres *Service*
- 37 **Union list1** Summarize *Service*
- 38 **Update bot status on PAYMENTS** Postgres *Service*
- 39 **Request Time** Whats App *Service*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 39, with 6 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 39 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 39 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-customer-reservations-with-postgres-and-whatsapp)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**AI-Powered WhatsApp Chatbot: Complete Booking Assistant** 37 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-complete-booking-assistant)
- [**Trigger HVAC upsell campaigns from weather data** 36 steps · calls a model · GoHighLevel, WhatsApp](https://millionrounds.com/workflow/trigger-hvac-upsell-campaigns-from-weather-data)
- [**Doctor appointment management system with Gemini and WhatsApp** 35 steps · calls a model · Google Sheets, WhatsApp](https://millionrounds.com/workflow/doctor-appointment-management-system-with-gemini-and-whatsap)
- [**Send WhatsApp meeting briefs with Google Calendar and Gmail** 35 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/send-whatsapp-meeting-briefs-with-google-calendar-and-gmail)
- [**WhatsApp appointment scheduling with Google Calendar** 32 steps · Google Calendar, Postgres](https://millionrounds.com/workflow/whatsapp-appointment-scheduling-with-google-calendar)
- [**Automate sales meeting prep with Apify** 47 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-sales-meeting-prep-with-apify)
