🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Google Sheets to Gmail, smarter restaurant forecasts

Lisa Granqvist Partner Workflow Automation Expert

Running out of a key ingredient feels awful. So does throwing food away because you “played it safe” and over-ordered. Most of the time, the problem isn’t effort. It’s that the numbers live in a spreadsheet, the decisions live in someone’s head, and the daily rush leaves no time to connect the dots.

This Sheets Gmail forecasts automation hits restaurant operators hardest, but kitchen managers and multi-location owners feel it too. You get a daily demand forecast and recommended order quantities, written in plain English, delivered to inboxes automatically.

Below, you’ll see how the workflow turns Google Sheets history into an AI-backed forecast, logs it for tracking, and sends a Gmail summary your team will actually read.

How This Automation Works

See how this solves the problem:

n8n Workflow Template: Google Sheets to Gmail, smarter restaurant forecasts

The Challenge: Forecasting demand without living in spreadsheets

If you’re forecasting from memory (or last week’s vibe), you’re basically guessing with expensive ingredients. Sales patterns change with weather, seasonality, events, even one staff member taking a day off. The data is there, but it’s scattered across tabs, inconsistent entries, and half-finished notes that never make it to the person ordering. Then you repeat it tomorrow. And the next day. It’s tiring, and honestly it’s easy to lose confidence in your own numbers.

It adds up fast. Here’s where it breaks down in real kitchens.

  • You spend about an hour pulling yesterday’s sales and waste into something you can reason about.
  • Small data entry mistakes compound, which means you over-order “just in case.”
  • Forecasts don’t get shared consistently, so prep and ordering drift out of sync.
  • You can’t easily compare predicted vs. actual over time, so the process never improves.

The Fix: Daily AI forecasting from Google Sheets, emailed via Gmail

This n8n workflow runs on a daily schedule and turns your existing Google Sheets into a forecasting engine. It starts by pulling historical records (sales, usage, and wastage) from your sheet, then cleans and structures the data so an AI model can interpret it reliably. Next, an AI Agent (using a Gemini chat model in the workflow) generates item-level demand predictions, recommended order quantities, and simple notes about waste risk. That output is normalized into a consistent format, appended back into a “Predicted Food Data” Google Sheet for tracking, and then summarized into a short email your staff can scan in under a minute. Finally, Gmail sends the forecast report to whoever needs it.

The workflow begins with a scheduled daily trigger. Google Sheets provides the historical context, AI generates the forecast and the email copy, then Gmail delivers it. You end up with two outcomes at once: a logged forecast trail in Sheets and a daily decision-ready message in inboxes.

What Changes: Before vs. After

Real-World Impact

Say your manager spends about 45 minutes each morning pulling yesterday’s sales, checking waste notes, and drafting an ordering recommendation. That’s roughly 4 hours a week. With this workflow, the “work” is dropping clean data into Google Sheets as you already do, then waiting for the scheduled run; the email lands automatically, and the forecast is logged for you. You’ll usually spend maybe 5 minutes reviewing and making the final call, so you’re getting around 3 hours back each week while making ordering more consistent.

Requirements

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Sheets for sales, waste, and forecast storage
  • Gmail to email the daily forecast summary
  • Gemini API key (get it from Google AI Studio)

Skill level: Intermediate. You’ll connect Google accounts, create two sheets with the right columns, and paste in one API key.

Need help implementing this? Talk to an automation expert (free 15-minute consultation).

The Workflow Flow

Daily scheduled run. At the same time each day, n8n triggers the automation so you’re not relying on someone to remember.

Sales and waste data is pulled from Google Sheets. The workflow retrieves past records, then reformats them into a clean structure so the AI doesn’t have to “guess” what each column means.

AI generates a forecast and recommendations. A Gemini-backed AI Agent predicts demand per item, suggests recommended order quantities, and flags waste risk with quick optimization notes. A short “thinking” tool in the workflow helps keep output consistent, especially when your sheet gets messy.

Results are logged and emailed. The forecast is appended to your prediction sheet in Google Sheets, then a separate AI Agent drafts a human-friendly summary and Gmail sends it to staff and management.

You can easily modify the forecast prompt to focus on high-cost items, key categories (proteins, produce), or local seasonal swings based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Schedule Trigger

Set the workflow to run automatically each day and kick off the data pull.

  1. Add the Scheduled Daily Start node as your trigger.
  2. Set the schedule rule to run daily at Trigger At Hour 22 (as shown in the node).
  3. Connect Scheduled Daily Start to Retrieve Past Sales Records.

If your restaurant closes earlier, adjust the trigger hour to run after the last daily data entry is complete.

Step 2: Connect Google Sheets

Pull historical sales data and write the forecast back to your spreadsheet.

  1. Open Retrieve Past Sales Records and select the spreadsheet by setting Document ID to [YOUR_ID] and Sheet Name to [YOUR_ID].
  2. Set Authentication to serviceAccount.
  3. Credential Required: Connect your googleApi credentials in Retrieve Past Sales Records.
  4. Open Append Forecast to Sheet and set Operation to append.
  5. Set Document ID to [YOUR_ID] and Sheet Name to [YOUR_ID] in Append Forecast to Sheet.
  6. Credential Required: Connect your googleApi credentials in Append Forecast to Sheet.

