You will need:
- A published bot
- Familiarity with CSS (if you want to use custom styles)
- Open your Botpress workspace.
- Select the bot you want to configure, then go to Webchat.
Bot identity
This section lets you configure general information about your bot:- Your bot’s avatar (defaults to the first letter of your bot’s name)
- Your bot’s display name (defaults to
Bot) - Your bot’s description (optional)
- A placeholder for your bot’s composer (defaults to
Type your message...) - A custom footer for your bot (requires a Plus plan)
- A custom avatar for the Floating Action Button (FAB)
Contact
You can also configure optional contact information for your bot:- Email address
- Phone number
- Website
- Terms of service
- Privacy policy
Bot appearance
This section contains styling options for Webchat:- Primary colour (defaults to
#3276EA). Choose a recommended colour, or use the colour picker to specify a hex code. - Font (defaults to Inter). Use the search bar to choose any available Google Font.
- Theme mode (defaults to Light)
- Header style (defaults to Glass)
- Message styling (defaults to Solid)
- Corner radius (defaults to fully rounded)
Use custom styles
If you want to customize your bot’s appearance further, you can modify the built-in CSS classes in the Styles section. Here’s a list of all CSS classes available:CSS Classes
CSS Classes
Position Webchat on the left
By default, the Webchat FAB and the chat window appear on the right side of the screen. You can move them to the left by overriding the default CSS. Add the following CSS to your website’s stylesheet:20px value as needed.
Deploy settings
This section lets you configure your bot’s deployment settings:- Chat interface: Choose whether you want to use a toggle for the chat’s visibility or embed it in a specific element
- Where to show chat: Enter the HTML ID of the container where the chat should appear (if Chat interface is set to Embedded)
- Chat launcher: Choose how you want to toggle Webchat (using the default chat bubble or a custom element). Available if Chat interface is set to Toggle
- Button image: Choose a custom image for the chat bubble (if Chat launcher is set to Chat bubble)
- Element selector: Enter the HTML ID of the button or element that launches the chat (if Chat launcher is set to Custom element).
Proactive message bubble
This section lets you configure and preview a proactive message bubble for Webchat. You can:- Set a proactive message
- Set a trigger type
- Set a delay time
Features
This section lets you configure optional features for your bot:- Message feedback: Enable/disable message feedback. When enabled, you can view feedback data in the Analytics menu
- Allow file upload: Enable/disable user file upload
- Message notification sound: Enable sound notifications for new messages. This requires Webchat v3.3+
- Conversation history: Allow users to view and continue previous conversations. This requires Webchat v3.6+
- Chat history reset: Choose whether users can continue conversations after the tab closes (local storage) or not (local storage)
Session storage vs. Local storageSession storage creates a new user and conversation each time the page is re-opened. Local storage keeps them for your next visits.You can learn more about local and session storage here.
Advanced settings
You can also access the following advanced settings:Client ID
The client ID is used to identify your bot’s Webchat instance. You can use it when building with our Webchat React library.Allowed origins
The Allowed Origins setting lets you manage which domains are allowed to access Webchat. By default, this is set to All Origins. To restrict the allowed origins:1
Select Whitelist.
2
Select + Add Origin.
3
Type the domain you want to allow, then select Publish Changes.