---
title: Buttons, lists and files in each channel
description: How the inbox agent's replies carry quick-reply buttons, a list, a link or a file, shown as WhatsApp interactive messages, Telegram keyboards and web chat buttons, or as numbered text on SMS and email.
section: cloud
order: 194
audience: [user, operator, builder]
sources: [services/nodejs-cloud/lib/comms/rich/model.ts, services/nodejs-cloud/lib/comms/rich/adapter.ts, services/nodejs-cloud/lib/comms/rich/index.ts, services/nodejs-cloud/lib/comms/rich/telegram.ts, services/nodejs-cloud/lib/comms/rich/whatsapp.ts, services/nodejs-cloud/lib/comms/rich/webchat.ts, services/nodejs-cloud/lib/comms/rich/text.ts, services/nodejs-cloud/lib/comms/telegram.ts, services/nodejs-cloud/lib/comms/meta.ts, services/nodejs-cloud/lib/support/widget.ts, services/nodejs-cloud/lib/support/widget-scripts.ts, services/nodejs-cloud/migrations/0556_support_rich_messages.sql]
features: []
---

A reply in the [Customer Inbox](/docs/cloud/customer-inbox.md) can carry more than text. The [inbox agent](/docs/cloud/customer-inbox-agent.md)
can add these to an answer:

- up to 3 **buttons**, for example "See the menu", "Book a table", "Talk to a person";
- a **list** of up to 10 rows, such as a menu or your services, each row with an optional short description;
- one **link**, such as "Order online";
- one **file**, a picture or a document such as the menu PDF.

Each channel shows these in its own way. When a channel can't show something, it goes out as text, so the customer
still gets all of it.

## What the customer sees {#channels}

| Channel | Buttons | List | Link | File |
|---|---|---|---|---|
| WhatsApp (Meta Cloud API) | reply buttons, up to 3 | a list message, up to 10 rows | a call-to-action button | a picture or document, by link |
| Telegram bot | an inline keyboard, one button per row | rows in the same keyboard | a url button | a photo or document |
| Website chat | buttons under the message | rows the visitor can press | a link | a link to the file |
| SMS, RCS, email | numbered lines | numbered lines | the address written out | the address written out |

WhatsApp limits: a button title is at most 20 characters, a row title 24, a row description 72, and the text above
buttons 1,024. Longer words are shortened with an ellipsis. If a reply has both a list and buttons, the buttons are
added to the list as extra rows. Interactive messages only go inside WhatsApp's 24-hour window. Outside it, a reply is
an approved template (no buttons) or an SMS, where they become numbered lines.

On SMS, a reply looks like this:

```text
We do takeaway until 9pm.

1. See the menu
2. Book a table
3. Talk to a person
Order online: https://example.com/order
```

## When the customer presses one {#presses}

A press shows in the thread as a highlighted pill with the option's words, and the agent reads which option it was. Each
channel reports it differently:

- **WhatsApp** sends the button or row the customer chose.
- **Telegram** sends a button press. Petawork answers it straight away, so the button stops spinning.
- **Website chat** posts the option. Only the newest reply's buttons can be pressed; an older one gets "Those buttons
  are no longer current".
- **SMS and email**: if the customer answers with a number ("2") or the option's exact words, that counts as a press.
  Option words typed on WhatsApp or Telegram count too, but a bare number there doesn't.

A press is a message like any other. "Talk to a person" goes to a person, the same as if the customer had typed it.

## How the agent adds them {#agent}

The agent's `reply` tool always has optional `buttons`, `list`, `link` and `file` fields, whatever the channel. A short
line in each turn tells it whether the customer's channel shows buttons. Two rules hold:

- A link or file only goes out if its https address appears in one of the notes the agent was shown. Any other address
  is dropped, and the rest of the reply still goes. For the menu PDF, put its address in a note (the website reader does
  this when it reads your site).
- Only https addresses are sent. Nothing else is fetched or uploaded: WhatsApp and Telegram fetch the file from the
  address themselves.

## Quick replies on stored replies {#stored}

A [stored reply](/docs/cloud/customer-inbox-agent.md#stored-replies) can carry up to 3 quick replies of up to 20 characters. Set
them on the agent's page in Agents (**Settings**, **Stored replies**, **Quick replies**) or with `agents_bot_update`:

```json
{ "stored_replies": { "greeting": { "buttons": ["See the menu", "Book a table", "Talk to a person"] } } }
```

There are none by default. `[]` or `null` removes them.

## Telegram bots connected earlier {#telegram}

A bot has to be told to send button presses. Saving the bot in **Settings**, **Comms** asks Telegram for them, and the
bot's **Button presses** field then reads `1`. Until you save it again, a bot connected before this change gets a reply
keyboard instead. When the customer taps a button, Telegram sends its words as a normal message, which still counts as
a press. Links are written in the text.

## For developers: adding a channel {#adapters}

Each channel has one adapter in `lib/comms/rich/` behind the `ChannelAdapter` interface. An adapter has `capabilities`
(how many buttons and rows fit, the text limits, which file kinds it shows), `render(text, rich)`, which returns the
provider payloads in send order, and `parseInteraction(inbound)`, which turns a press back into `{kind, id, label}`.
Comms providers that render natively list their channels in `rich`. Everything else gets the text adapter. Adding a
channel means one adapter file and one line in `lib/comms/rich/index.ts`.

The parts are stored on the message (`support_messages.rich` and `comms_messages.rich`, migration 0556). A retry renders
them again, and the Support thread shows them in a compact form. On a channel without buttons, the thread also says they
went as numbered lines.
