---
title: Customer Inbox channels
description: Where customers reach the inbox agent, on one page, in order of effort. A hosted chat link with a QR code, chat on your website, Telegram, email, phone calls and WhatsApp, each with a real state and one button, and the set-up call you can book when you would rather not do a step alone.
section: cloud
order: 193
audience: [user, operator]
sources: ["services/nodejs-cloud/app/(support)/support/channels/page.tsx", "services/nodejs-cloud/app/c/[slug]/route.ts", "services/nodejs-cloud/app/c/[slug]/api/[action]/route.ts", services/nodejs-cloud/components/support/Channels.tsx, services/nodejs-cloud/components/support/ChannelDialogs.tsx, services/nodejs-cloud/components/support/CallView.tsx, services/nodejs-cloud/lib/support/channels, services/nodejs-cloud/lib/support/mailbox.ts, services/nodejs-cloud/migrations/0515_support_setup_requests.sql, services/nodejs-cloud/migrations/0516_support_chat_links.sql, services/nodejs-cloud/migrations/0517_comms_mailbox_to_support.sql, services/nodejs-cloud/migrations/0518_comms_lines_pickup.sql, docs/adr/0100-customer-inbox.md]
features: [cloud.c]
---

**Support, Channels** (`/support/channels`) is where you decide how customers reach the [inbox agent](/docs/cloud/customer-inbox.md). It
lists six ways, easiest first. Each row says what state it is in and has one button. Start with one: the first two work
right now. Everything lands in the same Support inbox. When a channel is connected you can [go live](/docs/cloud/customer-inbox-going-live.md).

Open it from the agent's page (**Where customers reach it, Open Channels**). Anyone in the organisation can see the page;
owners and admins connect a channel.

| Channel | What a customer does | What you do | State |
| --- | --- | --- | --- |
| Chat link and QR code | Opens a link, or scans a code | Nothing. Copy the link, print the sign. | Ready now |
| Chat on your website | Uses a chat button on your site | Add one line to your site | Ready now, then Connected |
| Telegram | Messages your business bot | Make a bot in Telegram and paste its code | 5 minutes |
| Email | Writes to your own address | Make an app password and paste it | 5 minutes |
| Phone calls | Calls your number | We set it up with you | We set it up with you |
| WhatsApp | Messages your WhatsApp number | Book a call; Meta must approve your business | A few days |

A row says **Ready now** when it works with nothing to do, **Connected** when customers can write and it reaches the inbox,
**Needs attention** when it was set up and something is wrong (a mailbox that cannot sign in, a bot that is switched off,
a phone line that is off), and **Call requested** after you booked a set-up call. The page says what is wrong in the row.

## The chat link and QR code

Every organisation that shows the inbox agent has a public chat page at `/c/<name>`, for example
`https://your-cloud.example/c/harbour-dental`. The name is made from your business name; if it is taken, a few letters are
added. The page shows your business name and a chat. Nobody installs anything or signs up.

A [sandbox](/docs/cloud/customer-inbox-try.md) has no chat page: the link is made when the sandbox is kept, and its address
answers "not found" until then.

It is the same chat as the [website chat](/docs/cloud/support-widget.md), on a page we host: a customer's messages are chat
conversations in your Support inbox, and the same phone or computer comes back to the same conversation, because the
browser keeps the visitor's own token. The page is rate limited (per address, per visitor and per page), and a name that is
unknown, turned off, or belongs to an organisation that does not show the agent answers "not found".

On **Get my link** you can:

- **Copy the link**.
- **Save the QR code as a picture** (a PNG). The code is drawn in your browser from the link: no outside service is called,
  and nothing is sent anywhere. It is checked against the QR standard by a test that decodes the picture back to the link.
- **Print a counter sign**: a one-page sign with your business name, the code and the link in words.
- **Turn the link off**. The address then answers "not found" until you turn it back on.

Good places for it: your Instagram profile, your Google listing, your WhatsApp Business greeting, the bottom of your receipts.
If you are not on WhatsApp through Petawork yet, put the link in your WhatsApp Business greeting: customers who message you
there can tap through to the agent today.

Owners and admins can also choose the link's name (`support_chat_link_update`, 3 to 40 letters, digits or hyphens). The old
address stops working at once.

## Chat on your website

**Add it** shows the one line to put on your site, the address of your site (only that site can show the chat) and **Send this
to my web person**, which opens an email with the line in it. Turning the chat on here is the same switch as
[Settings, Chat widget](/docs/cloud/support-widget.md).

## Telegram

**Connect** asks you to make a bot with BotFather inside Telegram (send it `/newbot`, give it your business name, copy the
long code it replies with) and paste that code. One action then:

1. checks the code with Telegram, with the same Telegram adapter Comms uses;
2. seals the code in the vault and registers the bot's webhook;
3. makes the Comms provider and routes the bot to the **Support inbox**.

