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

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

Needs changes

by Rodrigo · 8,590 views · created 2025-08-12 · Support Chatbot, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 42 nodes and runs on WhatsApp events (messages). Along the way it connects OpenAI Chat Model, Postgres Chat Memory, WhatsApp Business Cloud and OpenAI and 1 more. It also calls generativelanguage.googleapis.com over HTTP.

How it runs

Trigger: On WhatsApp events (messages).

  1. Message Type (Switch): routes items into 5 branches
  2. Get Image Url (WhatsApp Business Cloud): media url get
  3. Get File Url (WhatsApp Business Cloud): media url get
  4. Text (Edit Fields (Set)): sets 1 field: text
  5. Google Maps (HTTP Request): calls an HTTP API
  6. Get Audio Url (WhatsApp Business Cloud): media url get
  7. Download Image (HTTP Request): calls an HTTP API
  8. Download File (HTTP Request): calls an HTTP API
  9. AI Restaurant Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; memory: Postgres Chat Memory
  10. Location (Edit Fields (Set)): sets 3 fields: text, latitude, longitude

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

Services it uses

OpenAI Chat ModelPostgres Chat MemoryWhatsApp Business CloudOpenAIGoogle Drive

HTTP calls to: generativelanguage.googleapis.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Order Format (v1.9), Receipt Analysis (v1.9), AI Restaurant Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Order Format (v1.9), Receipt Analysis (v1.9), AI Restaurant Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (15)

From the author

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…

Excerpt from Rodrigo'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.