The flow
Starts it 1Model 3Logic 8Service 13
The steps in the order they run, from what starts it.
- 1Build Receipt SchemaOutput Parser StructuredModel
- 2When Telegram Message ReceivedTelegram triggerStarts it
- 3Google Gemini Vision ModelLm Chat Google GeminiModel
- 4AI Receipt Vision ChainChain LlmModel
- 5Normalize Message FieldsSetLogic
- 6Prepare Extracted FieldsSetLogic
- 7Send Extraction Failure NoticeTelegramService
- 8Route by Message TypeSwitchLogic
- 9Check Existing Expenses in SheetsGoogle SheetsService
- 10Read All Expenses from SheetsGoogle SheetsService
- 11Download Receipt FileTelegramService
- 12Ask for Receipt PromptTelegramService
- 13If Receipt Already ProcessedIfLogic
- 14Filter Current Month ExpensesFilterLogic
- 15Upload Receipt to Google DriveGoogle DriveService
- 16Send Duplicate Receipt NoticeTelegramService
- 17If Receipt Needs ReviewIfLogic
- 18Summarize by CategorySummarizeService
- 19Ask Admin for Review ApprovalTelegramService
- 20Append Expense to SheetsGoogle SheetsService
- 21Aggregate Category TotalsAggregateLogic
- 22If Review ApprovedIfLogic
- 23Send Expense Summary via TelegramTelegramService
- 24Send Monthly Totals via TelegramTelegramService
- 25Send Discarded Receipt NoticeTelegramService