Automate receipt and invoice data entry using AI OCR. This n8n workflow supports Google Drive, Gmail, and Telegram triggers, converting document images into structured data saved directly to Google Sheets.
Download this n8n workflow template and start using it instantly.
Manual entry of expense reports and invoice data is tedious and error-prone. This robust n8n workflow solves this by providing a unified, automated pipeline for capturing receipt images or files from three different sources: Google Drive uploads, Gmail attachments, or images sent via Telegram. Once triggered, the n8n automation processes the binary file, uses a specialized AI (via the HTTP Request n8n node, configured for Gemini) for Optical Character Recognition (OCR), extracts key fields like date, vendor, and amount, and then cleanly inserts this structured data into a Google Sheet. This powerful n8n template demonstrates advanced file handling, conditional logic, and external API integration, making it a highly valuable asset for any user running n8n.
This comprehensive n8n workflow begins with one of three potential n8n trigger nodes, ensuring flexible input for expense documents.
Google Drive Trigger New Files: An n8n trigger that starts the workflow when a new file is uploaded to a monitored Google Drive folder.
Gmail Trigger: An n8n trigger designed to start the workflow upon receiving emails matching specified criteria (e.g., subject line or sender) and handles attachments.
Telegram Trigger Image: An n8n trigger that captures images sent via a Telegram bot, enabling mobile expense capture.
Google Drive Save Files / Google Save Files 2: These Google Drive n8n nodes save the attachments/images received from Gmail and Telegram into Google Drive, preparing them for the central processing path.
Move file to base64 string: A core n8n node essential for converting the binary file received from Drive into a base64 encoded string, which is necessary for multi-modal API submission.
Gemini API (HTTP Request): This powerful n8n node handles the communication with the external AI service. It submits the base64 encoded image and the necessary prompt for OCR and structured data extraction.
Parse string (Code): A Code n8n node used to perform final transformation and ensure the extracted data (which often arrives as a stringified JSON object from the AI) is correctly parsed into a proper JSON object for subsequent steps in the n8n workflow.
Add to Google Sheets: The final action n8n node which appends the successfully extracted and structured data as a new row in the designated Google Sheet.
Use this n8n workflow to automatically set a contextually relevant emoji icon and a random cover image for every new Notion page, leveraging AI and custom n8n code.

Use this powerful n8n workflow to automatically search for German apartments on ImmobilienScout24, generate personalized applications, attach required documents from Google Drive, and log activity to Google Sheets.

Use this powerful n8n workflow to automatically rename cryptic nodes to descriptive, clear names using AI. Improve readability of your n8n templates instantly and manage complex n8n workflows faster.

Use this powerful n8n workflow to automatically transcribe meeting audio uploaded to Google Drive using OpenAI Whisper, summarize key points with GPT-4, and log actionable insights into Google Sheets. Accelerate productivity with this ready-to-use n8n template.

Use this specialized n8n workflow to automate security incident response. It triggers on high-severity Wazuh alerts, uses GPT-4 for analysis, executes ClamAV scans via SSH, and sends Telegram notifications.

A Growth Hacker, Digital Marketer & AI Automation Builder with 10+ years of experience in Digital Marketing & Workflow Automation. Based in Helsinki, Finland. For questions about my templates and customization, contact me at: [email protected]







































