OCR + AI + Duplicate Protection (n8n Workflow)
This workflow automatically converts receipt images or payment proof sent via Telegram into structured financial records stored in Excel 365.
Core flow:
Take Photo → OCR → AI Structuring → Validation → Duplicate Check → Append to Excel
The system is designed to reduce manual data entry errors and improve financial visibility by turning unstructured receipt images into reliable financial records.
⸻
This workflow captures receipt images sent to a Telegram bot and converts them into structured financial records in Excel.
When a user sends an image, the workflow downloads the file and extracts the text using OCR. The extracted text is then analyzed by an AI model (OpenAI or Gemini) to identify key transaction details such as date, amount, merchant, and transaction type.
The workflow validates the extracted data and generates a unique duplicate key. It then checks Excel to ensure the transaction has not already been recorded. If no duplicate is found, the transaction is appended to the Excel sheet.
The user receives a confirmation message in Telegram indicating whether the transaction was successfully recorded or rejected due to missing data or duplication.
The workflow contains the following nodes:
This workflow automatically:
• Reduce financial recording errors
• Eliminate repetitive manual data entry
• Improve cashflow visibility
• Simple photo-based financial recording
• Scalable foundation for AI-powered financial automation
This workflow is useful for:
• Small business owners
• Online sellers
• Freelancers
• Finance administrators
• Personal expense tracking
• Duplicate detection is based on a composite transaction key
• OCR accuracy depends on image quality
• AI parsing improves recognition compared to OCR-only approaches
To run this workflow you need:
• n8n (Cloud or Self-Hosted)
• Telegram Bot Token
• Microsoft Excel 365 Account
• OpenAI API Key or Google Gemini API Key
• Tesseract OCR (for self-hosted installations)
After setup, users can simply send receipt photos to Telegram and the workflow will automatically convert them into structured financial records stored in Excel.
No manual bookkeeping required.
Built for automation lovers, small businesses, and teams who want simple but powerful financial tracking using n8n.```language