Extract & store receipt data with GPT-4, OCR, Google Sheets & Notion via Telegram Bot
Needs changesWhat this workflow does
This AI workflow has 14 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI, Google Sheets and Google Drive and 1 more. It also calls api.ocr.space over HTTP.
How it runs
Trigger: On Telegram events (message).
- Message Type Router (Switch): routes items into 2 branches
- Download Telegram Image (Telegram): work with file
- Handle Text Message (Function): runs custom JavaScript (legacy Function node)
- OCR Receipt Processing (HTTP Request): calls api.ocr.space (POST)
- AI Purchase Data Extractor (OpenAI): uses OpenAI
- Transaction Data Validator (Function): runs custom JavaScript (legacy Function node)
- Check for Errors (Switch): routes items into 1 branches
- Send Error Message (Telegram): uses Telegram
- Save to Notion Database (Notion): work with database page
- Send to Website API (HTTP Request): calls an HTTP API (POST)
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.ocr.space
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Handle Text Message, Transaction Data Validator: replace with Code node, mode 'Run Once for All Items'.
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Handle Text Message, Transaction Data Validator | Code node, mode 'Run Once for All Items' |
Nodes used (9)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Function
n8n-nodes-base.function - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets - Google Drive
n8n-nodes-base.googleDrive - Notion
n8n-nodes-base.notion
From the author
Overview Transform your receipt management with this comprehensive n8n workflow that automatically processes receipts through Telegram, extracts transaction data using AI, and stores it across multiple platforms for seamless expense tracking. Key Features -…