Templates / Optimize restaurant menu margins with Google Drive, Sheets and GPT-4o

Optimize restaurant menu margins with Google Drive, Sheets and GPT-4o

Ready for 3.0

by Rahul Joshi ✓ · 8 views · created 2026-09-24 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects Google Drive, OpenAI, Google Sheets and Gmail.

How it runs

Trigger: On Google Drive events (file created) (plus 1 other trigger).

  1. Download Invoice File (Google Drive): download
  2. Read POS Sales (Google Sheets): uses Google Sheets
  3. OCR Invoice with GPT-4o (OpenAI): analyze (image)
  4. Read Recipe Costing (Google Sheets): uses Google Sheets
  5. Parse Invoice Lines (Code): runs custom JavaScript code
  6. Read Ingredient Prices (Google Sheets): uses Google Sheets
  7. Log Ingredient Prices (Google Sheets): append
  8. Calculate Dish Margins (Code): runs custom JavaScript code
  9. Split Flagged Dishes (Split Out): splits a list into separate items
  10. Write Pricing Recommendations (OpenAI): uses OpenAI

…plus 2 more steps. See the full node list below.

Services it uses

Google DriveOpenAIGoogle SheetsGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow ingests supplier invoice images from Google Drive, uses OpenAI GPT-4o to extract normalized ingredient unit prices into Google Sheets, then runs a weekly margin check by combining ingredient price history, recipe costing, and POS…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.