AutomationMart
Home/Browse/ Extract Details from Receipts via Telegram with Tesseract and Llama
n8n

Extract Details from Receipts via Telegram with Tesseract and Llama

n8nn8n13 modulesv1.0
Google SheetsTelegramLinkedIn

Tesseract - Money Mate Workflow Description Disclaimer: This template requires the n8n-nodes-tesseractjs community node, which is only available on self-hosted n8n instances. You’ll need a self-hosted n8n setup to use this workflow. Who is this for? This workflow is designed for individuals, freelancers, or small business owners who want an easy way to track expenses using Telegram. It’s ideal for anyone looking to digitize receipts—whether from photos or text messages—using free tools, without

At a glance

Extract Details from Receipts via Telegram with Tesseract and Llama is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, Telegram, LinkedIn. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Sheets, Telegram, LinkedIn
Modules
13
Price
Free
Version
v1.0
 Extract Details from Receipts via Telegram with Tesseract and Llama workflow diagram

About this workflow

Tesseract - Money Mate Workflow Description Disclaimer: This template requires the n8n-nodes-tesseractjs community node, which is only available on self-hosted n8n instances. You’ll need a self-hosted n8n setup to use this workflow. Who is this for? This workflow is designed for individuals, freelancers, or small business owners who want an easy way to track expenses using Telegram. It’s ideal for anyone looking to digitize receipts—whether from photos or text messages—using free tools, without needing advanced technical skills. What problem does this workflow solve? Manually entering receipt details into a spreadsheet or app is time-consuming and prone to mistakes. This workflow automates the process by extracting information from receipt images or text messages sent via Telegram, categorizing expenses, and sending back a clear, formatted summary. It saves time, reduces errors, and makes expense tracking effortless. What this workflow does The workflow listens for messages sent to a Telegram bot, which can be either text descriptions of expenses or photos of receipts. If a photo is sent, Tesseract (an open-source text recognition tool) extracts the text. If text is sent, it’s processed directly. An AI model (LLaMA via OpenRouter) analyzes the input, categorizes it into expense types (e.g., Food & Beverages, Household, Transport), and creates a structured summary including store name, date, items, total, and category. The summary is then sent back to the user’s Telegram chat. Setup Instructions Follow these step-by-step instructions to set up the workflow. No advanced technical knowledge is required, but you’ll need a self-hosted n8n instance. 1. Set Up a Self-Hosted n8n Instance: - If you don’t have n8n installed, follow the n8n self-hosting guide to set it up. You can use platforms like Docker or a cloud provider (e.g., DigitalOcean, AWS). - Ensure your n8n instance is running and accessible via a web browser. 2. Install the Tesseract Community Node: - In your n8n instance, go to Settings > Community Nodes in the sidebar. - Click Install a Community Node, then enter n8n-nodes-tesseractjs in the search bar. - Click Install and wait for confirmation. This node enables receipt image processing. - If you encounter issues, check the n8n community nodes documentation for troubleshooting. 3. Create a Telegram Bot: - Open Telegram and search for @BotFather to start a new bot. - Send /start to BotFather, then /newbot to create your bot. - Follow the prompts to name your bot (e.g., “MoneyMateBot”). - BotFather will provide a Bot Token (e.g., 23872837287:ExampleExampleExample). Copy this token. - In n8n, go to Credentials > Add Credential, select Telegram API, and paste the token. Name the credential (e.g., “MoneyMateBot”) and save. 4. Set Up OpenRouter for AI Processing: - Sign up for a free account at OpenRouter. - In your OpenRouter dashboard, generate an API Key under the API section. - In n8n, go to Credentials > Add Credential, select OpenRouter API, and paste the API key. Name it (e.g., “OpenRouter Account”) and save. - The free tier of OpenRouter’s LLaMA model is sufficient for this workflow. 5. Import and Configure the Workflow: - Download the workflow JSON file (provided separately or copy from the source). - In n8n, go to Workflows > Import Workflow and upload the JSON file. - Open the imported workflow (“Tesseract - Money Mate”). - Ensure the Telegram Trigger and Send Expense Summary nodes use the Telegram credential you created. - Ensure the AI Analyzer node uses the OpenRouter credential. - Save the workflow. 6. Test the Workflow: - Activate the workflow by toggling the Active switch in n8n. - In Telegram, find your bot (e.g., @MoneyMateBot) and send /start. - Test with a sample input (see “Example Inputs” below). - Check the n8n workflow execution panel to ensure data flows correctly. - If errors occur, double-check credentials and node connections. 7. Activate for Continuous Use: - Once tested, keep the workflow active in n8n. - Your bot will now process any text or image sent to it via Telegram. Example Inputs/Formats To help the workflow process your data accurately, use clear and structured inputs. Below are examples of valid inputs: Text Input Example: Send a message to your Telegram bot like this: Expected Output: Image Input Example: Upload a photo of a receipt to your Telegram bot. The receipt should contain: - Store name (e.g., “Alfamart”) - Address (e.g., “Jl. Gatot Subroto, Jakarta”) - Date and time (e.g., “27/05/2025 14:00”) - Items with prices (e.g., “Bread Rp 15,000”, “Milk Rp 20,000”) - Total amount (e.g., “Total: Rp 35,000”) Expected Output: Tips for Images: - Ensure the receipt is well-lit and text is readable. - Avoid blurry or angled photos for better Tesseract accuracy. How to Customize This Workflow - Change Expense Categories: In the AI Categorizer node, edit the prompt to include custom categories (e.g., add “Entertainment” or “Utilities” to the list: Food & Beverages, Household, Transport). - Modify Response Format: In the Format Summary Message node, adjust the JavaScript code to change how the summary looks (e.g., add emojis, reorder fields). - Save to a Database: Add a node (e.g., Google Sheets or PostgreSQL) after the Format Summary Message node to store summaries. - Support Other Languages: In the AI Categorizer node, update the prompt to handle additional languages (e.g., Spanish, Mandarin) by specifying them in the instructions. - Add Error Handling: Enhance the Check Invalid Input node to catch more edge cases, like invalid dates. All Free, End-to-End This workflow is 100% free! It leverages: - Telegram Bot API: Free via BotFather. - Tesseract: Open-source text recognition. - LLaMA via OpenRouter: Free tier available for AI processing. Enjoy automating your expense tracking without any cost! Made by: khmuhtadin Need a custom? contact me on LinkedIn or Web

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Add new rows to Google Sheets for new tasks in Workstack

