AutomationFlows β€Ί Email & Gmail β€Ί Track Expenses From Receipt Photos with Telegram & Google Sheets Using Ocr.space

Track Expenses From Receipt Photos with Telegram & Google Sheets Using Ocr.space

ByCandra Reza @candrarezaβœ“ on n8n.io

Hello automation enthusiasts! πŸ‘‹

Manual triggerβ˜…β˜…β˜†β˜†β˜† complexity5 nodesTelegram BotHTTP Request
Email & Gmail Trigger: Manual Nodes: 5 Complexity: β˜…β˜…β˜†β˜†β˜† Added:

This workflow corresponds to n8n.io template #6686 β€” we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide β†’

Download .json
{
  "nodes": [
    {
      "name": "Telegram Bot (Webhook)",
      "type": "n8n-nodes-base.telegramBot",
      "position": [
        250,
        200
      ],
      "parameters": {
        "webhookUrl": "=https://api.telegram.org/bot{{$env.YOUR_TELEGRAM_BOT_TOKEN}}/getUpdates",
        "pollInterval": 5,
        "allowedUpdates": [
          "message"
        ],
        "onlyNewUpdates": true
      },
      "typeVersion": 1
    },
    {
      "name": "Check 'Photo'",
      "type": "n8n-nodes-base.if",
      "position": [
        450,
        500
      ],
      "parameters": {
        "conditions": [
          {
            "value1": "={{$json.message.photo}}",
            "value2": "true",
            "operation": "isNotEmpty"
          }
        ]
      },
      "typeVersion": 1
    },
    {
      "name": "Get Telegram Photo",
      "type": "n8n-nodes-base.telegramBot",
      "position": [
        700,
        500
      ],
      "parameters": {
        "chatId": "={{$json.message.chat.id}}",
        "fileId": "={{$json.message.photo[{$json.message.photo.length - 1}].file_id}}",
        "operation": "getFile"
      },
      "typeVersion": 1
    },
    {
      "name": "OCR.space Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        950,
        500
      ],
      "parameters": {
        "url": "https://api.ocr.space/parse/image",
        "method": "POST",
        "options": {
          "query": [
            {
              "name": "apikey",
              "value": "={{$env.YOUR_OCR_SPACE_API_KEY}}"
            },
            {
              "name": "language",
              "value": "eng"
            },
            {
              "name": "isOverlayRequired",
              "value": "true"
            }
          ],
          "bodyParameters": [
            {
              "name": "file",
              "value": "={{$binary.data}}"
            }
          ],
          "bodyContentType": "formData"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Send Raw OCR Text",
      "type": "n8n-nodes-base.telegramBot",
      "position": [
        1200,
        500
      ],
      "parameters": {
        "text": "OCR Text Found:\n\n*{{$json.ParsedResults[0].ParsedText}}*",
        "chatId": "={{$json.message.chat.id}}",
        "parseMode": "HTML"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Check 'Photo'": {
      "output": [
        {
          "node": "Get Telegram Photo",
          "type": "main",
          "index": 0
        }
      ]
    },
    "OCR.space Request": {
      "output": [
        {
          "node": "Send Raw OCR Text",
          "type": "main",
          "index": 0
        }
      ]
    },
    "Get Telegram Photo": {
      "output": [
        {
          "node": "OCR.space Request",
          "type": "main",
          "index": 0
        }
      ]
    },
    "Telegram Bot (Webhook)": {
      "output": [
        {
          "node": "Check 'Photo'",
          "type": "main",
          "index": 0
        }
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Hello automation enthusiasts! πŸ‘‹

Source: https://n8n.io/workflows/6686/ β€” original creator credit. Request a take-down β†’

More Email & Gmail workflows β†’ Β· Browse all categories β†’

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Email & Gmail

Receive orders via webhook with automatic payment verification, stock checking, inventory reservation, shipping label generation, confirmation emails, and Slack notifications.

HTTP Request, Gmail, Slack +1
Email & Gmail

This workflow automates the process of retrieving Stripe invoices, validating API responses, generating payment receipts, sending them via email, storing PDFs in Google Drive, and appending details to

HTTP Request, Gmail, Google Drive +1
Email & Gmail

This workflow automates multi-currency expense tracking via Telegram. Send a receipt photo to your bot, and it automatically extracts the invoice details, converts the amount to EUR using a live excha

Telegram Trigger, HTTP Request, Google Sheets
Email & Gmail

Transform messy receipt photos into a structured, searchable expense database in seconds. This workflow automates the entire journey from a WhatsApp message to a live Google Sheets entry by combining

Google Sheets, HTTP Request, N8N Nodes Wati
Email & Gmail

Automatically sends Telegram notifications with optional screenshots when monitors change status (βœ… UP/πŸ”΄ DOWN/⏸️ PAUSED)

Telegram, Crypto, HTTP Request +2