Business Process Automationadvanced
November 6, 2025
6 min read
50 minutes
Build an AI Restaurant Order System using n8n
Automate restaurant orders through Telegram using n8n, AI and Google Sheets. Handle menu, order status, voice orders and daily sales analytics with zero coding.
By Mahedi Hasan Nadvee

Running a restaurant is hard enough without juggling phone calls, scribbled orders, and forgotten delivery addresses. Your staff is overwhelmed, customers are waiting, and half the time you're not even sure which orders are ready or cancelled. Sound familiar?
Here's the good news: you can automate the entire order management process without hiring a developer or spending thousands on custom software. This n8n workflow turns Telegram into a full-featured restaurant ordering system, complete with AI assistance, order tracking and daily sales analytics. No coding required.
What You'll Need to Get Started
Before diving in, make sure you have access to these platforms and APIs:
- n8n account (cloud or self-hosted)
- Telegram Bot API (free, create via BotFather)
- OpenAI API key (for the AI agent and voice transcription)
- Google Sheets API (free with Google account)
The entire setup uses free or affordable tiers, making it accessible for restaurants of any size.
Key Components in This Workflow
This automation brings together several n8n nodes to create a seamless experience:
- Telegram Trigger for receiving customer messages
- AI Agent powered by GPT-4 for natural conversations
- Google Sheets Tools for menu display and order storage
- Memory Buffer to remember conversation context
- OpenAI Whisper for voice message transcription
- Calculator Bot for automated sales analytics
- Schedule Trigger for daily reports
Building Your Restaurant Order System: Step by Step
Step 1: Set Up Your Data Foundation
Everything starts with Google Sheets. Create a spreadsheet with two essential sheets: one for your menu and another for orders. Your menu sheet should list items with names, descriptions, and prices. The order sheet needs columns for customer name, phone number, delivery location, order ID, items ordered, price, and status fields for updates, cancellations, and delivery confirmation.
This becomes your single source of truth. Update the menu once, and customers see changes instantly. Track every order in real time without paper trails.
Step 2: Create Your Telegram Bot Assistant
Open Telegram and chat with BotFather to create your restaurant bot. Once you have your bot token, connect it to n8n using the Telegram Trigger node. This node listens for every message customers send.
But here's where it gets interesting: add voice message support. The workflow checks if incoming messages contain voice notes, fetches the audio file, and uses OpenAI's Whisper model to transcribe it into text. Suddenly, customers can literally speak their orders while driving or multitasking.
Step 3: Configure Your AI Order Assistant
The AI Agent is your digital staff member who never takes a break. Connect it to GPT-4 and give it a clear system prompt that defines its personality and responsibilities. This agent greets customers politely, shows them the menu from your Google Sheet, collects order details like name and address, calculates totals, and generates unique order IDs.
The secret sauce is in the instructions. The agent knows to only create new orders when customers confirm, not when they're just browsing. It understands the difference between viewing the menu and actually placing an order. When customers say "delivered" with their order ID, it updates the existing record instead of creating duplicates.
image_1.png
image_2.png
Wire up three Google Sheets tools as AI tools: one for reading the menu, one for creating new orders, and one for updating existing orders. Add a custom code tool that generates timestamp-based order IDs like ORD-1730987654. This gives the AI everything it needs to handle the full order lifecycle.
image_3.png
Step 4: Format Responses for Customers
AI responses can sometimes feel technical or cluttered. Add a Basic LLM Chain after your AI Agent to clean up the output. This chain takes the agent's response and restructures it into friendly, readable messages. It strips out unnecessary details like preparation time estimates and formats everything in simple, conversational text.
The formatted response then goes to a Telegram node that sends it back to the customer. The whole conversation feels natural, like chatting with a real person who happens to have perfect memory and infinite patience.
Step 5: Build Automated Analytics for Management
Here's where small restaurants gain enterprise-level insights. Create a separate workflow branch with a Schedule Trigger set to run daily. This triggers a specialized Calculator Bot that reads your entire order sheet, analyzes sales data, and generates comprehensive reports.
The Calculator Bot is smart about order status. It only counts orders marked as delivered or those with blank status fields. Cancelled orders get excluded from all calculations. It tallies up how many of each menu item sold, calculates total revenue, and counts order volumes.
Use a Structured Output Parser to format this data as clean JSON with total orders, processed orders, cancelled orders, items sold with quantities, and total revenue. Another LLM chain converts this JSON into a friendly report addressed to the manager, including the current date. The final Telegram node sends this digest straight to the admin's chat every morning.
image_4.png
Step 6: Handle Order Updates and Cancellations
Life happens. Customers change their minds or forget items. The AI Agent handles this gracefully by asking for the order ID and either updating the existing record or changing its status to cancelled. The Update Order Google Sheets tool uses order ID as the matching key, ensuring you modify the right record every time.
When customers receive their food and message back with their order ID, the status updates to delivered. No phone calls needed. No manual spreadsheet editing. Everything flows automatically.
Why This Workflow Changes Everything
Traditional restaurant ordering means phone tag, miscommunication, and lost orders. This system eliminates those pain points while adding capabilities most restaurants can only dream of.
Customers order on their schedule, not yours. They can place orders at 2 AM if they want. The bot never gets tired, never mishears an address, and always confirms order details. Voice message support means ordering while hands are full or during a commute.
For restaurant owners, the benefits multiply. Every order lives in a spreadsheet you can access anywhere. Daily analytics arrive automatically, showing exactly what's selling and what's not. You can update your menu once and customers see changes instantly. No more printing new menus or telling staff about daily specials.
The memory buffer means the AI remembers conversation context. If a customer asks "can I add fries?" the bot knows which order they're talking about. This creates conversations that feel genuinely helpful rather than robotic.
Beyond Restaurants: Where Else This Works
While built for restaurants, this workflow adapts beautifully to other businesses. Bakeries can handle custom cake orders with detailed specifications. Cloud kitchens can manage multiple brands from one interface. Catering companies can track large event orders with special requirements.
Meal prep services benefit from the analytics to understand popular dishes and optimize ingredient purchases. Food trucks can let customers order ahead and pick up without waiting in line. Even grocery delivery services can use this framework to manage order fulfillment.
The pattern works anywhere you need to: take customer orders through messaging, maintain a product catalog, track order status, and analyze sales data. Swap out the menu for a product list, adjust the AI prompts, and you're in business.
Share this article
Help others discover this content
Tap and hold the link button above to access your device's native sharing options
More in Business Process Automation
Continue exploring workflows in this category

Business Process Automationadvanced
1 min read
Build an AI-Powered HR Automation System with WhatsApp and n8n
Nayma Sultana
Nov 15
Est: 1 hour 30 minutes

Business Process Automationintermediate
1 min read
Automated Lead Generation & Qualification Using GPT-4o, Google Workspace, and Smart Follow-Up Workflows
Nayma Sultana
Nov 13
Est: 55 minutes

Business Process Automationadvanced
1 min read
The N8N Workflow That Reverse-Engineers Your Competition
Kazi Sakib
Nov 11
Est: 45 minutes