# Invoice reminders to Telegram

> For AI assistants: this is the BitHut template `invoice-reminders` (scripts on a schedule). Ask the person only for what is listed under "What you'll need", then set it up with the BitHut tools connected to you. If BitHut is not connected yet, start at https://bithut.app/llms.txt.

Every morning it checks your sheet of invoices and tells you in Telegram what is overdue and what is due soon.

## Tell your AI

1. Connect BitHut to your AI (Claude, ChatGPT or Codex): add the address `https://api.bithut.app/mcp`. How: https://bithut.app/connect.md
2. Then tell it:

```
Put invoice reminders on BitHut. Every morning at 9:00 read my Google Sheet of invoices and send me a Telegram message with overdue and due-soon ones. Ask me for the sheet, the columns and the chat. I'll paste the bot token on the BitHut page you give me, not here.
```

## What you get

One message in your chat each morning: overdue invoices and invoices due in the next few days, with amounts and clients.

## Who it's for

Freelancers, small business owners and bookkeepers who keep invoices in a spreadsheet and forget to chase payments.

## What you'll need

- A link to the Google Sheet with your invoices, shared so the script can read it.
- Which columns hold the client, the amount, the due date and whether it is paid.
- A Telegram bot token from @BotFather and the chat for the reminders.
- How many days before the due date to remind you, and at what time.

## What's included

- **A schedule in plain words.** Like “every weekday at 9:00”. No code, no terminal.
- **A safe place for the bot token.** Kept apart from the code.
- **A history of runs.** See that each morning's reminder went out.
- **Clear error messages.** With a ready task to hand to your AI.

## Your data and privacy

Reminders go only to the chat you choose. The bot token and the sheet link are stored as secrets. The script reads the sheet and does not change it.

## Limits

- Reminds you, not your clients. Writing to clients needs changes your AI can make, and you should check each text first.
- Reads one Google Sheet. Invoices from accounting software need changes your AI can make.
- Trusts the sheet: if a payment is not marked as paid there, it is still reported as overdue.

## After you start it

1. Your AI sends a test reminder right away, so you see what it looks like.
2. From the next morning, the reminder arrives on its own at the time you set.
3. Each run appears in the project's history on BitHut.

## Questions

### What if nothing is overdue?

You choose: a short “all paid” message, or no message at all.

### Can it remind the whole team?

Yes. Add the bot to a group chat and give your AI that chat.

### Do I need to keep my computer on?

No. The script runs on BitHut, so the reminder arrives even when your laptop is closed.

## Technical details

- Language: Python
- Parts: Scheduled job, Disk for the run history

## Similar templates

- [Daily report](https://bithut.app/templates/daily-report-to-telegram.md): Every morning it takes yesterday's numbers and sends a short summary to your team chat, your e-mail or both.
- [Telegram bot](https://bithut.app/templates/telegram-bot.md): A bot in Telegram that does what you ask: answers customers, takes bookings, reminds, looks things up. It stays online even when your laptop is closed.
- [Dashboard from Google Sheets](https://bithut.app/templates/sheets-dashboard.md): A web page with charts from your Google Sheet, behind a password, for your team.
