🔬 Restaurant daily insights with Gemini AI - sales, waste & feedback email summary

⚡ 991 views · 🔬 Document Extraction & Analysis

Description

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 sends it as an email draft. Ready to automate your restaurant’s daily insights? Let’s dive in!

What’s the Goal?

By the end, you’ll have a self-running system that delivers daily restaurant insights effortlessly.

Why Does It Matter?

Manual data analysis and reporting are time-consuming and error-prone. Here’s why this workflow is a game-changer:

How It Works

Here’s the step-by-step magic behind the automation:

Step 1: Trigger the Workflow

Step 2: Fetch Daily Sales Data

Step 3: Fetch Daily Food Waste Records

Step 4: Fetch Customer Feedback

Step 5: Normalize Sales Records

Step 6: Normalize Waste Data

Step 7: Normalize Feedback Data

Step 8: AI Sales Insights Generator

Step 9: AI Waste Reduction Insights Generator

Step 10: AI Feedback Summary

Step 11: Format Sales Output

Step 12: Format Waste Output

Step 13: Format Feedback AI Output

Step 14: Merge & Create Email

Step 15: Prepare Email Content

Step 16: Send Daily Report

How to Use the Workflow?

Importing a workflow in n8n is a straightforward process that allows you to use pre-built workflows to save time. Below is a step-by-step guide to importing the Restaurant Daily Insights Automation workflow in n8n.

Steps to Import a Workflow in n8n

  1. Obtain the Workflow JSON

    • Source the Workflow: Workflows are shared as JSON files or code snippets, e.g., from the n8n community, a colleague, or exported from another n8n instance.
    • Format: Ensure you have the workflow in JSON format, either as a file (e.g., workflow.json) or copied text.
  2. Access the n8n Workflow Editor

    • Log in to n8n (via n8n Cloud or self-hosted instance).
    • Navigate to the Workflows tab in the n8n dashboard.
    • Click Add Workflow to create a blank workflow.
  3. Import the Workflow

    • Option 1: Import via JSON Code (Clipboard):
      • Click the three dots (⋯) in the top-right corner to open the menu.
      • Select Import from Clipboard.
      • Paste the JSON code into the text box.
      • Click Import to load the workflow.
    • Option 2: Import via JSON File:
      • Click the three dots (⋯) in the top-right corner.
      • Select Import from File.
      • Choose the .json file from your computer.
      • Click Open to import.

Setup Notes

🔗 Nodes Used

Google Sheets, Gmail, Schedule Trigger, AI Agent, Google Gemini Chat Model, Think Tool

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup