Templates / Extract & store receipt data with GPT-4, OCR, Google Sheets & Notion via Telegram Bot

Extract & store receipt data with GPT-4, OCR, Google Sheets & Notion via Telegram Bot

Needs changes

by Tegar karunia ilham ✓ · 1,821 views · created 2025-09-05 · Document Extraction, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Message Type Router (Switch): routes items into 2 branches
  2. Download Telegram Image (Telegram): work with file
  3. Handle Text Message (Function): runs custom JavaScript (legacy Function node)
  4. OCR Receipt Processing (HTTP Request): calls api.ocr.space (POST)
  5. AI Purchase Data Extractor (OpenAI): uses OpenAI
  6. Transaction Data Validator (Function): runs custom JavaScript (legacy Function node)
  7. Check for Errors (Switch): routes items into 1 branches
  8. Send Error Message (Telegram): uses Telegram
  9. Save to Notion Database (Notion): work with database page
  10. Send to Website API (HTTP Request): calls an HTTP API (POST)

…plus 3 more steps. See the full node list below.

Services it uses

TelegramOpenAIGoogle SheetsGoogle DriveNotion

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.0Replace with
Function (legacy)
Handle Text Message, Transaction Data Validator
Code node, mode 'Run Once for All Items'

Nodes used (9)

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 -…

Excerpt from Tegar karunia ilham's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.