Book conflict-free staff appointments with forms, Postgres and SMTP email
Ready for 3.0What 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).
- Create Bookings Table (Postgres): run a query
- Booking Settings (Edit Fields (Set)): sets 7 fields: business_name, from_email, notify_email…
- Validate Request (Code): runs custom JavaScript code
- Request Valid? (If): checks a condition and branches into true / false
- Reserve First Free Staff (Postgres): run a query
- Request Not Possible (n8n Form): shows the next form page
- Booked? (If): checks a condition and branches into true / false
- Send Confirmation (Send Email): sends an email over SMTP
- Already Booked by You? (If): checks a condition and branches into true / false
- Booking Confirmed (n8n Form): shows the next form page
…plus 5 more steps. See the full node list below.
Services it uses
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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Postgres
n8n-nodes-base.postgres - n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - n8n Form
n8n-nodes-base.form - Send Email
n8n-nodes-base.emailSend
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…