Telegram bot for meter and shift accounting
Daily accounting of meter readings, shifts, expenses, and reports right inside Telegram: users write to the bot in plain text, AI recognizes the data, and n8n logs everything into Google Sheets.
We needed to remove the manual chaos of record-keeping: inconsistent message formats, date errors, duplicate entries, and difficulty totaling results per shift or period. The client needed a simple Telegram interface, with no separate app.
- Format
- Telegram bot + Google Sheets
- Data source
- meter readings
- Automation
- n8n + AI
- Result
- automatic logging
How the accounting system was built
Built a Telegram bot on n8n.
Added an AI parser that understands the user's message and turns it into structured data.
Connected Google Sheets as the accounting database.
Set up start-of-shift and end-of-shift scenarios.
Set up access filtering: the bot only accepts data from studio staff and admins.
Added access verification so outside users cannot enter or change data.
Implemented updating existing records if the date already exists in the sheet.
Set up different shift types in Google Sheets: shift 1, 2, and 3.
Added a total electricity consumption count per shift.
Implemented splitting electricity consumption across each studio employee.
Added reports, period totals, prompts, and tracking of additional expenses.
How the bot works
The path of a message from Telegram to a finished report.
Message
The user writes a message in Telegram: readings, date, shift type, or a report command.
User check
The bot checks whether the user is studio staff or an admin.
Message type
The bot determines the message type: shift start, shift end, report command, expenses, or another request.
AI parsing
The AI parser extracts the needed fields and forms a clear confirmation.
Confirmation
The user confirms or asks to re-enter the data.
Sheet write
n8n writes or updates a row in Google Sheets.
Shift split
In the sheet, data is split by shift 1, 2, or 3.
Consumption calc
Google Sheets calculates total electricity consumption per shift and splits it across studio employees.
Result
The bot returns the result: successful record, shift summary, report, or a prompt.

- ✓Less manual spreadsheet work.
- ✓Fewer errors in readings and dates.
- ✓Data is collected directly in the right structure.
- ✓Access to entering data is limited to studio staff and admins.
- ✓Google Sheets shows shifts 1, 2, and 3, total consumption per shift, and the electricity split across employees.
- ✓Users don't need to open Google Sheets.
- ✓The owner sees summaries and reports right in Telegram.
A Telegram bot for meter and shift accounting: the user writes data in chat, AI recognizes the content, n8n verifies and logs everything into Google Sheets, and the bot returns summaries and reports.
Meter readings used to be collected and checked manually in chats. Now the flow is clear: the bot reminds people, receives data, and sends it straight to the sheet.
