> ## Documentation Index
> Fetch the complete documentation index at: https://cntillion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize the chat widget

> Every setting of the Centillion chat bubble on one page, with the live widget docked beside it: launcher, content, interface, feedback, rich content, styling, text, terms, links, language, the Help page, A/B testing, instructions and actions.

The **Widget** page holds every setting of the chat bubble on your website on
one page. The live widget sits in the page's bottom-right corner and shows
your changes as you make them, before you save.

![Widget page with the section list from Setup to Actions, the Avatar and launcher settings with Position, Expanded behavior, Size and distances, and the widget card open in the bottom-right corner with Hide preview above it, the orb, the call button and the message box](https://mintcdn.com/centillion/pNlGHf8jD905GJJQ/images/channels/widget-01-page.webp?fit=max\&auto=format\&n=pNlGHf8jD905GJJQ\&q=85\&s=aa252f89e4d2596eee9c3b61f4e3f49b)

The Widget page: the sections on the left, the settings in the middle and the live widget docked in the corner, with Hide preview above it.

## Open it

Any of these opens the agent's **Widget** page (agent, **Channels**,
**Widget**):

* **Channels**: **Customize** (the sliders button) on the **Chat bubble**
  card.
* **Preview**: switch to **Widget**, then choose **Customize widget**.
* **Playground**: with **Chat bubble** selected, open the **Display** tab and
  choose **Open the Widget page**. The Display tab edits most of the same
  settings.

