Restaurant daily insights with Gemini AI - sales, waste & feedback email summary
Needs changesWhat this workflow does
This AI workflow has 27 nodes and runs on a schedule (every day at 22:00). Along the way it connects Google Gemini Chat Model, Google Sheets and Gmail.
How it runs
Trigger: On a schedule (every day at 22:00).
- Fetch Daily Sales Data (Google Sheets): uses Google Sheets
- Fetch Daily Food Waste Records (Google Sheets): uses Google Sheets
- Fetch Customer Feedback (Google Sheets): uses Google Sheets
- Normalize Sales Records (Code): runs custom JavaScript code
- Normalize Waste Data (Code): runs custom JavaScript code
- Normalize Feedback Entries (Code): runs custom JavaScript code
- AI Sales Insights Generator (AI Agent): runs an AI agent, with model: Google Chat Model; 1 tool (Think Tool)
- AI Waste Reduction Insights Generator (AI Agent): runs an AI agent, with model: Chat Model For Food Waste; 1 tool (Think For Food Waste)
- AI Feedback Summary Generator (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Think Tool)
- Format Sales AI Output (Code): runs custom JavaScript code
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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 AI Sales Insights Generator (v1.9), AI Waste Reduction Insights Generator (v1.9), AI Feedback Summary Generator (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).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Sales Insights Generator (v1.9), AI Waste Reduction Insights Generator (v1.9), AI Feedback Summary Generator (v1.9), AI-Generated Daily Summary (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Merge
n8n-nodes-base.merge - Wait
n8n-nodes-base.wait - Gmail
n8n-nodes-base.gmail
From the author
In this guide, we’ll walk you through setting up an AI-driven workflow that automatically fetches daily sales, food waste, and customer feedback data from Google Sheets, generates actionable insights using AI, merges them into a comprehensive report, and…