Automate water bill calculations with Telegram, Gemini AI, and Google Sheets
Ready for 3.0What 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).
- Redirect Message Types (Switch): routes items into 1 branches
- Get a file (Telegram): work with file
- Image Explainer (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Get row(s) in sheet (Google Sheets): uses Google Sheets
- Find Latest Row (Code): runs custom JavaScript code
- Calculate Bill (Code): runs custom JavaScript code
- Prepare Data for Sheet (Edit Fields (Set)): sets 13 fields: Volume Sebelumnya, Volume Saat ini, Nama…
- Append row in sheet (Google Sheets): append
- Format Bill Message (Code): runs custom JavaScript code
- Send Bill to Telegram (Telegram): uses Telegram
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other Telegram + Google Sheets templates (674) · Other Telegram + Google Gemini templates (354)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set
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…