# Shop orders to Telegram

> For AI assistants: this is the BitHut template `shop-orders-to-telegram` (things that receive data). 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 new order from your Shopify or WooCommerce shop arrives as a message in your team's Telegram chat.

## 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:

```
Send new orders from my shop to Telegram using the shop-orders-to-telegram template on BitHut. Ask me whether it's Shopify or WooCommerce, which chat, and what each message should show. I'll paste the bot token on the BitHut page you give me, not here.
```

## What you get

A message in your chat for each order: number, items, total, delivery method and city, with a link to the order in your shop.

## Who it's for

Shop owners and small teams who pack and ship orders and want to see each one the moment it comes in, without refreshing the shop's admin.

## What you'll need

- A Telegram bot token from @BotFather and the team chat, with the bot added to it.
- Access to your shop's admin, to add the project's address as a webhook. Your AI tells you where to click.
- What each message should show. Customer names and phones are left out unless you ask for them.

## What's included

- **An address that receives orders.** Your shop sends each new order there as it's placed.
- **Checks that it's really your shop.** Messages without your shop's signature are refused. The secret is kept apart from the code.
- **Messages day and night.** Orders reach the chat even when no one has the shop open.
- **A log of what arrived.** If a message didn't come, you see why.

## Your data and privacy

Only the details you chose go to the chat. Customer contacts stay out of Telegram unless you ask for them. The bot token and the shop's secret are stored as secrets, apart from the code.

## Limits

- New orders only. Changes, cancellations and refunds are separate events your AI can add.
- Shopify removes a webhook if its address keeps failing. If the project is paused for long, your AI may need to add it again.
- One shop per project. A second shop is a second project or a change your AI can make.

## After you start it

1. Your AI puts the project online and gives you its address for the shop.
2. You add the address in the shop's webhook settings, and your AI checks it with a test order.
3. From then on, every order shows up in the chat on its own.

## Questions

### Where do I add the webhook?

In Shopify: Settings, Notifications, Webhooks. In WooCommerce: WooCommerce, Settings, Advanced, Webhooks. Your AI walks you through it.

### Do I need a Shopify app or a WooCommerce plugin?

No. Webhooks are built into both. You only paste the project's address there.

### Can it send orders to several chats, for example by city?

Yes. Tell your AI the rule, and it sends each order to the right chat.

## Technical details

- Language: Python
- Parts: Address that receives data, Disk

## Similar templates

- [Stripe payments to Google Sheets](https://bithut.app/templates/stripe-payments-to-sheets.md): Every payment in Stripe becomes a new row in your Google Sheet, as soon as it happens.
- [Lead form](https://bithut.app/templates/lead-intake.md): A form for your clients. Every request is saved and reaches you where you work: e-mail, Telegram, Slack and more.
