Templates / Automate water bill calculations with Telegram, Gemini AI, and Google Sheets

Automate water bill calculations with Telegram, Gemini AI, and Google Sheets

Ready for 3.0

by Miftah Rahmat · 417 views · created 2025-09-10 · File Management, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Gemini Chat Model and Google Sheets.

How it runs

Trigger: On Telegram events (message).

  1. Redirect Message Types (Switch): routes items into 1 branches
  2. Get a file (Telegram): work with file
  3. Image Explainer (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  4. Get row(s) in sheet (Google Sheets): uses Google Sheets
  5. Find Latest Row (Code): runs custom JavaScript code
  6. Calculate Bill (Code): runs custom JavaScript code
  7. Prepare Data for Sheet (Edit Fields (Set)): sets 13 fields: Volume Sebelumnya, Volume Saat ini, Nama…
  8. Append row in sheet (Google Sheets): append
  9. Format Bill Message (Code): runs custom JavaScript code
  10. Send Bill to Telegram (Telegram): uses Telegram

Services it uses

TelegramGoogle Gemini Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

Automate Water Bill Calculations with Telegram, Gemini AI, and Google Sheets This workflow automates the calculation of monthly water bills. Residents can send a photo of their water meter along with their name via Telegram. The workflow uses Gemini AI to…

Excerpt from Miftah Rahmat's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.