Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase
Needs changesWhat 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).
- Message Type (Switch): routes items into 5 branches
- Get Image Url (WhatsApp Business Cloud): media url get
- Get File Url (WhatsApp Business Cloud): media url get
- Text (Edit Fields (Set)): sets 1 field: text
- Google Maps (HTTP Request): calls an HTTP API
- Get Audio Url (WhatsApp Business Cloud): media url get
- Download Image (HTTP Request): calls an HTTP API
- Download File (HTTP Request): calls an HTTP API
- AI Restaurant Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; memory: Postgres Chat Memory
- Location (Edit Fields (Set)): sets 3 fields: text, latitude, longitude
…plus 24 more steps. See the full node list below.
Services it uses
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.0 | Replace 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)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Switch
n8n-nodes-base.switch - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Extract from File
n8n-nodes-base.extractFromFile - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent
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…