Automate restaurant orders with AI dish recommendations using Gemini and Telegram
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“Oneclick Restaurant Order - Table number 1”). Along the way it connects Google Sheets, Telegram and Google Gemini Chat Model.
How it runs
Trigger: When someone submits an n8n form (“Oneclick Restaurant Order - Table number 1”).
- Extract & Format Order Data (Code): runs custom JavaScript code
- Save Customer Info (Google Sheets): append
- Save Dish Info (Code): runs custom JavaScript code
- Prepare Dish Details for AI (Google Sheets): append
- Clean Data for AI Input (Code): runs custom JavaScript code
- Gemini AI Dish Suggestion Agent (AI Agent): runs an AI agent, with model: Chat Model; 1 tool (Think Tool)
- Format AI Suggestions for Telegram (Code): runs custom JavaScript code
- Send Suggestions via Telegram (Telegram): uses Telegram
Services it uses
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 Gemini AI Dish Suggestion 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.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Gemini AI Dish Suggestion 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 (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Telegram
n8n-nodes-base.telegram - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Think Tool
@n8n/n8n-nodes-langchain.toolThink
From the author
In this guide, we’ll walk you through setting up a smart workflow that triggers on new restaurant orders, extracts and formats customer and dish details from Google Sheets, uses Gemini AI to recommend dishes or offers, and sends suggestions via Telegram.…