# Daily report

This template sends a short summary of your latest numbers from a Google Sheet at a time you choose, for example every morning at 9:00. It goes to every place you pick, together: e-mail, Telegram, Slack, Discord, Microsoft Teams, Google Chat. Site page: [Daily report](/templates/daily-report-to-telegram).

## What to say to your AI

> Put a daily report on BitHut using the daily-report-to-telegram template. Every morning at 9:00 it should send yesterday's numbers from my Google Sheet to our team chat.

Your AI asks you where to send the report. It does not pick Telegram or anything else for you.

## What you need

- **Where to send it**: one place or several (see below).
- **The link to the Google Sheet** and which numbers to include.
- **The time to send it**, and your time zone.

## Where it can send

Each place needs its own address. Usually your AI goes through these steps with you. You paste every token and link on the BitHut page your AI gives you, never in the chat.

| Place | What to get |
|---|---|
| E-mail | Nothing. For now the report reaches only the e-mail you sign in to BitHut with. |
| Telegram | A bot token: send `/newbot` to @BotFather. Then add the bot to your chat and write any message there; your AI finds the chat. |
| Slack | A webhook link for the channel: api.slack.com/apps → Create app → Incoming Webhooks → Add New Webhook → pick the channel. |
| Discord | Server Settings → Integrations → Webhooks → New Webhook → pick the channel → Copy Webhook URL. |
| Microsoft Teams | In the channel: … → Workflows → “Send webhook alerts to a channel”, then copy the link. The old Teams “Incoming Webhook” connectors stopped working in May 2026. |
| Google Chat | Only with a Google Workspace account: open the space → Apps & integrations → Add webhooks, then copy the link. |

A webhook is a link a chat gives you so that other services can post messages to it. If one place fails, the others still get the report.

## How it reads the sheet

The template expects one row per day. Row 1 holds the column names, the first column holds the date. Each run reads the last row and the one before it, and sends every number column with its change since the day before. If your sheet looks different, for example several rows per day, your AI changes the script to fit.

For Google access you have two options. Connect Google in the BitHut cabinet, and the sheet stays private. Or share the sheet as “Anyone with the link: Viewer”; then anyone with the link can read it.

## What BitHut sets up

- A scheduled script: it starts at the set time, sends the report and stops. Your AI turns your time into the schedule BitHut uses (UTC).
- A safe place for the tokens, chat links and the sheet link, apart from the code.
- A history of runs, so you see that each report went out.

The deploy runs the report once as a trial, so a test message arrives right away. Check it in every place you chose.

## How to change it

Tell your AI what to change: another time, other columns, a title for the message, another place to send it. It updates the script, the schedule or the secrets and deploys a new version.

## Limits

- E-mail reaches only the address you sign in to BitHut with, for now.
- Google Chat needs a Google Workspace account.
- Reads one Google Sheet. Other sources need changes your AI can make.
- If the sheet is empty or cannot be reached, the report says so instead of sending zeros.
