Appearance Configuration
Configuration options to customize the look and feel of the chat widget using the live preview panel include:1
General Settings
- Privacy Policy Link Add a configurable link to the agent’s privacy policy within the chat widget.
- Sounds Effects Toggle Enable or disable sound effects for agent responses and states.
- Reply Format Toggle Switch between real-time streaming responses and full responses delivered all at once.
- File Upload Toggle Enable or disable file uploads so the agent can receive and understand user-submitted files during chat.
- Agent Reasoning Toggle Enable or disable agent reasoning mode, allowing reasoning-based agents with streaming enabled to display real-time workflow highlights while the final response is being computed.
2
Chat Window
- Customize colors for the header background, header text, accents, and highlights. You can adjust the color using hex codes or the color picker.
- Set theme to Light, Dark, or Auto (match user’s system preference).
- Choose an avatar, using a custom image or letter.
3
Chat Button
- Choose between custom text, custom image, or both for the button.
- Adjust size and color of the button.
4
Fallback Message
- Define a custom message and icon that will appear if chat services are temporarily unavailable.
5
Domain Restriction
- Add the domain(s) where the agent will be hosted. A domain is typically the homepage of your website.
Agent Installation
To deploy your agent, navigate to the Installation tab. You will need to embed the provided code on every page where you want the chat widget to appear.- Website
You will be provided with a JavaScript code snippet to embed on your website. The script initializes the chat window using your unique agent channel ID.Example Snippet
Optional Parameters
You can pass optional parameters to further control the chat session. PassthreadId, userId and persistentThread next to channelId. Put welcomeMessage and onEventEmitted inside a config block.
string
A custom greeting shown when the chat widget loads.
UUID
A persistent or custom thread ID for the session. If not provided, a unique thread ID will be generated automatically. It must be a UUID; other values are rejected.Use a different thread ID for each agent. An agent’s conversation memory is stored by thread ID, so two agents given the same thread ID share one conversation. When you pass a
threadId, the widget hides its Reset Chat option.string
A unique identifier to tie the session to a specific user. If not provided, a unique user ID will be generated and stored in
localStorage.boolean
If
true, the thread ID will be stored in localStorage and persist across browser sessions. When false (default), it will be stored in sessionStorage and cleared when the tab is closed.The thread ID is stored separately for each channel, so several agents embedded on the same site keep separate conversations.function
Use this option to listen to the events emitted by the chatbot and do something with them (i.e. tracking analytics). When listening to chatbot events, you’ll receive an event object with the following structure:
Privacy and Consent
The Web Chat widget does not set cookies. It uses the browser’s local storage and session storage to keep the visitor and conversation identifiers. Include these entries in your privacy notice and consent (CMP) configuration.
Each message also sends the current page URL to Vivi.
Whether this storage needs consent depends on your deployment and jurisdiction. Confirm the classification with your privacy team.
Load the widget only after consent
Loadingchatbot.js writes nothing. initViviChatbot() creates the identifiers immediately, before the visitor opens the chat. If consent is required, gate both the script and the initialization:
- Set the consent state in your CMP first. In Google Tag Manager, use the Consent Initialization trigger for this.
- Load the script and call
initViviChatbot()only after your CMP’s consent event. A functional category, such asfunctionality_storage, is a common choice. You don’t need separate tags for the user ID or thread ID. - Initialize once per page. This includes returning visitors whose consent is already recorded.
- Remove any embed that loads the widget without the gate.
Verify
Test in a clean browser before consent, after rejection and after acceptance. In each state, check local storage, session storage, network requests and cookies.Best Practices
- Match your brand’s colors and logo on the web chat channel to ensure a cohesive experience.
- Set a clear and friendly initial greeting to guide users.
- Enable
persistentThreadto give returning users continuity in their conversations. The thread ID then stays inlocalStorageacross visits, so list it in your privacy notice.

