Track weekly restaurant prime cost and food cost variance with an AI agent
Last updated
How can an AI agent track restaurant food cost and prime cost each week?
Give it the weekly POS sales export, payroll hours and supplier invoices plus your inventory counts. It computes food, labor and prime cost against your targets, ranks the biggest dollar gaps, flags quiet supplier price rises and recipes to re-cost, and asks for a recount when a count looks wrong. The manager decides every action.
- Set your own cost targets and a fixed weekly count day.
- Collect the POS export, payroll export and every supplier invoice in one place.
- Have the agent extract invoice lines and track a price history.
- Compute cost of goods sold, labor and prime cost against target.
- Rank the top dollar gaps and flag price rises, recipes and odd counts.
- The owner or GM reviews the one-page summary and decides actions.
Copy this prompt
Paste this into a general agent such as ChatGPT agent or Claude, then add your own inputs.
Help me run this UseCaseProof playbook: Track weekly restaurant prime cost and food cost variance with an AI agent. The problem: Most independent restaurants learn their food and labor costs weeks late, from the bookkeeper's monthly statements, when it is too late to fix anything. The numbers already exist every week in three places that do not talk to each other: the POS sales export, payroll or scheduling hours, and a pile of supplier invoices. Supplier prices creep up a few cents at a time, recipes are costed once and never again, counts are rushed, and nobody has the evening free to put it all in one sheet and work out where the money went. How the agent should work: Once a week the agent collects the POS sales summary, the payroll or timeclock export, the supplier invoices for the week and the opening and closing inventory counts. It works out food and beverage cost of goods sold (opening inventory plus purchases minus closing inventory), labor cost including the payroll taxes and benefits you tell it to include, and prime cost (cost of goods sold plus labor), each as a share of sales, next to the targets the owner set. It then ranks the biggest dollar gaps: items where theoretical usage from recipes and sales differs most from actual usage, supplier line items whose unit price rose since the last invoice, and recipes whose plate cost has drifted since they were last costed. When a count looks impossible (negative usage, a jump far from recent weeks), it asks for a recount instead of reporting it. It writes a one-page summary for the manager with the numbers, the top gaps and questions to check. The manager decides every action: menu prices, portions, supplier changes and schedules. Follow these steps: 1. Write down your own targets for food cost, beverage cost, labor and prime cost as a share of sales, and the week your restaurant uses (for example Monday to Sunday) 2. Set up a shared folder or inbox where the weekly POS sales summary, the payroll or timeclock export and every supplier invoice land; forward invoice emails or photograph paper invoices into it 3. Create a sheet with tabs for sales by category, purchases by supplier and item, opening and closing inventory, labor, recipe costs and a price history per supplier item 4. Do a full count of your main inventory items at the same time each week, ideally on the same day the week closes, and record it in the sheet 5. Give the agent standing instructions: extract invoice lines into the purchases tab, update the price history, compute cost of goods sold, labor and prime cost against your targets, and rank the five largest dollar gaps with the evidence for each 6. Tell it to flag, not fix: any supplier item whose unit price rose since the last invoice, recipes whose current plate cost differs from the costed version, and any count that looks wrong, with a request to recount 7. Have it write a one-page weekly summary for the owner or GM: the numbers against target, the top gaps, price rises, recipes to re-cost and questions for the kitchen 8. Review the summary in a weekly cost meeting; decide actions yourself and record them in the sheet so next week's report can show whether they worked 9. Reconcile the agent's purchase totals with your bookkeeper's figures at month end and correct the extraction rules where they differ Human-approval checkpoint: The manager or owner checks the weekly summary before anyone acts on it, decides any menu price, portion, supplier or schedule change, and approves recounts. The agent never changes POS prices, places or cancels orders, edits schedules or payroll, or contacts suppliers. A person confirms any invoice line the agent could not read clearly. Guardrails: Invoice extraction can misread quantities, units (case versus each) or credits, which can make a price rise look real when it is not; keep the invoice image linked to every line and check flagged items against it. Inventory counts drive the whole calculation, so an inconsistent count day or a skipped area gives misleading results; ask for recounts rather than trusting outliers. Theoretical usage is only as good as your recipes and portion specs. Labor numbers include pay data; limit who can see the sheet and use tools your business has approved for payroll data. Do not use the report to blame staff for variance without checking the counts and invoices first. This is a management report, not your accounting record; your bookkeeper's books remain the source of truth. Suggested tools from this playbook (not ranked; check current features and pricing): Your POS reports (for example Toast, Square for Restaurants, Clover or SpotOn) exported weekly, Payroll or scheduling exports (for example 7shifts, Homebase, Gusto or your payroll provider), ChatGPT, Claude or Gemini to read invoices and write the summary, Google Sheets or Excel as the cost workbook, Zapier, Make or n8n to collect files and run the weekly job, Restaurant inventory and costing software (for example MarketMan or MarginEdge) if you want invoice capture built in. Do not send messages, move money, grant access, merge code, or take any irreversible action until I approve. If you need an input I have not provided, ask me instead of guessing.
The problem
Most independent restaurants learn their food and labor costs weeks late, from the bookkeeper's monthly statements, when it is too late to fix anything. The numbers already exist every week in three places that do not talk to each other: the POS sales export, payroll or scheduling hours, and a pile of supplier invoices. Supplier prices creep up a few cents at a time, recipes are costed once and never again, counts are rushed, and nobody has the evening free to put it all in one sheet and work out where the money went.
How the agent works
Once a week the agent collects the POS sales summary, the payroll or timeclock export, the supplier invoices for the week and the opening and closing inventory counts. It works out food and beverage cost of goods sold (opening inventory plus purchases minus closing inventory), labor cost including the payroll taxes and benefits you tell it to include, and prime cost (cost of goods sold plus labor), each as a share of sales, next to the targets the owner set. It then ranks the biggest dollar gaps: items where theoretical usage from recipes and sales differs most from actual usage, supplier line items whose unit price rose since the last invoice, and recipes whose plate cost has drifted since they were last costed. When a count looks impossible (negative usage, a jump far from recent weeks), it asks for a recount instead of reporting it. It writes a one-page summary for the manager with the numbers, the top gaps and questions to check. The manager decides every action: menu prices, portions, supplier changes and schedules.
Setup steps
- Write down your own targets for food cost, beverage cost, labor and prime cost as a share of sales, and the week your restaurant uses (for example Monday to Sunday)
- Set up a shared folder or inbox where the weekly POS sales summary, the payroll or timeclock export and every supplier invoice land; forward invoice emails or photograph paper invoices into it
- Create a sheet with tabs for sales by category, purchases by supplier and item, opening and closing inventory, labor, recipe costs and a price history per supplier item
- Do a full count of your main inventory items at the same time each week, ideally on the same day the week closes, and record it in the sheet
- Give the agent standing instructions: extract invoice lines into the purchases tab, update the price history, compute cost of goods sold, labor and prime cost against your targets, and rank the five largest dollar gaps with the evidence for each
- Tell it to flag, not fix: any supplier item whose unit price rose since the last invoice, recipes whose current plate cost differs from the costed version, and any count that looks wrong, with a request to recount
- Have it write a one-page weekly summary for the owner or GM: the numbers against target, the top gaps, price rises, recipes to re-cost and questions for the kitchen
- Review the summary in a weekly cost meeting; decide actions yourself and record them in the sheet so next week's report can show whether they worked
- Reconcile the agent's purchase totals with your bookkeeper's figures at month end and correct the extraction rules where they differ
Tools that can do this
- Your POS reports (for example Toast, Square for Restaurants, Clover or SpotOn) exported weekly
- Payroll or scheduling exports (for example 7shifts, Homebase, Gusto or your payroll provider)
- ChatGPT, Claude or Gemini to read invoices and write the summary
- Google Sheets or Excel as the cost workbook
- Zapier, Make or n8n to collect files and run the weekly job
- Restaurant inventory and costing software (for example MarketMan or MarginEdge) if you want invoice capture built in
Some tool links may be affiliate links. We only list tools that fit the playbook; recommendations are not sold. Disclosure.
Not ranked. Tools marked Featured pay for a highlighted listing; that never decides which tools we include. Check each vendor's current features and pricing.
Make one of these tools? Feature your tool on every playbook where it is already listed.
Human in the loop
The manager or owner checks the weekly summary before anyone acts on it, decides any menu price, portion, supplier or schedule change, and approves recounts. The agent never changes POS prices, places or cancels orders, edits schedules or payroll, or contacts suppliers. A person confirms any invoice line the agent could not read clearly.
Risks and guardrails
Invoice extraction can misread quantities, units (case versus each) or credits, which can make a price rise look real when it is not; keep the invoice image linked to every line and check flagged items against it. Inventory counts drive the whole calculation, so an inconsistent count day or a skipped area gives misleading results; ask for recounts rather than trusting outliers. Theoretical usage is only as good as your recipes and portion specs. Labor numbers include pay data; limit who can see the sheet and use tools your business has approved for payroll data. Do not use the report to blame staff for variance without checking the counts and invoices first. This is a management report, not your accounting record; your bookkeeper's books remain the source of truth.
ROI notes
Track your own baseline: how many days after the week closes you currently see food and labor cost, and how often supplier price rises are caught before the next order. After, track the same measures plus how many flagged gaps turned out to be real and what you changed. This page does not promise a savings figure; results depend on how consistent your counts, invoices and recipes are.
Quick answers
How can an AI agent track restaurant food cost and prime cost each week?
Give it the weekly POS sales export, payroll hours and supplier invoices plus your inventory counts. It computes food, labor and prime cost against your targets, ranks the biggest dollar gaps, flags quiet supplier price rises and recipes to re-cost, and asks for a recount when a count looks wrong. The manager decides every action. Steps: 1. Set your own cost targets and a fixed weekly count day. 2. Collect the POS export, payroll export and every supplier invoice in one place. 3. Have the agent extract invoice lines and track a price history. 4. Compute cost of goods sold, labor and prime cost against target. 5. Rank the top dollar gaps and flag price rises, recipes and odd counts. 6. The owner or GM reviews the one-page summary and decides actions.
What is prime cost in a restaurant?
Prime cost is your cost of goods sold (food and beverage) plus your total labor cost, usually including payroll taxes and benefits. Owners track it as a share of sales because together these are the largest costs a restaurant controls week to week. Set your own target with your accountant; this page does not suggest one.
How does an AI agent calculate weekly food cost?
It uses the standard formula: opening inventory plus purchases minus closing inventory gives food cost of goods sold, which it divides by food sales from the POS. The agent reads purchases from supplier invoices and sales from the POS export, then compares the result with your target and with last week.
Can the agent change menu prices or place orders?
No. It only reads exports and invoices and writes a summary. The owner, GM or chef decides menu prices, portions, supplier changes and schedules. The agent never edits the POS, payroll or orders, and it does not contact suppliers.
What if the inventory count looks wrong?
The agent flags it and asks for a recount instead of reporting a misleading number. Typical signs are negative usage, a sudden jump far from recent weeks, or an item counted in a different unit than usual.
What's a starter prompt I can paste into ChatGPT agent or Claude?
A playbook-specific starter prompt is in the Copy this prompt section above. It is written from this playbook's steps and human-approval checkpoint, for a general agent such as ChatGPT agent or Claude.
Also useful: draft supplier reorders when stock is low; reconcile inventory counts; match supplier invoices to purchase orders; schedule restaurant staff shifts; monthly bookkeeping review.
Related playbooks
Extract invoice data into your accounting system
Someone retypes vendor invoices from PDFs into accounting software.
Categorize expenses and chase missing receipts
Month-end close stalls on uncategorized transactions and missing receipts.
Reconcile bank transactions with your books
Reconciliation is tedious matching across bank lines, invoices, and payouts.
All AI agent examples, by function · More Finance & Accounting playbooks