The flow
Starts it 2Model 4Logic 10Service 6
The steps in the order they run, from what starts it.
- 1Receipt arrives (Gmail)Gmail triggerStarts it
- 21st of the month, 8amSchedule triggerStarts it
- 3OpenAI model (bring your own key)Lm Chat Open AiModel
- 4Force clean JSON outputOutput Parser StructuredModel
- 5⚙️ Your settingsSetLogic
- 6Extract fields (AI)Chain LlmModel
- 7Receipt or monthly summary?IfLogic
- 8Found an amount and a merchant?IfLogic
- 9Read what is already loggedGoogle SheetsService
- 10Read the full ledgerGoogle SheetsService
- 11Build the ledger rowSetLogic
- 12Tell me a receipt could not be readGmailService
- 13Keep only the new receiptsCodeLogic
- 14Total last month by categoryCodeLogic
- 15Append to the expense ledgerGoogle SheetsService
- 16PDF or photo?SwitchLogic
- 17Email the monthly summaryGmailService
- 18Extract text from PDFExtract From FileService
- 19Transcribe photo with AI visionOpen AiModel
- 20Any text in the PDF?IfLogic
- 21Normalize (photo path)SetLogic
- 22Normalize (PDF path)SetLogic