Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Files & Cloud Storage

Files & Cloud Storage

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

When something happens in a connected app, it manages files with OpenAI / ChatGPT using Gmail, Google Drive, Google Sheets.

What it does

## 🍽️ Menu Profit Engineering – Invoice OCR + POS Margins ### How it works Drop a photo or scan of a supplier invoice into a Google Drive folder. GPT-4o reads it, converts each line to a price per kg, litre or unit, and adds it to an Ingredient Prices sheet, so you build a price history without typing anything. Every Monday the workflow joins that history with your recipe costing and last week's POS sales. For each dish it compares today's plate cost with the cost 30 days ago. Dishes whose margin fell by 2+ points are flagged with the ingredient that caused it, the weekly profit leak, and a suggested new price (capped at +10%). You get one email ranked by money lost, and every flag is logged. ### Setup steps 1. Connect Google Drive, Google Sheets, OpenAI and Gmail. 2. Create one spreadsheet with four tabs: - Ingredient Prices: invoice_date, supplier, invoice_number, item_on_invoice, ingredient, unit, unit_price, source_file - Recipe Costing: dish, menu_price, ingredient, quantity, unit (one row per ingredient) - POS Sales: date, dish, quantity_sold, revenue (daily export from your POS) - Margin Alerts: see the Alerts section note 3. Choose the invoice folder in the trigger and the matching tab in each Sheets node. 4. Tune thresholds and price rounding at the top of Calculate Dish Margins. 5. Set the owner's email and activate.

The steps

  1. New Invoice in Drive
  2. Download Invoice File
  3. OCR Invoice with GPT-4o
  4. Parse Invoice Lines
  5. Log Ingredient Prices
  6. Every Monday 8 AM
  7. Read POS Sales
  8. Read Recipe Costing
  9. Read Ingredient Prices
  10. Calculate Dish Margins
  11. Split Flagged Dishes
  12. Log Margin Alerts
  13. Write Pricing Recommendations
  14. Email Report to Owner

Similar automations