⚠️ Common Pitfall: If the sheet column names in Append Forecast to Sheet do not match the AI output fields exactly (e.g., predicted Use (kg)), the append step will fail.

Step 3: Set Up Data Preparation

Package the raw sheet rows into a single payload for the AI agent.

  1. In Prepare Data for Forecast, keep the JavaScript Code that bundles all rows into { data: { rows: [...] } }.
  2. Ensure Retrieve Past Sales Records outputs into Prepare Data for Forecast.
  3. Confirm the output is a single item with json.data to match the AI input.

Step 4: Configure AI Forecasting

Generate the demand forecast using the AI agent and Gemini models.

  1. Open Generate AI Forecast and set Text to {{ $json.data }}.
  2. Keep the detailed forecasting System Message in Generate AI Forecast to ensure JSON array output.
  3. Attach Gemini Chat Model as the language model for Generate AI Forecast.
  4. Credential Required: Connect your googlePalmApi credentials in Gemini Chat Model.
  5. Attach Reasoning Tool to Generate AI Forecast for structured reasoning.

The Reasoning Tool is an AI sub-node. Add credentials to the parent model node (Gemini Chat Model), not the tool itself.

Step 5: Normalize and Store Forecast Output

Clean the AI output into rows and append them to your forecast sheet.

  1. In Normalize AI Result, keep the parsing logic that strips code fences and parses the JSON array.
  2. Connect Generate AI Forecast to Normalize AI Result, then connect to Append Forecast to Sheet.
  3. Verify that Append Forecast to Sheet columns match: Date, Dish, predicted Sales, Raw Material, predicted Use (kg), predicted food waste reduce (kg).

Step 6: Compose and Send the Forecast Email

Create a readable email summary and dispatch it to stakeholders.

  1. Open Compose Forecast Email and set Text to {{ $('Generate AI Forecast').item.json.output }}.
  2. Attach Gemini Query Model as the language model for Compose Forecast Email.
  3. Credential Required: Connect your googlePalmApi credentials in Gemini Query Model.
  4. Attach Thought Tool to Compose Forecast Email for structured drafting.
  5. In Dispatch Forecast Email, set Send To to [YOUR_EMAIL], Subject to Next monday prediction, and Message to {{ $json.output }}.
  6. Credential Required: Connect your gmailOAuth2 credentials in Dispatch Forecast Email.

The Thought Tool is an AI sub-node. Add credentials to the parent model node (Gemini Query Model), not the tool itself.

Step 7: Test and Activate Your Workflow

Validate the forecast output and enable daily runs.

  1. Click Execute Workflow to run a manual test from Scheduled Daily Start.
  2. Check that Append Forecast to Sheet creates new rows in the forecast sheet.
  3. Verify that Dispatch Forecast Email sends a message and the body matches the AI summary.
  4. When results look correct, toggle the workflow to Active for daily production runs.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Watch Out For

  • Google Sheets access can fail if the connected Google account loses permission to the spreadsheet. If the workflow suddenly returns empty rows, check the n8n Google Sheets credential and the file’s sharing settings first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Common Questions

How quickly can I implement this Sheets Gmail forecasts automation?

About an hour if your Sheets are already set up.

Can non-technical teams implement this forecast email automation?

Yes. You’ll mostly be connecting Google accounts and pasting in an AI API key.

Is n8n free to use for this Sheets Gmail forecasts workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Gemini API usage, which is usually modest for one daily forecast email.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

How do I adapt this Sheets Gmail forecasts solution to my specific challenges?

Start with the “Generate AI Forecast” agent prompt, because that’s where you can tell the model what matters to your kitchen (high-cost items, par levels, weekend spikes, event catering). If you want the email to be shorter or more operational, adjust the “Compose Forecast Email” agent prompt to change the tone and the format. Many teams also tweak the “Normalize AI Result” step so the output columns match their exact sheet headings. And if you track weather or local events elsewhere, you can bring that in before forecasting using an HTTP Request node and pass it into the AI prompt.

Why is my Gmail connection failing in this workflow?

Usually it’s an expired Google authorization or the wrong Gmail account connected in n8n. Reconnect the Gmail credential, confirm the sending address, then re-run a test execution to see if it’s a permissions or quota issue.

What’s the capacity of this Sheets Gmail forecasts solution?

For one location sending one daily forecast email, capacity is basically a non-issue.

Is this Sheets Gmail forecasts automation better than using Zapier or Make?

Often, yes, because this workflow benefits from multi-step data shaping, structured parsing, and two separate AI “drafting” moments (forecast generation, then email composition). n8n handles branching and custom code steps without turning it into a pricing puzzle, and self-hosting gives you breathing room when you add locations. Zapier or Make can work if you only want a simple “new row → send email” automation, but forecasting is rarely that clean. If your Sheets are messy or you want better control over prompts and formatting, n8n is a safer bet. Talk to an automation expert if you want a quick recommendation based on your setup.

Once this is running, forecasting becomes a daily habit without the daily hassle. The workflow handles the repetitive checking and summarizing so you can spend your time on decisions, not copy-paste.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal