Use this powerful n8n workflow to automate weekly restaurant sales and raw material inventory forecasting. It leverages Google Sheets data and the advanced capabilities of the Gemini AI n8n node for accurate predictions.
Download this n8n workflow template and start using it instantly.
Manual forecasting is time-consuming and often inaccurate, leading to high levels of food waste or stock shortages in the restaurant industry. This sophisticated n8n workflow solves this by providing a hands-free, AI-driven prediction system. It is designed as a reusable n8n template that reads historical sales and usage data from Google Sheets, sends this complex dataset to a specialized Gemini AI agent for analysis and prediction, and then logs the resultant forecast back into a Google Sheet while alerting key stakeholders via email.
By leveraging the Google Gemini n8n node, this n8n workflow delivers high accuracy in predicting both future dish sales and the exact required quantities of raw materials, ensuring efficient procurement and minimizing costly human error.
This automation is initiated by a specific n8n trigger, the Schedule Trigger, set to run once per week.
To deploy this comprehensive n8n template, follow these steps:
sendTo parameter to the email address of the recipient stakeholder (e.g., your restaurant manager). Trigger Weekly Forecast (Schedule Trigger): This n8n trigger is responsible for initiating the entire automation on a weekly basis, ensuring forecasts are generated consistently for the subsequent week.
Load Historical Sales Data (Google Sheets n8n node): Connects to Google Sheets using a Service Account to fetch raw, historical sales data and material usage required for the AI model.
Format Input for AI Agent (Code n8n node): Executes custom JavaScript to transform the list of rows from Google Sheets into a single JSON object. This structure is critical for efficient processing by the Gemini AI n8n node.
Generate Forecast with AI (Langchain AI Agent n8n node): The core intelligence. It uses the input data and a highly detailed system message to instruct the Gemini 2.5 Pro model to analyze trends and generate a structured JSON forecast, including sales predictions and necessary raw material quantities.
Interpret AI Forecast Output (Code n8n node): Custom code dedicated to cleaning the AI's response, specifically removing common markdown wrappers (like ```json) to extract a clean, parseable JSON object suitable for database logging.
Log Forecast to Google Sheets (Google Sheets n8n node): Appends the clean, AI-generated forecast data to a separate 'prediction data' tab, updating the master record.
Automate 24/7 restaurant reservations using an advanced n8n workflow AI agent on WhatsApp. Handles booking, discount calculation, and manages confirmations in Google Sheets.

Automate restaurant orders using an n8n workflow. Log data to Google Sheets, utilize the Gemini n8n node for personalized dish suggestions, and send instant recommendations via Telegram. Find powerful n8n templates here.

Leverage this powerful n8n workflow to automate restaurant outreach. Integrate Google Sheets leads with VAPI AI voice calls, log detailed responses, and automatically schedule table bookings in Google Calendar. A must-have n8n template for hospitality automation.

Use this powerful n8n workflow to automate resume screening via JotForm, leveraging Azure OCR for PDF text extraction and GPT-4.1 for deep analysis, scoring, and candidate feedback, integrating seamlessly with Zoho CRM.

Automate HR candidate screening using a powerful n8n workflow. Extract PDF resumes, use Google Gemini AI agents for objective scoring, log data to Google Sheets, and send automated emails.

Use this powerful n8n workflow to automate candidate screening. It triggers on Gmail resumes, matches jobs from Airtable, uses Gemini AI for scoring, and logs results in Google Sheets. Install this n8n template today.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































