Library / Documents, PDF & OCR
Documents, PDF & OCR
Log receipt expenses in Notion with Gmail, Telegram, and OpenAI
When another workflow fails, it reads and extracts data from documents with OpenAI / ChatGPT using Airtable, Gmail, Google Sheets, Notion.
What it does
## 🧾 Receipt Scanner – Auto-Extract & Track Expenses ### How it works Two triggers feed the same pipeline. Email: Gmail fires on receipt emails — attachments are extracted, PDFs go through text extraction, images straight to GPT-4o-mini vision. Telegram: send a photo of a receipt to your bot and it downloads and processes it the same way. GPT-4o-mini extracts structured data (vendor, amount, tax, category, date). Fields are validated and normalised. High-value receipts (>100) are flagged to a Slack channel for review. Every expense is logged to Google Sheets AND Airtable for finance tracking, then written to your Notion Expenses database. A formatted Telegram confirmation closes the loop. ### Setup steps 1. Connect Gmail OAuth2 to Gmail Trigger Receipts. 2. Connect Telegram Bot API to Telegram Trigger, Telegram Get Photo File, Send Telegram Confirmation. 3. Connect OpenAI API to both AI Extract nodes. 4. Connect Notion API → REPLACE_WITH_YOUR_NOTION_EXPENSES_DATABASE_ID. 5. Connect Google Sheets OAuth2 → YOUR_GOOGLE_SHEET_ID (create Expense Log tab). 6. Connect Slack OAuth2 → YOUR_SLACK_CHANNEL_ID. 7. Connect Airtable PAT → YOUR_AIRTABLE_BASE_ID + YOUR_AIRTABLE_TABLE_ID. 8. Activate both triggers.
The steps
- On Workflow Error
- Slack — Send Workflow Error Alert
- Telegram — Send Workflow Error Alert
- Validate & Normalise Fields
- Is High-Value Expense? (>100)
- Slack – Flag High-Value for Review
- Sheets – Append to Monthly Expense Log
- Airtable – Log to Finance Tracker
- Wait 1s – Before Notion Create
- Build Confirmation Summary
- Send Telegram Confirmation1
- Create Expense Page1
- Parse Receipt JSON1
- Extract PDF Text1
24 steps in total.
Similar automations
Finance, Invoices & AccountingExtract receipt data from Telegram photos into Google Sheets with OpenAI4 stepsFiles & Cloud StorageCapture LINE receipt expenses with Gemini, Google Drive and Google Sheets17 stepsFinance, Invoices & AccountingExtract Emailed Receipt Expenses into Sheets with Mindee16 stepsFinance, Invoices & AccountingLog Telegram receipt photos to Google Sheets with Gemini expense extraction28 steps