Templates / Book conflict-free staff appointments with forms, Postgres and SMTP email

Book conflict-free staff appointments with forms, Postgres and SMTP email

Ready for 3.0

by Basit Qureshi · 0 views · created 2026-11-11 · Support Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 17 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Postgres.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Create Bookings Table (Postgres): run a query
  2. Booking Settings (Edit Fields (Set)): sets 7 fields: business_name, from_email, notify_email…
  3. Validate Request (Code): runs custom JavaScript code
  4. Request Valid? (If): checks a condition and branches into true / false
  5. Reserve First Free Staff (Postgres): run a query
  6. Request Not Possible (n8n Form): shows the next form page
  7. Booked? (If): checks a condition and branches into true / false
  8. Send Confirmation (Send Email): sends an email over SMTP
  9. Already Booked by You? (If): checks a condition and branches into true / false
  10. Booking Confirmed (n8n Form): shows the next form page

…plus 5 more steps. See the full node list below.

Services it uses

Postgres

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow provides an n8n booking form that validates appointment requests, reserves the first available staff member in Postgres without double-booking, emails the customer a confirmation via SMTP, and suggests alternative time slots when…

Excerpt from Basit Qureshi 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.