Every time a new task is created in Workstack, Make will automatically add that task's info to a new row in your Google Sheets. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1mhwKXOEFF1PQh-X1M1j-8M6ENXpHFKMrmXsYzTQL2sQ/edit?usp=sharing).

Free

Shopify abandoned cart Information to Google Sheets

Retrieve abandoned cart data from Shopify and add them to a Google Sheet for further analysis.

Free

Send Telegram messages for new ClickFunnels contacts

Every time a new contact is created in ClickFunnels, Make will automatically send a message in Telegram.

Free

Filter and update Google Sheets rows with Perplexity AI completions

Use this automation to filter Google Sheets rows, generate AI chat completions with Perplexity AI, and update rows for streamlined data management and insights.

Free

Track BotStar human takeover requests on Google Sheets

Track BotStar Human Takeover requests on Google Sheets so you can quickly step in and answer your customer questions.

Free

Create new Google Sheets row for every new Web Data Forms form submission

This template instantly logs every Web Data Forms submission as a new, organized row in your Google Sheets spreadsheet. This template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1VcaXDZGJrYYycl1SNDNYU8j6_OSJ1y1WwfG4ddr2J6s/edit?gid=0#gid=0). Pro Tip: For a perfectly organized sheet, map each form field to its own column. To do this, run a quick test submission first so Make.com can identify your data structure. By mapping specific form answers to separate columns, you

Free

Collect conference feedback with Forms and log to Excel OneDrive with Outlook notifications

Conference Feedback Collection and OneDrive Logging Workflow This n8n workflow is designed to collect feedback through a web form, log the responses into an Excel file stored in Microsoft OneDrive, and notify the support team via email. --- 🧭 Overall Goal To collect user feedback from a web form, structure the data, log it into a OneDrive Excel file, and notify support via Outlook email. --- 🔄 Workflow Breakdown 1. Form Submission (On form submission) - Node Type: formTrigger - Purpose: Captures

Free

AI newsletter builder: Crawl sites with Dumpling AI, summarize with GPT-4o

Who is this for? This workflow is built for newsletter writers, marketers, content creators, or anyone who curates and summarizes web articles. It’s especially helpful for virtual assistants and founders who need to quickly turn web content into digestible, branded newsletters using AI. --- What problem is this workflow solving? Manually reading, summarizing, and formatting multiple articles into a newsletter takes time and focus. This workflow automates the process using Dumpling AI for crawlin

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free