# Smart kitchen & inventory assistant with OpenAI: n8n workflow

> Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/smart-kitchen-and-inventory-assistant-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Smart kitchen & inventory assistant with OpenAI

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to OpenAI. 43 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsmart-kitchen-and-inventory-assistant-with-openai)

**43 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 4 Model 6 Logic 21 Service 12

The steps in the order they run, from what starts it.

- 1 **Tool: Ingredient Query** Google Sheets Tool *Service*
- 2 **Trigger: Stock Update** Google Sheets trigger *Starts it*
- 3 **Schedule: Update Avg Usage** Schedule trigger *Starts it*
- 4 **Schedule: Daily Summary** Schedule trigger *Starts it*
- 5 **Trigger: Telegram Chat** Telegram trigger *Starts it*
- 6 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 7 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 8 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 9 **AI Stock Assistant** Agent *Model*
- 10 **Convert Excel Date** Code *Logic*
- 11 **Fetch Transactions (out/adjust)** Google Sheets *Service*
- 12 **Fetch Daily Stock** Google Sheets *Service*
- 13 **Fetch Daily Ledger** Google Sheets *Service*
- 14 **Chat Action** Telegram *Service*
- 15 **AI Weekly Purchase Forecast** Chain Llm *Model*
- 16 **AI Supplier Recommendation** Chain Llm *Model*
- 17 **Send Telegram Message** Telegram *Service*
- 18 **Filter Low Stock / Expired Items** Filter *Logic*
- 19 **Filter Last 7 Days Transactions** Filter *Logic*
- 20 **Check Stock Status (Enough/Low/Empty)** Code *Logic*
- 21 **Filter3** Filter *Logic*
- 22 **Format Purchase Suggestion** Code *Logic*
- 23 **Format Supplier Recommendation Output** Code *Logic*
- 24 **Mark Item Condition** Set *Logic*
- 25 **Calculate Avg Qty per Ingredient** Code *Logic*
- 26 **Summarize Daily Transactions** Summarize *Service*
- 27 **Send PO & Await Confirmation** Telegram *Service*
- 28 **Generate Stock & Expiry Alerts** Code *Logic*
- 29 **Filter Empty Supplier Request** Filter *Logic*
- 30 **Update Avg Usage** Google Sheets *Service*
- 31 **Remove Duplicate Ingredients** Remove Duplicates *Logic*
- 32 **Merge Ingredient + Ledger Data** Merge *Logic*
- 33 **Set Output: PO Created** Set *Logic*
- 34 **Fetch Supplier Prices** Google Sheets *Service*
- 35 **Merge Ingredient + Price Data** Merge *Logic*
- 36 **Fetch Ingredient Details** Google Sheets *Service*
- 37 **Aggregate Ledger Data** Aggregate *Logic*
- 38 **Remove Duplicate Suppliers** Remove Duplicates *Logic*
- 39 **Merge Supplier + Ingredient Data** Merge *Logic*
- 40 **Group Ledger by Type** Code *Logic*
- 41 **Fetch Supplier Info** Google Sheets *Service*
- 42 **Aggregate Supplier Data** Aggregate *Logic*
- 43 **Format Daily Report** Code *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 43
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 43 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 43 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsmart-kitchen-and-inventory-assistant-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**AI advanced automation agent with Azure OpenAI and Gmail** 45 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/ai-advanced-automation-agent-with-azure-openai-and-gmail)
- [**Attendance system with OpenAI and Google Sheets** 41 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/attendance-system-with-openai-and-google-sheets)
- [**Generate consensus-based answers with Claude and OpenAI** 41 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/generate-consensus-based-answers-with-claude-and-openai)
- [**Forex AI trading assistant for Telegram with Position Sizing** 40 steps · calls a model · Telegram](https://millionrounds.com/workflow/forex-ai-trading-assistant-for-telegram-with-position-sizing)
- [**Telegram bot for crypto exchange trading with OKX** 46 steps · calls a model · Telegram](https://millionrounds.com/workflow/telegram-bot-for-crypto-exchange-trading-with-okx)
- [**Automate YouTube Shorts creation from Telegram prompts** 39 steps · calls a model · Google Drive, Telegram](https://millionrounds.com/workflow/automate-youtube-shorts-creation-from-telegram-prompts)
