> For the complete documentation index, see [llms.txt](https://docs.borndigital.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.borndigital.ai/digital-agent/chat-bubble/bubble-design.md).

# Bubble design

Every setting of Bubble design: conversation modes and extras, timers, colours, fonts and labels – and how to save, import and export a bubble.

Open **Organization** › **Bubble design**. The editor has three tabs at the bottom – **Set-up**, **Colors** and **Text** – and a live preview of the bubble on the right.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-952d80b069e3452bb2fbdd4abfafba0fdc8c342b%2Fbubble-design-setup.png?alt=media" alt="Bubble design with the Name field, Choose, Create, Apply, Save, Test and the more menu in the top bar, the Set-up tab with Extras and Conversation modes, and the bubble preview on the right"><figcaption><p>Bubble design – a new bubble with the default settings</p></figcaption></figure>

## Choose, create and save

| Control    | What it does                                                                                             |
| ---------- | -------------------------------------------------------------------------------------------------------- |
| **Name**   | The name of the bubble. It must be unique in the organization.                                           |
| **Choose** | Open another bubble. The list shows the deployed version of each bubble and a green dot when it is live. |
| **Create** | Start a new bubble with the default settings.                                                            |
| **Apply**  | Show your changes in the preview.                                                                        |
| **Save**   | Save the bubble. It is active only after **Apply** and when the bubble has a name.                       |
| **Test**   | Open the deployed bubble in a new tab. Available once the bubble is deployed.                            |

After you save a bubble that is already deployed, Studio asks whether to deploy the new configuration – **Deploy** opens the project's Deploy dialog with the bubble selected.

{% hint style="warning" %}
A bubble has no version history: **Save** overwrites its settings. Use **Export** to keep a copy before bigger changes.
{% endhint %}

The **⋯** menu offers:

<div align="left"><figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-fcf6a12c6da2fe1e1acff91611fe4e3c6d06afa9%2Fbubble-design-menu.png?alt=media" alt="The more menu with Deploy, Reset, Duplicate, Import, Export and Delete" width="300"><figcaption><p>The ⋯ menu</p></figcaption></figure></div>

* **Deploy** – open the Deploy dialog with this bubble selected.
* **Reset** – return to the last saved settings (for a new bubble, to the defaults).
* **Duplicate** – create a copy of the bubble.
* **Import** / **Export** – load or download the bubble settings as a JSON file. Import always creates a new bubble.
* **Delete** – delete the bubble after a confirmation.

## Set-up tab

### Deployment script

Shown once the bubble is deployed: the HTML tag to put on your web page, with a **Copy** button. See [Embed the bubble](https://docs.borndigital.ai/digital-agent/chat-bubble.md#embed-the-bubble).

### Set-up

**Extras** – what the customer can do in the bubble:

| Switch                      | Default | Effect                                                                                                                                                                                                                                 |
| --------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **End conversation button** | on      | A button that ends the conversation.                                                                                                                                                                                                   |
| **Reset conversation**      | on      | A button that starts a new conversation. Needs the End conversation button.                                                                                                                                                            |
| **Expand bubble**           | on      | A button that enlarges the bubble.                                                                                                                                                                                                     |
| **Attachments**             | on      | The customer can attach files – the Answer node must allow **File upload**.                                                                                                                                                            |
| **Copyright**               | on      | The *Powered by Born Digital* line.                                                                                                                                                                                                    |
| **Store state**             | off     | The bubble keeps its state when the page is reloaded or the customer opens another page of your website.                                                                                                                               |
| **AI disclaimer**           | off     | A notice that AI can make mistakes. Its text is set on the **Text** tab.                                                                                                                                                               |
| **Rate response**           | off     | Like/dislike thumbs under the agent's answers. The flow variable `message_rating_enabled` can turn them on or off for a single answer – see [Rating answers](https://docs.borndigital.ai/digital-agent/chat-bubble/rating-answers.md). |
| **Input character limit**   | off     | The maximum length of a customer's message, 40–2,500 characters (255 when you turn it on).                                                                                                                                             |

**Conversation modes** – **Chat**, **Voice** and **Avatar**. At least one must be on. Turn off **Voice** and **Avatar** for a chat-only bubble – the Deploy dialog then does not require a voice.

* **Default Display** – the bubble starts **Open** or **Closed**.
* **Default mode** – which of the enabled modes starts first.
* **Default size** – **Standard** or **Large**.
* **Assistant image** – the agent's picture, 280 × 280 px. **Bubble logo** – 40 × 40 px, or 70 × 70 px with **Fill Bubble**. PNG, JPG, SVG or WEBP up to 20 MB.
* **Avatar ID** – the avatar to show in **Avatar** mode.

### Allowed websites

Limit the websites on which the bubble may run. Add each website as an HTTPS origin without a path, for example `https://www.customer.cz`, or `https://*.customer.cz` for all its subdomains. HTTP is allowed only for `localhost`.

* Leave the list empty to allow the bubble on any website – the default for every bubble.
* Changes take effect after publishing.
* Digital Studio preview keeps working.
* On a website that is not on the list, the bubble does not start at all – also when someone copies your deployment script to another site.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fnrl6h98MwpjbHKJAJbAZ%2Fbubble-design-allowed-websites.png?alt=media" alt="The Allowed websites section on the Set-up tab: the help text Leave the list empty to allow embedding on any website, the Website origin field and two added origins https://www.example.com and https://*.example.com"><figcaption><p>Allowed websites with an exact address and a wildcard subdomain</p></figcaption></figure>

{% hint style="warning" %}
Before you fill in the list, check every website where the bubble is embedded, including test and staging sites. A website missing from the list stops showing the bubble after publishing.
{% endhint %}

### Global chat timing

<div align="left"><figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-f991ac8c8abce646e928ebc60a6bf6f8862de123%2Fbubble-design-timing.png?alt=media" alt="Global chat timing with the In progress and Not started tabs, Inactivity reminder show after 60 s and End conversation end after 120 s, then Styling with Round, Semi-round and Sharp corners, and Window binding with the Element ID field" width="420"><figcaption><p>Global chat timing, Styling and Window binding</p></figcaption></figure></div>

Timers for a customer who stops responding, in seconds:

| Conversation    | Switch                  | Field                                              | Default         |
| --------------- | ----------------------- | -------------------------------------------------- | --------------- |
| **In progress** | **Inactivity reminder** | **Show after**                                     | off, 60 s       |
| **In progress** | **End conversation**    | **End after**                                      | off, 120 s      |
| **Not started** | **Inactivity reminder** | **Show after**, **Hide after** (or **Never hide**) | off, 30 s / 5 s |

The reminder asks the customer whether they are still there and counts down to the end of the conversation; the texts are set on the **Text** tab. These timers are separate from the **No input** timeout of an Answer node, which sends a signal to the flow.

**Show bot messages when the bubble is minimized** (on by default) – while the bubble is closed, each bot reply pops up as a short preview above it. Turn it off to keep replies inside the closed bubble; the customer sees them when they open it. The conversation, reminders and timeouts are not affected.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fa4i2bgXpq0vp2dEcFbRz%2Fbubble-design-minimized-previews.png?alt=media" alt="The Global chat timing section on the Set-up tab of Bubble design with the highlighted switch Show bot messages when the bubble is minimized turned on, above the In progress and Not started tabs with Inactivity reminder and End conversation"><figcaption><p>Show bot messages when the bubble is minimized</p></figcaption></figure>

### Styling

**Corners** – **Round** (default), **Semi-round** or **Sharp**.

### Window binding

Bind the bubble to elements of your page by their **Element ID** (press **Enter** to add one). The bound IDs are passed to the flow when the conversation starts.

## Colors tab

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-172adff1405028c70e93329e4e0f8e040e5e07ec%2Fbubble-design-colors.png?alt=media" alt="The Colors tab with the Bubble section (Open and Closed, Background #FFFFFF, Border #9C9D9C Thin 1px) and the Action panel section"><figcaption><p>The Colors tab</p></figcaption></figure>

Each section has switches for the parts you want to colour and a colour picker – a solid colour or a gradient:

* **Bubble** – background and border, separately for the **Open** and **Closed** bubble.
* **Action panel** – background and icons.
* **User input** and **Assistant input** – the message background, border and font, and the colour of the speech animation. **Assistant input** also has the **Assistant avatar size** slider: the size of the agent's picture next to its messages, from 24 to 64 px. Bubbles saved before this setting existed keep 28 px.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2FgKJWoBuk65N5xAR57we4%2Fbubble-design-avatar-size.png?alt=media" alt="The Assistant input section on the Colors tab with the slider Assistant avatar size: 28 px, from 24 px to 64 px"><figcaption><p>Assistant avatar size on the Colors tab</p></figcaption></figure>

* **Typing field**, **Button** and **Link**.

A **Button** with a light fill – for example white – turns slightly darker when the customer points at it and darker still while it is pressed, so customers see that it reacts. The border and text keep your colours. Dark fills keep their own hover colours. The same applies to quick replies in the chat.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fsdy475GiTZNJSxdZmUgH%2Fbubble-design-light-button-states.png?alt=media" alt="A white button with a red border and red text in three states – default, hover and pressed. Top row: before the change, all three look the same. Bottom row: now, the fill turns light grey on hover and darker grey when pressed"><figcaption><p>A white button: before (top) and now (bottom)</p></figcaption></figure>

## Text tab

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-2f3bcc19c49475147d8a563950d8b4eb30abc6f6%2Fbubble-design-text.png?alt=media" alt="The Text tab with Font (Default, Google fonts Oxanium, size 14) and Labels with Bubble controls End and Restart, Typing input and Start conversation button"><figcaption><p>The Text tab</p></figcaption></figure>

* **Font** – **Default** offers Google fonts and a **Size** (8–28, default 14); **Custom** takes a **Font family** and a **Stylesheet URL** of your own font.
* **Labels** – rewrite the texts of the bubble, for example in your language: the bubble controls (**End**, **Restart**), the typing input placeholder, the start conversation button, the microphone permission request, error and reconnection messages, the **Conversation ended** message with its **Start new conversation** button, the text shown before a conversation starts, the inactivity reminder and the end of the conversation, and the AI disclaimer. Click the pencil next to a label to edit it.

The **No connection** texts are shown while the bubble reconnects after the network or the tab comes back. The **Conversation ended** texts are shown when a conversation can no longer be resumed – for example after a long break. **Start new conversation** starts a fresh conversation; the earlier messages stay visible.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2FU4T4InL9Dm14N4Dcijsb%2Fbubble-design-conversation-ended.png?alt=media" alt="The Text tab of Bubble design with the Conversation ended texts open for editing – Title, Description and Button label – and the preview showing Conversation ended with the Start new conversation button"><figcaption><p>The Conversation ended texts and their preview</p></figcaption></figure>
