Skip to main content

Build a restaurant voice assistant with VAPI and PostgreSQL for bookings & orders

Workflow preview

Workflow preview
100%
Build a restaurant voice assistant with VAPI and PostgreSQL for bookings & orders preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template demonstrates how to create a comprehensive voice powered restaurant assistant that handles table reservations, food orders, and restaurant information requests through natural lan...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.postgres, n8n-nodes-base.respondtowebhook, n8n-nodes-base.wait, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Build a restaurant voice assistant with VAPI and PostgreSQL for bookings & orders
Workflow name
Build a restaurant voice assistant with VAPI and PostgreSQL for bookings & orders

This n8n template demonstrates how to create a comprehensive voice-powered restaurant assistant that handles table reservations, food orders, and restaurant information requests through natural language processing. The system uses VAPI for voice interaction and PostgreSQL for data management, making it perfect for restaurants looking to automate customer service with voice AI technology.

Good to know

  • Voice processing requires active VAPI subscription with per-minute billing
  • Database operations are handled in real-time with immediate confirmations
  • The system can handle multiple simultaneous voice requests
  • All customer data is stored securely in PostgreSQL with proper indexing

How it works

Table Booking & Order Handling Workflow

  • Voice requests are captured through VAPI triggers when customers make booking or ordering requests
  • The system processes natural language commands and extracts relevant details (party size, time, food items)
  • Customer data is immediately saved to the bookings and orders tables in PostgreSQL
  • Voice confirmations are sent back through VAPI with booking details and estimated wait times
  • All transactions are logged with timestamps for restaurant management tracking

Restaurant Info Provider Workflow

  • Info requests trigger when customers ask about hours, menu, location, or services
  • Restaurant details are retrieved from the restaurant_info table containing current information
  • Wait nodes ensure proper data loading before voice response generation
  • Structured restaurant information is delivered via VAPI in natural, conversational format

Database Schema

Bookings Table

  • booking_id (PRIMARY KEY) - Unique identifier for each reservation
  • customer_name - Customer's full name
  • phone_number - Contact number for confirmation
  • party_size - Number of guests
  • booking_date - Requested reservation date
  • booking_time - Requested time slot
  • special_requests - Dietary restrictions or special occasions
  • status - Booking status (confirmed, pending, cancelled)
  • created_at - Timestamp of booking creation

Orders Table

  • order_id (PRIMARY KEY) - Unique order identifier
  • customer_name - Customer's name
  • phone_number - Contact for order updates
  • order_items - JSON array of food items and quantities
  • total_amount - Calculated order total
  • order_type - Delivery, pickup, or dine-in
  • special_instructions - Cooking preferences or allergies
  • status - Order status (received, preparing, ready, delivered)
  • created_at - Order timestamp

Restaurant_Info Table

  • info_id (PRIMARY KEY) - Information entry identifier
  • category - Type of info (hours, menu, location, contact)
  • title - Information title
  • description - Detailed information content
  • is_active - Whether info is currently valid
  • updated_at - Last modification timestamp

How to use

  • The manual trigger can be replaced with webhook triggers for integration with existing restaurant systems
  • Import the workflow into your n8n instance and configure VAPI credentials
  • Set up PostgreSQL database with the required tables using the schema provided above
  • Configure restaurant information in the restaurant_info table
  • Test voice commands such as "Book a table for 4 people at 7 PM" or "What are your opening hours?"
  • Customize voice responses in VAPI nodes to match your restaurant's tone and branding
  • The system can handle multiple concurrent voice requests and scales with your restaurant's needs

Requirements

  • VAPI account for voice processing and natural language understanding
  • PostgreSQL database for storing booking, order, and restaurant information
  • n8n instance with database and VAPI integrations enabled

Customising this workflow

  • Voice AI automation can be adapted for various restaurant types - from quick service to fine dining establishments
  • Try popular use-cases such as multi-location booking management, dietary restriction handling, or integration with existing POS systems
  • The workflow can be extended to include payment processing, SMS notifications, and third-party delivery platform integration

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Trigger: Voice Request (VAPI)

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Update Data (Table Booking / Orders)

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 3 - Respond: Booking/Order Confirmation (VAPI)

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 4 - Wait For Response

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 5 - Wait For Response1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Trigger: Info Request (VAPI)

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 7 - Get Restaurant Info (Postgres)

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 8 - Respond: Restaurant Details (VAPI)

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Build a restaurant voice assistant with VAPI and PostgreSQL for bookings & orders
Complexity intermediate
Nodes 10
Categories Support Chatbot, AI Chatbot
Author Oneclick AI Squad
Published 10 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5847/5847.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build a restaurant voice assistant with VAPI and PostgreSQL for bookings & orders do?

This n8n template demonstrates how to create a comprehensive voice powered restaurant assistant that handles table reservations, food orders, and restaurant information requests through natural lan...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.