Skip to main content

Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase

Workflow preview

Workflow preview
100%
Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works This workflow creates a complete AI powered restaurant ordering system through WhatsApp. It receives customer messages, processes multimedia content (text, voice, images, PDFs, locatio...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorypostgreschat, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.whatsapp, n8n-nodes-base.set, 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 Rodrigo.

Original n8n.io source

1.1 Workflow description

Title
Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase
Workflow name
Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase

How it works

This workflow creates a complete AI-powered restaurant ordering system through WhatsApp. It receives customer messages, processes multimedia content (text, voice, images, PDFs, location), uses GPT-4 to understand customer intent and manage conversations, handles the complete ordering flow from menu selection to payment verification, and sends formatted orders to restaurant staff. The system maintains conversation memory, verifies payment receipts using OCR, and provides automated responses in multiple languages.

Who's it for

Restaurant owners, food delivery services, and hospitality businesses looking to automate customer service and order management through WhatsApp without hiring additional staff.

Requirements

  • WhatsApp Business API account
  • OpenAI API key (GPT-4/GPT-4o access recommended)
  • Supabase account (for conversation memory and vector storage)
  • Google Drive account (for menu images and QR codes)
  • Google Maps API key (for location services)
  • Gemini API key (for PDF processing)

How to set up

  1. Configure credentials - Add your WhatsApp Business API, OpenAI, Supabase, Google Drive, and Gemini API credentials to n8n
  2. Update phone numbers - Replace [PHONE_NUMBER] placeholders with your actual restaurant and staff phone numbers
  3. Customize restaurant details - Replace [RESTAURANT_NAME], [RESTAURANT_OWNER_NAME], and [BANK_ACCOUNT_NUMBER] with your information
  4. Upload menu images - Add your menu images to Google Drive and update the file IDs
  5. Set up Supabase - Create tables for chat memory and upload your menu/restaurant information to the vector database
  6. Configure AI prompts - Update the restaurant information in the AI agent system messages
  7. Test the workflow - Send test messages to verify all integrations work

How to customize the workflow

  • Menu management: Update Google Drive file IDs to display your current menu images
  • Payment verification: Modify the receipt analysis logic to match your bank's receipt format
  • Order formatting: Customize the order confirmation template sent to kitchen staff
  • AI personality: Adjust the restaurant agent's tone and responses in the system prompts
  • Languages: The AI supports multiple languages - customize welcome messages for your target market
  • Business hours: Add time-based logic to handle orders outside operating hours
  • Delivery zones: Integrate with your delivery area logic using the location processing features

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 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Postgres Chat Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryPostgresChat - memoryPostgresChat
Config choices
Version 1.3

Block 3 - Wait

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

Block 4 - Google Maps

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Code

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

Block 6 - WhatsApp Business Cloud2

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

Block 7 - Download Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Get Image Url

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

Block 9 - Image

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Sticky Note

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

Block 11 - Sticky Note3

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

Block 12 - Download Audio

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Transcribe Audio

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 14 - Audio

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Get Audio Url

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

Block 16 - Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Location

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Download File

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Get File Url

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

Block 20 - File

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Sticky Note5

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

Block 22 - Sticky Note6

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

Block 23 - Sticky Note7

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

Block 24 - Sticky Note8

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

Showing the first 24 of 55 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase
Complexity advanced
Nodes 55
Categories Support Chatbot, Multimodal AI
Author Rodrigo
Published 12 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7298/7298.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 Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase do?

How it works This workflow creates a complete AI powered restaurant ordering system through WhatsApp. It receives customer messages, processes multimedia content (text, voice, images, PDFs, locatio...

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, Multimodal AI use case.