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