# Restaurant order & delivery system for WhatsApp with OpenAI: n8n workflow

> Started by an incoming WhatsApp message, and works across Google Drive and WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/restaurant-order-and-delivery-system-for-whatsapp-with-opena (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# Restaurant order & delivery system for WhatsApp with OpenAI

Started by an incoming WhatsApp message, and works across Google Drive and WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 42 steps, 5 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frestaurant-order-and-delivery-system-for-whatsapp-with-opena)

**42 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 12 Logic 12 Service 17

The steps in the order they run, from what starts it.

- 1 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 2 **Postgres Chat Memory1** Memory Postgres Chat *Model*
- 3 **Message Received** Whats App trigger *Starts it*
- 4 **Postgres Chat Memory4** Memory Postgres Chat *Model*
- 5 **OpenAI Chat Model6** Lm Chat Open Ai *Model*
- 6 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 7 **Postgres Chat Memory** Memory Postgres Chat *Model*
- 8 **Structured Output Parser** Output Parser Structured *Model*
- 9 **AI Restaurant Agent** Agent *Model*
- 10 **Message Type** Switch *Logic*
- 11 **Receipt Analysis** Agent *Model*
- 12 **Order Format** Agent *Model*
- 13 **If** If *Logic*
- 14 **If1** If *Logic*
- 15 **If2** If *Logic*
- 16 **Get Image Url** Whats App *Service*
- 17 **Get File Url** Whats App *Service*
- 18 **Text** Set *Logic*
- 19 **Google Maps** Http Request *Service*
- 20 **Get Audio Url** Whats App *Service*
- 21 **Switch** Switch *Logic*
- 22 **Code** Code *Logic*
- 23 **Download file** Google Drive *Service*
- 24 **Menu 1** Google Drive *Service*
- 25 **Message to Customer2** Whats App *Service*
- 26 **Wait** Wait *Logic*
- 27 **Download Image** Http Request *Service*
- 28 **Download File** Http Request *Service*
- 29 **Location** Set *Logic*
- 30 **Download Audio** Http Request *Service*
- 31 **Message to cashier** Whats App *Service*
- 32 **WhatsApp Business Cloud2** Whats App *Service*
- 33 **WhatsApp Business Cloud** Whats App *Service*
- 34 **Response to Customer** Whats App *Service*
- 35 **OpenAI** Open Ai *Model*
- 36 **Extract from File1** Extract From File *Service*
- 37 **Transcribe Audio** Open Ai *Model*
- 38 **Image** Set *Logic*
- 39 **Extract PDF Content Using Gemini Vision** Http Request *Service*
- 40 **Audio** Set *Logic*
- 41 **File** Set *Logic*
- 42 **Forward receipt to Management** Whats App *Service*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 42, with 5 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, WhatsApp
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Google Drive and WhatsApp accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 42 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 42 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frestaurant-order-and-delivery-system-for-whatsapp-with-opena)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**Recover Shopify abandoned carts with SMS and WhatsApp** 44 steps · Google Sheets, SendGrid](https://millionrounds.com/workflow/recover-shopify-abandoned-carts-with-sms-and-whatsapp)
- [**Handle WhatsApp orders, FAQs, and tracking with OpenAI** 37 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/handle-whatsapp-orders-faqs-and-tracking-with-openai)
- [**WooCommerce AI post-sales chatbot with OpenAI and Google Drive** 26 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/woocommerce-ai-post-sales-chatbot-with-openai-and-google-dri)
- [**Conversational sales agent for WooCommerce with OpenAI** 24 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/conversational-sales-agent-for-woocommerce-with-openai)
- [**Create AI-powered 3D product videos from images with VEO3** 24 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/create-ai-powered-3d-product-videos-from-images-with-veo3)
- [**Provide ecommerce support with Qdrant RAG and WooCommerce** 24 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/provide-ecommerce-support-with-qdrant-rag-and-woocommerce)
