Перейти к содержанию
НОВОЕПознакомьтесь с Alaaddin — вашим ИИ-джинном с голосом. trig8n запускается 1 января 2027. Что нового

Библиотека / Документы, PDF и OCR

Документы, 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.

Что делает

## 🧾 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.

Шаги

  1. On Workflow Error
  2. Slack — Send Workflow Error Alert
  3. Telegram — Send Workflow Error Alert
  4. Validate & Normalise Fields
  5. Is High-Value Expense? (>100)
  6. Slack – Flag High-Value for Review
  7. Sheets – Append to Monthly Expense Log
  8. Airtable – Log to Finance Tracker
  9. Wait 1s – Before Notion Create
  10. Build Confirmation Summary
  11. Send Telegram Confirmation1
  12. Create Expense Page1
  13. Parse Receipt JSON1
  14. Extract PDF Text1

Всего шагов: 24.

Похожие автоматизации