Overview

Elements

Main elements of a ChatBot.
  1. Container: The window that contains the entire ChatBot experience and all of its components.
  2. Header: A persistent region at the top of the ChatBot window that contains navigation, branding, and actions.
  3. Navigation: A menu that contains navigational options, including access to the conversation history.
  4. Options menu: Contains display options and other settings. More details can be found in the ChatBot variations section.
  5. Messages: Elements of the conversation between a ChatBot and user. More details can be found in the message guidelines.
  6. Attachments: Details about files that a user has uploaded to the ChatBot.
  7. Footer: A persistent region at the bottom of the ChatBot window that contains the message bar and the footnote.
  8. Footnote (optional): A persistent, short message that contains any legal disclaimers or important information about the ChatBot. Footnotes are optional, but strongly recommended. More details can be found in the footnote guidelines.
  9. Toggle: The button that allows users to open and close the ChatBot window. When the ChatBot is opened, the toggle should appear below the ChatBot window. The toggle shape and icon can be customized as needed, as shown in these ChatBot toggle examples. More details can be found in the guidelines for accessing a ChatBot.

Messages

A basic user message, bot message, and quick reply buttons.
  1. User message: Messages that the user has sent to the ChatBot.
  2. Bot message: Messages from the ChatBot, which are marked with an "AI" label to communicate the use of AI to users. You should choose a descriptive name for your ChatBot.
  3. Avatar: Representative image for your ChatBot and the user. ChatBot avatars should align with your product's brand and any existing brand standards.
  4. Name: Identifier for your ChatBot and the user. Choose a name for your ChatBot that users can easily identify as a bot.
  5. Timestamp: The relative or absolute time that a message was sent.
  6. Label: Labels ChatBot messages as "AI."
  7. Quick responses: Programmable, clickable actions that allow users to quickly answer questions from the ChatBot.
  8. Sources: Cards that link to documentation or other external resources. When multiple sources are included, users can paginate through the different options.
  9. Response actions: Actions that allow users to interact with a bot message. these typically include providing feedback, copying, sharing, or reading aloud, but custom message actions are also supported.

Message bar

To message the ChatBot, users can type directly into the message bar in the footer or click any included actions.

Elements of a message bar, including input actions.
  1. Attach button: Allows users to upload files from their computer.
  2. Use microphone button: Supports speech recognition to allow users to use voice input. This feature is currently only available in Chrome and Safari.
  3. Send button: Allows users to send a typed message. This button should be disabled until a user has input text.

When a user chooses to use speech input via the microphone button, the button will display an animation to indicate that the ChatBot is listening to the user (as shown in this speech recognition example).

Active listening button in the message bar.

When a bot is responding (or "streaming") to the user, a stop button will be displayed as the only action in the message bar. Selecting this button will halt the bot's message where it's at.

Stop button in the message bar.

Footnotes

The footnote provides a persistent space to display messaging about your product's Terms and Conditions, which focus on the rules of using the service, and Privacy Policy, which focuses on the handling of personal data.

Though footnotes are not required, they are highly recommended to ensure legal compliance, establish user trust, and clearly define the usage guidelines and data handling practices.

When users select the footnote, you can display a popover that provides more information than would fit in the footnote:

Selected footnote, with an informative popover.

Usage

When ChatBots are designed to meet the needs of your users, they can improve the overall UX of your product by offering convenient, efficient, and persistent support. When your ChatBot cannot find an answer for your users, you must provide them with a method to contact human support.

Before building a ChatBot, make sure that you have justified it as an appropriate solution by asking yourself these questions:

  • What are the users’ goals?
  • How in-depth is the assistance the user will need?
  • Does human assistance better serve your users?
  • How is a ChatBot superior to online documentation, contextual support or wizards?
  • What data sources or abilities can this ChatBot leverage to assist your users?

Do not create a ChatBot simply for the sake of novelty.

When to use a ChatBot

Use a ChatBot to offer your users on-demand help at any time, including:

  • Technical support and troubleshooting.
  • Product information and documentation.
  • Sales and product recommendations.
  • Training and onboarding.
  • System monitoring and alerts.
  • Community engagement.
  • Feedback collection and surveys.

When not to use a ChatBot

Do not use a ChatBot when:

  • A task could be accomplished more efficiently through the UI.
  • A process is very complex or could take a long time.
  • A real human is needed for sensitive or emotional topics.

Behavior

Accessing a ChatBot

Users can enter a conversation with a ChatBot by clicking on the toggle. Once the ChatBot window opens, the toggle will change to display an "angle down" icon to indicate that clicking the toggle again will minimize the ChatBot. Users can select the toggle at any point in their journey to open and close the ChatBot as needed.

2 toggles with open and closed icons.

When there is an unread message from the ChatBot, a notification badge should be placed on the toggle.

Toggle with notification badge.

Using the navigation menu

The ChatBot navigation menu primarily contains a users' conversation history with the ChatBot. Clicking the menu icon opens a side drawer in the ChatBot window.

By clicking into the navigation menu, users can search through previous conversations and perform additional actions, such as sharing a conversation with others.

Conversation history with an options menu opened on a previous conversation.

Attaching files

Using the attach button in the message bar, users can attach files to their message to share with the ChatBot.

The attach button can follow a couple of patterns, including:

  • Opening the file explorer for a user's operating system
  • Opening a menu with attachment options that are chosen by designers and developers
Menu with file attachment options.

When users attach a file to a message that they're drafting, it will be displayed in the ChatBot footer, above the message bar. This allows them to remove an attachment before sending if necessary:

Attachment in message bar, before a user has sent the message.

If a message attachment is successful, a label with the file details will be displayed in the message:

File attached to user message.

Users can select the file label to either preview or edit their attachment, as shown in these attachment examples.

If a message attachment fails, an error message should share the reason for failure:

Error alert for failed attachment.

Variations

Display modes

There are a few display modes that users can choose when interacting with a ChatBot.

Menu of display options.
  1. Overlay: The default display mode, which floats the ChatBot window on top of a product's UI. In overlay mode, the ChatBot can be opened and minimized with the toggle.
ChatBot in overlay mode.
  1. Docked: Anchors the ChatBot to the side of the page content. When docked, the ChatBot window is persistent, and cannot be toggled.
ChatBot in docked mode.
  1. Full screen: Fills the screen with the ChatBot window.
ChatBot in full-screen mode.
  1. Embedded: Places the ChatBot within a product as its own page. An embedded ChatBot could be displayed in the product's navigation menu.
ChatBot embedded in a product.

Placement

Your users will expect your ChatBot to be in a reliable, permanent location. Overlay displays are placed in the bottom right of the screen by default. If you're using a full screen or embedded ChatBot, stick to a consistent access location, like a button in the masthead or an item in the navigation menu.

Content considerations

For guidance on writing ChatBot content, refer to our conversation design guidelines.

Accessibility

Although accessibility has been integrated into the design of our ChatBot components, it is important to ensure that your implementation is inclusive of all users. For more guidance, refer to our accessibility guidelines.