A wrong code is answered in words ("That does not look like the long code. BotFather sends it in a message that says Use
this token to access the HTTP API…") and nothing is saved. A bot that already saves contacts in [People](/docs/cloud/people.md) is
refused, so it does not lose that job: make a second bot for your customers. Pasting the same bot again updates it.

## Email

**Connect** takes your own email address and an app password (IMAP and SMTP). It has steps for **Gmail or Google
Workspace**, **Outlook or Microsoft 365**, and **somewhere else** (you type the two server names). Petawork signs in to both
servers before it saves anything, so a wrong password is refused in plain words. There is no Google or Microsoft sign-in.

When it connects:

- **mail to that address opens Support conversations.** Comms already read a mailbox for replies to its own emails and for
  bounces; a mailbox connected here also hands mail from customers to Support (setting `to_support`, migration 0517). Mail
  that arrived before you connected is never read. Mail from the mailbox itself and auto-replies (out of office) are
  ignored. A customer's answer to one of your replies joins the same conversation.
- **replies go out as that address**: Support's outgoing email is set to the same mailbox, through the same app password.
  If Support already sent from another address, the dialog says so.

A mailbox you connected in [Settings, Comms](/docs/comms/email.md) is left exactly as it was: only the dialog here turns mail
into conversations, and **Stop reading mail here** turns it off again without removing the mailbox.

**Send these steps to my IT person** opens a mail with the steps for your provider in it. It never contains a password. The
person can do the steps and tell you the password in person, or you can use **Do this on my set-up call**.

## WhatsApp, later

WhatsApp needs a yes from Meta, the company that owns it. **Start** explains the three steps (a 20-minute call with us, two to
five days for Meta, then we switch it on with the same number) and **Book the call** stores a set-up request.

Where this cloud has **Connect with Meta**, or your organisation already connected its own Meta app, the dialog offers that
existing flow too ([WhatsApp through Meta](/docs/comms/whatsapp-meta.md)).

## Phone calls

**Set up** shows what the owner decides: when to pick up (**only when we do not answer**, or every call), whether to **keep
the business's number by forwarding** or to take a new one, and what it says first. Callers are always told they are speaking
with an assistant: the notice is always on, whatever else you change. A **Hear it** preview shows what callers hear.

- With [Petawork Line](/docs/comms/petawork-line.md) set up for your organisation, **Save** stores the choices on the line.
  Switching the line on is a decision a person makes in the app, never an agent.
- With no voice number or line, nothing is saved. **Set it up with me** books a set-up request that carries your choices.

Calls are an add-on, billed by the minute.

### A call in the inbox

A conversation that Petawork Line filed after a call shows the call instead of a bare thread: **In short** (the summary the
line wrote), **Done by itself** (saved to the customer's card, noted on their enquiry, handed to a person), **Needs you**
(what the assistant said a person would do, such as "I will ask the team to message you tonight"), and **What was said**,
the transcript. Buttons: **Call back** (opens your phone's dialler with the number), **Message the answer** (puts the cursor
in the reply box) and **Give to someone** (assign it). Petawork Line does not record calls, so there is no recording to play.

## Set-up requests

**Book the call** (and the other **Do it with me on a call** buttons) stores a set-up request: what to set up (WhatsApp,
calls, email, Telegram or something else), the contact's name, phone and best time, and short details such as the number
the business uses. It never holds a password or a token: a detail named like one is refused. Asking again for the same thing
updates the open request. The owner can withdraw it.

The operator sees each organisation's requests on its panel (**Operator, Organisations**, open the organisation, **Set-up
requests**) and marks them contacted or done.

## Agents and the API

| Tool | REST | What |
| --- | --- | --- |
| `support_channel_get` | `GET /api/v1/support/channels` | The six channels with their states, and which can receive a message now. |
| `support_chat_link_get` | `GET /api/v1/support/chat-link` | The hosted chat link; made on first use. |
| `support_chat_link_update` | `PATCH /api/v1/support/chat-link` | Owners and admins: turn it on or off, or change its name. |
| `support_setup_request_create` | `POST /api/v1/support/setup-requests` | Ask for a set-up call. |
| `support_setup_request_list` | `GET /api/v1/support/setup-requests` | The organisation's requests and their status. |
| `support_call_setup_get` | `GET /api/v1/support/call-setup` | How calls are answered. |
| `support_call_setup_update` | `PATCH /api/v1/support/call-setup` | When to pick up, how the number is kept, what it says first. |
| `support_call_get` | `GET /api/v1/support/conversations/{conversation}/call` | What Petawork Line filed after a call. |

A Telegram code or a mailbox password is typed by a person in the app and never passes through an agent, so connecting
Telegram or email has no tool. An agent reads the result with `support_channel_get`. An agent cannot switch the phone line
on.

Every change is in the audit log (`support.chatlink.update`, `support.channel.telegram_connected`,
`support.channel.email_connected`, `support.channel.email_disconnected`, `support.channel.calls_updated`,
`support.setup_request.create`, `.cancel` and `.status`), with what changed and never a customer's words, a code or a
password.
