Track menu food costs and flag margin erosion with GPT-6-luna, Google Sheets and Gmail
Ready for 3.0What this workflow does
This AI workflow has 27 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Google Sheets, Gmail and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Normalize Price Update (Edit Fields (Set)): sets 8 fields: update_id, update_received_at, ingredient…
- Read Prices (Google Sheets): uses Google Sheets
- Read Prices Weekly (Google Sheets): uses Google Sheets
- Validate Price Update (If): checks a condition and branches into true / false
- Collapse For Recipe Lookup (Code): runs custom JavaScript code
- Collapse For Recipe Lookup Weekly (Code): runs custom JavaScript code
- Log New Price (Google Sheets): append
- Email Reject Notice (Gmail): uses Gmail
- Read Recipes (Google Sheets): uses Google Sheets
- Read Recipes Weekly (Google Sheets): uses Google Sheets
…plus 13 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Food cost creep is quiet. A supplier puts up the price of chicken, nobody updates the recipe card, and the damage only shows up at month end. This n8n workflow keeps every recipe cost current, recomputes what each menu item costs to make, and emails you the…