Automation library · Chat assistants

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.

LargeCalls a model: OpenAI

43 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 4Model 6Logic 21Service 12

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

  1. 1Tool: Ingredient QueryGoogle Sheets ToolService
  2. 2Trigger: Stock UpdateGoogle Sheets triggerStarts it
  3. 3Schedule: Update Avg UsageSchedule triggerStarts it
  4. 4Schedule: Daily SummarySchedule triggerStarts it
  5. 5Trigger: Telegram ChatTelegram triggerStarts it
  6. 6OpenAI Chat ModelLm Chat Open AiModel
  7. 7OpenAI Chat Model1Lm Chat Open AiModel
  8. 8OpenAI Chat Model2Lm Chat Open AiModel
  9. 9AI Stock AssistantAgentModel
  10. 10Convert Excel DateCodeLogic
  11. 11Fetch Transactions (out/adjust)Google SheetsService
  12. 12Fetch Daily StockGoogle SheetsService
  13. 13Fetch Daily LedgerGoogle SheetsService
  14. 14Chat ActionTelegramService
  15. 15AI Weekly Purchase ForecastChain LlmModel
  16. 16AI Supplier RecommendationChain LlmModel
  17. 17Send Telegram MessageTelegramService
  18. 18Filter Low Stock / Expired ItemsFilterLogic
  19. 19Filter Last 7 Days TransactionsFilterLogic
  20. 20Check Stock Status (Enough/Low/Empty)CodeLogic
  21. 21Filter3FilterLogic
  22. 22Format Purchase SuggestionCodeLogic
  23. 23Format Supplier Recommendation OutputCodeLogic
  24. 24Mark Item ConditionSetLogic
  25. 25Calculate Avg Qty per IngredientCodeLogic
  26. 26Summarize Daily TransactionsSummarizeService
  27. 27Send PO & Await ConfirmationTelegramService
  28. 28Generate Stock & Expiry AlertsCodeLogic
  29. 29Filter Empty Supplier RequestFilterLogic
  30. 30Update Avg UsageGoogle SheetsService
  31. 31Remove Duplicate IngredientsRemove DuplicatesLogic
  32. 32Merge Ingredient + Ledger DataMergeLogic
  33. 33Set Output: PO CreatedSetLogic
  34. 34Fetch Supplier PricesGoogle SheetsService
  35. 35Merge Ingredient + Price DataMergeLogic
  36. 36Fetch Ingredient DetailsGoogle SheetsService
  37. 37Aggregate Ledger DataAggregateLogic
  38. 38Remove Duplicate SuppliersRemove DuplicatesLogic
  39. 39Merge Supplier + Ingredient DataMergeLogic
  40. 40Group Ledger by TypeCodeLogic
  41. 41Fetch Supplier InfoGoogle SheetsService
  42. 42Aggregate Supplier DataAggregateLogic
  43. 43Format Daily ReportCodeLogic

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.