Agni Miftah. Open to work
← Back to the index

Project documentation — Index 03

Caku Automation

AI-enhanced personal finance automation: send a receipt photo to a Telegram bot, get structured data filed into Google Sheets — no app, no manual entry.

Year
2026
Type
Workflow automation
Interface
Telegram bot
Hosting
Docker + ngrok tunnel
Stack
n8n · Telegram Bot API · Google Gemini · Google Sheets
Links
This page is the reference documentation
Caku Automation — n8n workflow mockup

Overview

Caku Automation is the companion to Caku Finance — same problem (receipts are annoying), different shape. Instead of a mobile app, it is a pipeline: an n8n workflow orchestrates a Telegram bot, Google Gemini OCR, and Google Sheets into one automated bookkeeping loop.

The flow is short by design. You send a receipt photo to the bot. n8n receives the file, encodes it, asks Gemini to extract the structured data, and writes the result to a spreadsheet — then the bot confirms back to you with what was saved. The whole workflow is self-hosted in Docker with an ngrok tunnel for webhook access.

What it does

Telegram bot integration

Interactive bot for receiving commands and receipt uploads directly from users.

Receipt image processing

File upload handling with Base64 encoding feeding the OCR pipeline.

AI-powered OCR

Google Gemini extracts structured data from receipt images automatically.

Google Sheets integration

Parsed expenses written and synchronized to a cloud spreadsheet.

Error handling

Telegram notifications for workflow errors and status updates — failures are never silent.

Manual input support

Text-based expense entry for receipts that cannot be photographed.

The workflow, end to end

Photo → Telegram → n8n webhook → Gemini OCR prompt → parsed JSON → Google Sheets row → confirmation message back in Telegram. If any node fails, the error branch sends a notification instead of dropping the receipt on the floor.

Workflow screenshots

n8n workflow overview
n8n workflow dashboard
n8n workflow editor
n8n workflow editor
ngrok tunnel setup
ngrok tunnel setup
Telegram receipt upload
Telegram — receipt upload
Telegram success message
Telegram — data saved
Google Sheets sync
Google Sheets — synced rows

Key learnings

  • n8n workflow orchestration and node configuration
  • Telegram Bot API integration for user interaction
  • Docker containerization for self-hosted automation
  • ngrok tunneling for webhook accessibility
  • AI prompt engineering for receipt data extraction
  • Cloud integration via the Google Sheets API
  • Error handling and notification systems

Questions about this build?

Get in touch →