![Preview panel in Widget mode with the Customize widget button at the top and the Chat now pill in the bottom-right corner](https://mintcdn.com/centillion/2ki24vC2t64clqfX/images/channels/widget-02-preview-customize.webp?fit=max\&auto=format\&n=2ki24vC2t64clqfX\&q=85\&s=a729d1c812e0c5c5d1e63548f7af1744)

Preview, Widget: Customize widget opens the Widget page.

## What you need

* The Owner or Member role to change and save settings. Viewers can open the
  page but not save. See [workspace roles](https://cntillion.com/docs/workspaces/members.md).
* Chat bubble among the agent's website surfaces. See
  [Installing the chat on your website](https://cntillion.com/docs/channels/website.md).

## The sections

The section list on the left jumps to each one. On a narrower screen, scroll.

The Help page and Center stage share the conversation's settings with the
chat bubble: **Content**, **Interface** (except **Resize button** and **Full
screen on phones**), **Feedback**, **Rich content**, **Styling**, **Text**,
**Terms**, **Links** and **Localization** shape their conversation too.
**Instructions and model** and **Actions** here are the chat bubble's own.

* **Setup**: the snippet for your site, **Send instructions via email** and
  **Copy prompt**, as in **Channels**, **Install**. **Visibility** turns the
  chat bubble on or off, and **Specific domains** limits the sites that can
  load it (see [Only on your own sites](https://cntillion.com/docs/channels/website.md#only-on-your-own-sites)).
  The domains are shared by every branch, so you change them on **Main**; on
  another branch they are read-only. **Set up identity verification** opens
  the agent's **Identity** settings, to sign visitors in to the widget with
  your website's login, and **Shopify** opens the Shopify install.
* **Avatar and launcher**: **Position** on the page and the distances from
  its edges, **Expanded behavior**, **Size**, the **Avatar** (the orb with two
  colors, an image link or the agent picture), the **Button label** (**Bubble
  text** with a video avatar) and **Launcher**. Auto-open is here too: open
  the chat by itself after a delay, on mobile too or not, with a different
  delay for mobile if you want one.
* **Content**: the agent picture, **Display name**, **Initial message**,
  **Message placeholder**, **Call description** (an optional line under the
  agent's name in the card's call view, up to 160 characters), a
  **Dismissible notice**, the **Footer** and **Suggested messages**.
* **Interface**: what visitors can do in the conversation. **Attachments**,
  **Voice to text (Dictation)**, **Copy message** on each reply, and **Delete
  conversations**, a delete button in the card's header. Twelve more switches
  follow; see [Interface switches](#interface-switches).
* **Feedback**: **Collect user feedback** puts a thumbs up and a thumbs down
  under each answer. **Ask for a rating when a conversation ends**, on unless
  you turn it off, asks for one to five stars and a comment once a
  conversation or a call ends; see
  [Ending a conversation](#ending-a-conversation). Each switch works without
  the other.
* **Rich content**: **Agent-suggested quick replies** (the reply options the
  agent offers under an answer) and **Studio widget cards** (the cards your
  actions show in the conversation). Both are on. With one off, that content
  is left out and the answer still shows.
* **Styling**: **Theme** (light or dark), **Tinted grayscale**, the **Accent
  color** and where it applies, **Radius**, **Font family** and **Font size**.
  **Advanced** opens the widget's own colors and corners; see
  [Colors and shapes](#colors-and-shapes).
* **Text**: every text the widget shows, in groups (**Calls**,
  **Conversation**, **Messages**, **Rating**, **Files**, **Status** and
  **Terms**). Write your own words or another language, up to 160 characters
  each. Each field shows the built-in text as its placeholder, and a field
  left empty keeps it. **Reset all** empties every field. In **Empty file**,
  **File too large** and **File type not supported**, `{name}` stands for the
  file's name; in **Too many files**, `{count}` stands for how many files a
  message takes, and in **Star**, the number of stars. New built-in texts are
  in English, so this is also how you translate the widget.
* **Terms**: what visitors agree to before their first message or call. See
  [Terms](#terms).
* **Links**: which links in the conversation stay links. See [Links](#links).
* **Localization**: **Language source** (the visitor's browser or your
  website's language) and the languages the widget greets visitors in. With
  two or more languages, the widget can offer a language menu; see
  [Language menu](#language-menu).
* **Shareable page**: what the Help page, the agent's shareable link, adds to
  the conversation. **Description** is plain text of up to 500 characters,
  shown above the chat on the Help page only. **Require terms** shows the
  terms from **Terms** before the first message or call on the Help page,
  whether or not the widget asks for them. A visitor who already agreed under
  the storage key isn't asked again.
* **A/B testing**: show the widget to a share of your visitors. See
  [A/B testing](https://cntillion.com/docs/channels/website.md#ab-testing).
* **Instructions and model**: the model that answers in the chat bubble, its
  data sources and actions, and its instructions. With **Sync with global
  instructions** on, the chat bubble uses the agent's global instructions, and
  editing them here changes them for every channel that syncs. Turn it off to
  give the chat bubble instructions of its own.
* **Actions**: the tools the agent can use in this channel, each with a
  switch.

### Expanded behavior

* **Starts collapsed** shows the pill. The card opens when a visitor clicks it,
  or by itself if auto-open is on.
* **Starts expanded** opens the conversation on every page load.
* **Always expanded** shows no launcher, so the conversation stays open.

**Starts expanded** and **Always expanded** load the widget with the page,
because it is on screen from the start.

## Interface switches

Under **Interface**, after the first four switches. Each reaches the floating
widget, the Help page and Center stage, except **Resize button** and **Full
screen on phones**, which belong to the floating widget.

| Switch | Starts | What it does |
| - | - | - |
| **Chat-only mode** | Off | No call button. The card opens on the conversation, and no call can start. |
| **Send text while on a call** | On | Visitors can type and send during a call. Off, the message box and the suggestions wait until the call ends. |
| **Live transcript during calls** | On | Both sides' words show as messages during the call and stay after hang-up until the next call or a new conversation, and the card moves to the conversation at the first words; **Back to the call** in the header returns to the avatar. Off, the card stays on the avatar with a caption. |
| **Reveal the transcript as the agent speaks** | On | The agent's words appear as it says them. Off, each turn appears once it is finished. |
| **Language menu** | Off | A **Language** choice in the card's **More options** menu. See [Language menu](#language-menu). |
| **Mute button** | On | A mute button beside the call button while a call is live. |
| **Show when the agent is working** | Off | A line under the reply while one of your actions runs: **Working…**, then **Done**, or **Couldn't finish** if the action failed. |
| **Show the conversation ID when it ends** | On | The end screen shows the conversation's ID, or after a call the call's own, with a **Copy** button, so a visitor can quote it to your team. |
| **Hide audio tags** | On | Delivery tags such as `[warmly]` are left out of the agent's written replies and greetings. Off, they show highlighted. Only the built-in tags and your agent's own are recognized. |
| **Resize button** | Off | **Expand** in the card's header makes the card larger, and **Shrink** puts it back. |
| **Full screen on phones** | On | On a screen 768 pixels wide or narrower, the open card fills the screen with square corners. |
| **Confirm before ending** | Off | Asks "End the call?" before hanging up, "End the conversation?" before **End conversation** in the card's **More options** menu, and "Start over?" before **Reset conversation** or **Delete conversation**. |

## Colors and shapes

**Styling**, **Advanced** holds the widget's own colors and corners. Each
field starts empty and shows, as its placeholder, what the widget paints
without it. **Reset** empties a group.

* **Colors**: **Base** (the card and the launcher), **Base hover** (buttons
  and suggestions under the pointer), **Base active** (the agent's messages),
  **Base border**, **Base subtle** (statuses, captions and other secondary
  text), **Base text** and **Error**. While **Accent color** is on, five more
  follow: **Accent hover**, **Accent active**, **Accent border**, **Accent
  subtle** (focus rings) and **Accent text**. They paint only while the accent
  is on, and keep their values while it is off.
* A **Base** color also decides whether the card's text and controls are light
  or dark, whatever **Theme** says: a dark base gets light text. **Theme**
  still sets every color you leave empty.
* **Shapes**: **Button radius**, **Input radius**, **Bubble radius**, **Card
  radius**, **Launcher radius**, **Menu radius** and **Card padding**, each a
  whole number of pixels from 0 to 48. On a phone in full screen the card's
  corners are square whatever **Card radius** says.

The pill takes **Base**, **Base text** and **Launcher radius** too.

## Terms

Turn on **Require terms before the first message or call** and write the
**Terms** in Markdown. Visitors then see your terms over the conversation,
with **Decline** and **Agree** (rename them under **Text**, **Terms**).

* Until a visitor agrees, nothing they write is sent, no file uploads and no
  call starts. A message your page sends with
  [`open({ message })`](https://cntillion.com/docs/developer-guides/chat-bubble-control#open-with-a-message)
  waits for **Agree** too.
* **Decline** puts the terms away. They come back the next time the visitor
  sends, attaches a file or calls.
* **Storage key**: with a key, a visitor who agrees isn't asked again in that
  browser; change the key to ask everyone again. Without one, they are asked
  on every page. Letters, numbers, dashes and underscores. The widget on this
  page and Preview ask again after you reload.
* With the switch on and no terms written, visitors see none.
* Links in the terms follow [Links](#links).

The terms apply to the floating widget, the Help page and Center stage. On
the Help page, **Require terms** under **Shareable page** shows them even with
this switch off.

## Links

The **Links** section decides which links in the conversation stay links: in
the agent's answers, the terms, the notice and the footer. A link the rules
refuse shows as plain text.

* **Allow links to any domain** is on: every `https://` link stays a link. Turn
  it off and list **Allowed domains**, one per line, to keep only links to
  those sites. **Include [www](http://www). versions**, on, also allows the `www.` name of
  each domain.
* **Allow http links** is off: a link written with `http://` shows as text.
  When the agent writes a bare name such as `www.example.com`, the widget
  links it to `https://www.example.com`.
* Email addresses, phone links and addresses that aren't full web addresses,
  such as `/pricing`, always show as text.

## Language menu

Turn on **Language menu** under **Interface** and add two or more languages
under **Localization**. The card's **More options** menu (the dots in its
header) then has **Language**, with each language named in itself, for
example **English** and **Español**. The menu shows on your website, on the
Help page and Center stage, and in the widget on this page and Preview's
**Widget** mode, where a pick changes the language of their replies too. A
language you add here reaches those replies once you save.

A visitor's pick changes the language the agent replies in to chat messages,
and the language of the notices the widget shows while a teammate takes over,
for as long as the browser tab stays open. The conversation goes on; nothing
starts over. Calls are not affected: a call keeps the language it starts with.
Your own texts stay as you wrote them under **Text**.

## Ending a conversation

**End conversation** in the card's **More options** menu (the dots in its
header) ends the chat. The menu offers it once the visitor has sent a
message, and leaves it out while a call connects or runs (the visitor hangs
up first), while a teammate has the chat or the visitor waits for one, and
once the conversation has ended. If ending fails, the widget shows your
**Conversation not ended** text (under **Text**, **Conversation**) and the
visitor can try again; a conversation that can't be ended at all, such as a
chat paused as spam, stops offering it. With **Confirm before ending** on,
the widget asks "End the conversation?" first. It works the same on the Help
page, in Center stage, in the docked widget and in Preview's **Widget** mode.
The conversation then ends as it does after the agent's End step: it reads
**Ended** in [Conversations](https://cntillion.com/docs/workspaces/conversations.md), and
[realtime monitors](https://cntillion.com/docs/api-reference/realtime-monitoring.md) get
`conversation_ended` with the reason `visitor_ended`.

### The end screen

When a conversation ends, the end screen shows under the last message, above
the message box, and the suggestions go away:

* Who ended it: "You ended the conversation", or "The agent ended the
  conversation" when the agent's workflow reached an End step.
* The conversation's ID with **Copy**, unless you turned off **Show the
  conversation ID when it ends**. A long ID is cut in the middle, so its end
  stays visible.
* "How was this conversation?" with five stars. The arrow keys move between
  them. Choosing one opens an optional comment box (up to 2,000 characters)
  and **Submit**. After "Thanks for your feedback" the visitor can still pick
  other stars and submit again, until a new conversation starts; the last
  rating counts. The comment is kept as plain text.

The rating shows as **Rating** on the conversation's page in
[Conversations](https://cntillion.com/docs/workspaces/conversations.md#open-a-conversation). Turn off
**Ask for a rating when a conversation ends** under **Feedback** to leave the
stars out; the widget on your website follows when you publish, and a
conversation started on a version that doesn't ask can't be rated.

![Widget card with a short chat about a refund, then You ended the conversation, the conversation ID with a Copy button, How was this conversation? with four of five stars filled, a comment box with a comment and the Submit button, and the message box below saying Send a message to start a new conversation](https://mintcdn.com/centillion/MF_8OM7A5GTeGyQu/images/channels/widget-03-end-screen.webp?fit=max\&auto=format\&n=MF_8OM7A5GTeGyQu\&q=85\&s=eed52ad1145e9ee9f1fd156d802801a5)

The end screen after the visitor chose End conversation: who ended it, the conversation's ID, four stars chosen and a comment ready to submit.

### What comes after

The message box stays under the end screen and reads "Send a message to
start a new conversation". Anything the visitor had typed stays in it.
Sending starts a new conversation: on your website the widget usually
reloads first, as **Reset conversation** does, so the new conversation gets
the published version's greeting and look, and then sends the message. When
the browser won't let the widget keep the message through a reload, or a
call is under way, the new conversation starts in place instead, with the
greeting and look already loaded. Your page hears
`chatReset` (see [Event listeners](https://cntillion.com/docs/developer-guides/event-listeners.md)), and a
message your page sends with
[`open({ message })`](https://cntillion.com/docs/developer-guides/chat-bubble-control#open-with-a-message)
starts the new conversation the same way.

### Calls

When a call ends, the end screen sits under the call's transcript: "You ended
the call" when the visitor hung up, or "The call ended" when the agent did or
the connection dropped. It shows the call's own ID, and its stars rate the
call. The next message starts a new conversation. If the visitor typed in
the chat during the call, that chat carries on instead: the message goes to
it, and the call's end screen goes away. While a teammate has the chat, a
call that ends shows no end screen, and the next message goes to the
teammate.

The end screen's texts are under **Text**: the chat's lines under
**Conversation**, the call's under **Calls**, and the question, the stars'
names, the comment box, **Submit** and its answers under **Rating**. A label
you saved for the earlier "Conversation ended" fills all four end lines
until you write them.

## The docked widget

The widget in the corner is a real Preview conversation of the branch you are
on, with mock tools as in [Preview](https://cntillion.com/docs/agents/releases-and-workflows.md#preview-a-conversation).
It takes every unsaved change at once: a new label on the pill, a dark theme,
another orb color. Open it, chat or start a call as a visitor would.

* This page always shows the widget in the bottom-right corner of the page,
  beside the Mastermind panel when that is open. The **Position** you choose
  applies on your website.
* While the card is open, the settings make room for it. When the page is too
  narrow for both, with Mastermind open on a laptop for example, the card
  waits as its pill (with **Always expanded**, behind **Show preview**); open
  it and the settings narrow to make room.
* **Hide preview** above the widget puts it away, whatever its expanded
  behavior, and gives the settings the whole width. **Show preview** brings it
  back. Hiding the widget ends a call.
* The widget answers with the chat bubble's saved instructions and model.
  While you have unsaved changes to them, **Instructions and model** says
  "Save to try these instructions in the widget."
* A conversation keeps the settings it started with. After you save, a notice
  above the widget offers **Restart** to try the new ones.
* **Chat as user** in the page's header chats as a signed-in visitor, with a
  user ID and metadata you enter. It applies to chat messages, not calls.
* **End conversation** and the end screen's stars work here as on your
  website, and a rating given here shows on that Preview conversation. A
  message after the end starts the next conversation in place, with no
  reload.
* The **Language menu** works here as on your website. **Show when the agent
  is working** says how a reply's actions ended, **Done** or **Couldn't
  finish**; a reply here arrives whole, so **Working…** shows only on your
  website. **Full screen on phones** needs a phone's screen. **Resize button**
  works here: **Expand** grows the docked card, and the settings make room.

## Save your changes

One **Save changes** at the bottom saves everything on the page: the
appearance, the chat bubble's visibility, instructions and model, and the
domain list. **Discard** puts back what was saved. Leaving the page with unsaved
changes asks first. If part of a save fails, the message says what saved and
what didn't, for example "Appearance saved. The allowed domains couldn't be
saved: …". Fix what it names and choose **Save changes** again; only the
unsaved part is sent. Editing anything clears the message.

What a save changes on your website comes in two parts: the launcher pill
goes live when you save, and what visitors see inside the open card goes live
when you publish.

**On your website when you save.** The widget's loader reads these each time
a page loads, so they need no **Publish**:

* **Avatar and launcher**: position and distances, **Expanded behavior**,
  **Size**, **Avatar**, **Button label** (**Bubble text**), **Launcher** and
  auto-open.
* The pill's look from **Styling**: the light or dark theme, the accent color,
  and under **Advanced** the **Base** and **Base text** colors and the
  **Launcher radius**. The open card's outer corners (**Card radius**) come
  from here too.
* **Full screen on phones**, from **Interface**.
* **A/B testing**.

A visitor's browser can keep the previous launcher settings for up to about
six minutes after you save: it uses them for a minute, then once more while it
fetches the new ones.

**Visibility** and **Specific domains** apply at once inside the chat: with
**Visibility** off, the chat no longer loads or answers. Who sees the launcher
follows the same six-minute cache, so after you turn **Visibility** off or on,
or change **A/B testing**, it can take up to about six minutes to reach every
visitor.

**On your website when you publish.** Everything inside the open widget
follows the version you published, as the rest of the agent does: **Content**,
**Interface** (except **Full screen on phones**), **Feedback**, **Rich
content**, the card's **Styling** (theme, colors, corners and type), **Text**,
**Terms**, **Links**, **Localization**, **Shareable page**, and **Instructions
and model**. Saving puts them in the branch's draft; **Publish** in the top bar
puts them on your website. The docked widget shows the appearance as you edit
it, and the instructions and model once you save.

The open card always shows the published look. It paints its own background
from the version you published, the same version its text and controls come
from, so a **Base** color you saved but haven't published yet reaches the
launcher pill first and the card only when you publish. The card never mixes
the two.

**Actions** save the moment you flip a switch, without **Save changes**, and
**Discard** doesn't undo them. The docked widget uses the change at once; your
website after you **Publish**.

If someone else changes the agent while you edit, saving shows "Agent settings
changed while you were editing" and keeps your draft. Copy any edits you want
to keep, then choose **Discard** to load the latest settings.

## Questions

### The widget on this page is in the wrong corner.

The page always docks it bottom right, beside the settings you are editing.
Your website uses the **Position** under **Avatar and launcher**.

### I saved, but my website still shows the old widget.

The launcher's settings reach your website within about six minutes of
saving; reload the page. What visitors see inside the open widget changes when
you **Publish**. See [Save your changes](#save-your-changes).

### The agent wrote a link, but visitors see plain text.

The **Links** settings refused it: a link written with `http://`, an email
address or a phone number, or, with **Allow links to any domain** off, a site
that isn't under **Allowed domains**. See [Links](#links).

### A visitor picked another language, but a call answered in the old one.

The language menu changes the language of chat replies only. A call keeps the
language it starts with. See [Language menu](#language-menu).

### Why does an ended conversation show an ID?

**Show the conversation ID when it ends** is on for every widget, so a visitor
can copy the ID and quote it to your team. To open that conversation, paste
the ID into the search on the
[Conversations](https://cntillion.com/docs/workspaces/conversations.md) page. Turn it off under
**Interface**.

### Where do I see what visitors rated?

Open the conversation in [Conversations](https://cntillion.com/docs/workspaces/conversations.md): its
metadata has a **Rating** row with the stars and the comment, or **Not
rated**. See [Ending a conversation](#ending-a-conversation).

### The More options menu has no End conversation.

The menu offers it once the visitor has sent a message, and not during a
call, while a teammate has the chat or after the conversation has ended. See
[Ending a conversation](#ending-a-conversation). A page that sets
[`hideActionsMenu`](https://cntillion.com/docs/developer-guides/chat-bubble-control#runtime-options)
hides the whole menu.

### I changed the instructions but the widget answers the old way.

The widget answers with saved instructions. Choose **Save changes**, then
**Restart** in the notice above the widget, or **Reset conversation** in the
card's header.

### Is the Playground's Display tab gone?

No. With **Chat bubble** selected, the Playground's **Display** tab edits the
same content, interface, style, launcher, language and A/B testing settings
with the same controls, and links here. **Rich content**, **Text**,
**Terms**, **Links** and **Shareable page** are on this page only.

## Related

> [card] [Installing the chat on your website](https://cntillion.com/docs/channels/website.md)
>
> The snippet, the inline chat, the domain list and what visitors see.

> [card] [Chat bubble controls](https://cntillion.com/docs/developer-guides/chat-bubble-control.md)
>
> Open, close and configure the widget from your own code.

> [card] [Releases and workflows](https://cntillion.com/docs/agents/releases-and-workflows.md)
>
> Preview, branches and publishing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.