Web Chat Overview
This page introduces Web Chat interactions and interface customization to help you build a Web Chat service that matches your company's style
On this page: 1. What is Web Chat?|2. Build a Web Chat service that matches your brand|3. Message customization|Stop a response in progress|4. Diverse Q&A content|5. Conversation history and sharing|6. Choose whether to display tools and cited documents|7. Conversation permissions: a secure, controlled environment|8. Data collection (Pre-chat forms)|What to do if the connection fails|Review earlier messages while a response is being generated
1. What is Web Chat?
You can embed an Agent created in MaiAgent into your website to provide real-time customer support or other conversations. Web Chat features a responsive design that adapts seamlessly to desktops, tablets, and phones.
MaiAgent currently offers three embedding options:
1. Bottom-right widget
Embed it into your website as a built-in intelligent assistant
Keep it available whenever needed without interrupting browsing
Ideal for general customer support and inquiries

2. Full-screen embedding
Provide a complete conversation experience
Suitable for complex inquiries and service workflows
Customize the design to meet your company's needs

3. MaiGPT window embedding
A complete ChatGPT-style conversation interface (conversation history on the left and the main conversation area on the right) that can be embedded directly into a page as its primary UI
Display it permanently in a specified container, or expand it to full screen when the bottom-right floating button is clicked
Ideal as the main conversation interface for an AI portal, internal knowledge portal, or product

Window modes visitors can switch themselves
In addition to the default Floating window, the bottom-right widget can offer a Sidebar mode. The conversation window sits against the right edge of the page and fills its height, making it convenient to ask questions while browsing. When your website developer enables both modes in the embed code, desktop visitors see a Switch window mode button in the title bar. One click switches between the two modes; sidebar mode also has a Collapse button to temporarily hide it. The embed code also controls inline mode, which places the conversation directly in a section of the page, and a mode that hides the floating button. See Web Chat embedding and SDK: window modes in the technical guide.
This design provides:
Immediate responses: Visitors receive professional answers without waiting, improving the user experience
Convenience: The bottom-right floating widget stays available without interrupting browsing
Cost efficiency: The Agent provides 24/7 service, significantly reducing staffing costs
A professional image: Showcase your company's technology capabilities and service quality
2. Build a Web Chat service that matches your brand
MaiAgent lets you customize the logo, avatar, conversation theme colors, and more to build a Web Chat service that matches your company's style
You can
Choose the Agent's display name
Upload your company logo
Choose the Agent's display avatar
Choose the Web Chat theme color
Choose the background color for the Agent's reply messages
to create your own Web Chat appearance:


These options let you build a Web Chat service that reflects your company's brand colors and style
Web Chat displays the platform brand logo below the conversation input area. Brand images also retain consistent proportions on the login, registration, and loading screens, without being squashed or stretched.

Dark mode improvements
MaiAgent's Web Chat dark mode has been thoroughly optimized for a more comfortable viewing experience:
Dynamic color adjustments
Automatically adjust the brightness of theme colors to keep them visible against dark backgrounds
Adjust text contrast intelligently for optimal readability
Optimize icon and button colors to stand out in dark mode
Improved contrast
Carefully designed message bubble backgrounds reduce visual fatigue
High-contrast colors make links and important information easy to identify
Optimized input field and button borders improve usability
Seamless switching
Users can switch between light and dark modes at any time
Conversation content and interaction state are preserved when switching
The system remembers each user's theme preference
Dark mode is particularly suitable for:
Nighttime use or low-light environments
Long conversations with less eye strain
Dark color schemes that match your company's brand
3. Message customization
Customize your Agent's greeting for a visitor's first entry into Web Chat using scenarios such as those below. Greetings use fixed text rather than AI-generated content, so they do not display thumbs-up or thumbs-down feedback buttons and do not count toward user satisfaction in Usage Analytics.
1. Custom greetings
Branded greetings
Set a greeting such as “Welcome to our website! I'm your dedicated customer service assistant” to convey a professional image and a friendly service attitude
Guided introductions
Set a greeting such as “I can help you look up product information, answer usage questions, and assist with orders” to clearly explain the available services and build users' confidence in your support capabilities

2. Starter questions
Set “Conversation starters” as quick options
Users can click common questions directly without typing
Example questions:
“How do I view the items I've ordered?”
“How do I place an order?”
“Membership points policy”
“Business hours”
Users can start a conversation by clicking a starter question, speeding up the Q&A process:


Stop a response in progress
If you notice an error in your question after sending it, you do not need to wait for the Agent to finish the entire response. While a response is being generated, the send button on the right of the input field becomes a square Stop button. Click it to stop the response, then enter a corrected question.
For example, a customer service representative asks the Agent to plan an annual product launch, then realizes they forgot to specify the budget. They can click Stop while the Agent is generating its response, then ask again with the budget and attendee count, avoiding a wait for an unsuitable response to finish.
Stop a response
Stop with the keyboard: press Esc
On a computer, press Esc while the input field has focus to perform the same action as clicking Stop, without moving the mouse. Pressing Esc when no response is being generated has no effect, and any text you are typing remains in the input field.
Send more messages during a response: message queue
While the Agent is still responding, visitors on a computer can keep typing and press Enter to send. These messages are not sent to the Agent immediately. Instead, they appear in a list above the input field labeled “Will send in order after the response finishes (N messages)” and are automatically sent in sequence once the current response ends. During a response, the button to the right of the input field is Stop, so use Enter to queue a message. For queued messages:
Click a message to return it to the input field, edit it, and send it again
Click Remove on the right to cancel it
When the queue is full, a message says “You can queue up to N messages. Please wait for the response to finish”

To have the Agent handle a new question immediately, click Stop or press Esc first, then send it. Messages already in the queue are retained when you stop a response and are sent automatically once the interrupted response finishes wrapping up (within about 10 seconds).
For example, a visitor asks the Agent in the website's Web Chat for a detailed introduction to all platform features, then decides halfway through that they would prefer a bulleted list. They type “One more thing: please organize this as a bulleted list” and press Enter to queue it. They then press Esc to interrupt the lengthy response. The screen shows “Response interrupted,” and a moment later the queued message is sent automatically. The Agent then responds to this new message.
4. Diverse Q&A content
1. Multilingual support
Respond in the user's language to eliminate communication barriers.
Automatic detection: Select the Agent's response language based on the language of the user's input

Manual switching:
Select a language in the Web Chat interface. See Multilingual support: Web Chat language settings.
Specify the Agent's response language in the Web Chat initialization script (javascript). See Technical guide—Web Chat embedding and SDK (
localesetting).
Voice input and playback
When voice services are enabled for the Agent, visitors see three additional features in Web Chat:
Microphone icon on the left of the input field
Voice input: Click to start speaking. The screen shows “Listening,” and the recognized text is automatically sent as a message when you finish
Voice in the settings menu
Select the speech recognition language and provider: Microsoft Azure (Mandarin, Simplified Chinese, English, Japanese, Korean, Thai, Vietnamese, Indonesian, Malay, Filipino, Burmese, Khmer, Lao, Singapore English), Bronci (Taiwanese), or Built-in (Mandarin and English, using the browser's own speech recognition). Match the recognition language to the visitor's spoken language for accurate results
Voice playback in the settings menu
When enabled, the Agent's replies are read aloud automatically; when disabled, only text is displayed. Enabled by default
On desktop, the settings menu is the settings bar in the title bar. On mobile, it is the ⋮ in the upper-right corner.
2. Multimodal Q&A
In addition to text Q&A, the Agent supports uploads of various file types:
Spreadsheets: .xls, .xlsx, .csv, .ods
Word processing documents: .doc, .docx, .odt, .pdf, .md, .txt
Presentations: .ppt, .pptx, .odp
Web documents: .html, .htm
Data formats: .json, .jsonl
Audio files: .wav, .mp3, .m4a, .aac
Video files: .mp4
CAD pattern files: .dxf (Agent mode only, for Agents with Code Interpreter enabled; see Code Interpreter)
Image content processing
Image recognition and analysis
Uploaded image analysis: Users can upload product images for AI to identify and provide relevant information automatically
Screenshot processing: Analyze screenshots to help resolve usage issues
Image descriptions: Automatically generate descriptions of image content and related suggestions
Images in replies
Product images: Include actual product images in replies
Visual instructions: Provide step-by-step screenshots
Examples:
A user asks where to configure an Agent in MaiAgent, and the Agent replies with an image of the settings screen
A user shares a screenshot to confirm whether a path is correct, and the Agent interprets it and responds accurately


Document processing capabilities
Supported document formats
PDF documents: Automatically parse PDF content and answer related questions
Word documents: Process .doc/.docx documents
Excel spreadsheets: Analyze spreadsheet data and provide insights
PowerPoint presentations: Extract presentation content and answer questions
Email files: Process Outlook .msg and .eml emails, reading message information, body text, and attached documents

Document interactions
Content queries: Answer specific questions based on uploaded documents
Data analysis: Automatically analyze tabular data and present statistics in tables
Document summaries: Generate summaries of key information in long documents
Example 1: Ask the Agent to present information in a table and provide links to references


Example 2: Ask the Agent to analyze sales information and provide a tabular analysis

Example 3: Upload a docx file and ask the Agent to help analyze issues with CV writing

Files delivered by the Agent: When the Agent uses Code Interpreter to create files for a user, Web Chat displays file cards in the reply (file name, type, and download button). Click a card to preview the file directly. Files created by sub-Agents in Agent Teams appear in the same way.
5. Conversation history and sharing
1. Conversation history
To provide continuity of service, Web Chat automatically remembers users' conversation history so each conversation can build on previous ones.
What is remembered
Conversation content: Complete Q&A records, including text, images, and documents
Service status: Unfinished queries and pending issues
When “Show conversation history” is enabled (see Interaction settings), a Clock icon appears on the left of the title bar. Click it to open the conversation history sidebar:


Search conversations at the top of the sidebar
Open the search panel and enter keywords to filter conversations instantly; you can also click New conversation directly in the panel
New conversation at the top of the sidebar
Start a brand-new conversation
Edit conversations at the top of the sidebar
Visible only to logged-in visitors; select multiple conversations to delete them at once. See Delete multiple conversations at once below
Conversation list
Automatically grouped into Today / Yesterday / Previous 7 days / Previous 30 days / Earlier. Conversations that have used Conversation handoff are labeled “Handed off to” or “Continued from the original conversation”
⋯ for each conversation
Rename (change the title), Delete (delete after confirmation; cannot be undone). When conversation sharing is enabled for the platform, Share is also available. See Conversation sharing below
When conversation history is disabled, a New conversation icon replaces the clock icon. Visitors can only start new conversations and cannot see past records.
Delete multiple conversations at once
When login is enabled for the conversation platform (see Website: login settings), logged-in visitors can select several of their own conversations in the history sidebar and delete them at once. Visitors who are not logged in do not see this option; they can still use each conversation's ⋯ menu to delete conversations individually.
For example, an online store member has asked about order shipping, return documents, and invoice details in three customer support Web Chat conversations. Once all three issues are resolved, she wants to delete two conversations and keep only the order conversation for reference. She opens the history sidebar, clicks Edit conversations, selects the other two, clicks Delete, and confirms. Only the order conversation remains in the sidebar. One deleted conversation was open, so the screen also switches automatically to a new conversation.
Click the Clock icon on the left of the title bar to open the conversation history sidebar, then click the pencil icon Edit conversations to the left of New conversation. In edit mode, the button becomes a checkmark icon labeled Done, checkboxes appear before each conversation, and the ⋯ menus are temporarily hidden.
Click conversation rows to select those to delete. In edit mode, clicking a row only selects it; it does not open the conversation. You can also click Select all above the list to select conversations currently loaded in the sidebar, up to 100 at a time. Click again to deselect all. The top of the list shows “N selected.”

Click Delete. The confirmation dialog shows “Delete N conversations?” Check the count, then click Delete. If all deletions succeed, “Deleted N conversations” appears and edit mode closes.

If a deleted conversation is currently open, the screen automatically switches to a new conversation.
If some deletions fail (for example, a conversation was already deleted in another tab), “Deleted N conversations; M failed” appears. Successful deletions disappear from the list, while failed ones remain selected. The screen stays in edit mode so you can click Delete again to retry or Done to exit. If the entire batch could not be sent (for example, due to a network interruption), “Deletion failed. Please try again later” appears, and the list and selections remain unchanged.
To cancel deletion, click Done or close the sidebar. Edit mode closes and all selections are cleared.
Edit conversations does not appear when the sidebar has no conversations.

The conversation memory feature can be used for:
Ongoing consultation: A user asks, "Which tent model did you recommend last time?" and the AI immediately recalls it and answers
Progress tracking: A user says, "Let's continue with my last order inquiry," and the AI automatically retrieves the relevant information
Personalized service: Provide more accurate recommendations and suggestions based on conversation history
2. Conversation Sharing
After consulting an Agent, you may want to share the conversation with a friend or colleague, or an internal team may need to discuss a customer issue together. You can use MaiAgent to generate a conversation sharing link:

Click Share at the top right of the chat window, then click Copy link in the "Public link for sharing the conversation" window and send it to the recipient. In the history sidebar, ⋯ → Share on each conversation gives you the same kind of link.
What people who receive the link see
A read-only conversation page containing all messages in the conversation so far, including text, images, and attachments
No login is required to open it, so share it only with the people who should see it
View only: you cannot type on this page. To keep asking questions, return to the original Web Chat and open the conversation
Conversation sharing can be used for:
Customer sharing: "This camping gear recommendation is great, I'm sharing it with my hiking club"
Internal collaboration: Support staff share a complex issue with the technical support team
Training: Share typical conversation examples as employee training material
3. Conversation Timeout Management
To ensure conversation quality and system performance, Web Chat includes a smart conversation timeout management mechanism:
Smart filtering
Automatic greeting filtering: The system recognizes and filters opening greetings so they are not counted toward the conversation timeout
Correct message count reset: When a conversation restarts, the message counter is reset correctly
Optimized timeout detection: Timeouts are calculated only for substantive conversation content, providing more accurate conversation management
Conversation continuity
Ensures users are not timed out unexpectedly during a normal conversation
Users can continue the conversation after thinking or pausing for a long time
The system intelligently determines whether the conversation is still in progress
How it works
Start the conversation: The user sends a greeting (such as "Hello"), which the system does not count toward the timeout
Enter the conversation: The user begins asking substantive questions, and the timeout timer starts
Pause the conversation: If the user steps away temporarily, the system keeps the conversation state
Resume: The user returns to continue the conversation, and the message count updates correctly
This improvement makes the conversation experience smoother and more natural, so users do not need to worry about the conversation being interrupted because they took too long to think.
4. Message Actions: Edit, Feedback, and Branch
Action icons appear when you hover over a message. They work the same way as in MaiGPT; for the full description, see MaiGPT: Message Actions. The difference in Web Chat is which visitors can see them:
Copy, Like, and Dislike on AI replies
All visitors
Dislike opens the "Provide feedback" window, where you select reasons, add other feedback, and submit. Feedback goes to the back-end Conversation Viewer and to the satisfaction statistics in Usage Analytics
Edit message and version switcher ‹ N / M › on your own messages
Logged-in visitors (the platform has login enabled)
Editing deletes the conversation that follows and has the Agent reply again; you cannot submit if the content has not changed
Branch conversation on AI replies
Logged-in visitors
Starts a separate conversation up to this reply, leaving the original conversation unaffected
5. Connected Services
When an Agent needs to access an external service on a visitor's behalf (for example, checking a calendar with the visitor's own account), it sends an authorization card in the conversation. Services the visitor has authorized can be viewed, re-authorized, or disconnected in one place from Connected services (the link icon) in the title bar. Only identified visitors (those who filled out the Pre-chat form, are logged in, or have an identity supplied by the website through a Source ID) can see this button, and the chat platform's Show connected services setting must be enabled (it is off by default for newly created platforms). For the full description, see Connected Services.
6. Choose Whether to Show the Tools Used and the Citation List
1. Show the Tools Used List
You can choose whether to let users see the list of tools the Agent used while reasoning. If allowed, the following appears while the Agent generates a reply:

You can use this list to check whether the tool content the Agent used is correct.
If an MCP tool called by the Agent comes with an interactive interface, a card you can operate directly also appears below the reply. See MCP Interactive Cards (MCP Apps).
2. Show the Citation List
Every AI answer automatically generates a citation list that clearly shows the sources of the information, improving the credibility and traceability of the answer.
Display settings
Enterprises can decide whether to let users see the cited tools and the names of reference documents. If display is enabled, the following list appears at the bottom of the Agent's response. Click a "citation node" to see the referenced document excerpt:

Depending on the use case, you can choose whether to make citation information public:
Public customer service: Show all citation information to build trust
Internal support: Hide sensitive documents to protect confidential information
Educational institutions: Show learning resources so students can look them up easily
Side Panels Next to Replies: Canvas and Browser
An Agent's reply is not always just text. When it produces a document, chart, web page, or map, the desktop version opens a panel on the right side of the conversation, while the mobile version covers the whole conversation screen. You can close the panel, a card for that output stays in the message, and you can click the card later to reopen it. This section describes the three panels visitors may see.
Canvas
When the Agent produces a Markdown document, Mermaid diagram, HTML, or React interactive page as a canvas, the canvas opens automatically. The toolbar at the top of the panel:
Switch to code / Switch to preview
Switch between the rendered view and the raw content
Console, Reset code
Available only for React interactive pages: view execution messages, and restore the code to the version the Agent originally produced
Full screen / Exit full screen
Enlarge the canvas to fill the whole window
Download
Download source file (.md, .mmd, .html, or .jsx depending on the type) or Download PDF; while the content is still compiling, "Available after compilation completes" is shown
Close
Collapse the panel; the canvas card in the message can still be reopened
On desktop, you can drag the left edge of the panel to adjust its width. The purpose of the canvas, suitable prompts, and export details are the same as in MaiGPT; see Canvas.
Map Canvas
When an Agent answers questions about places or itineraries (for example, restaurant recommendations or a three-day, two-night trip), it may use a map canvas instead: Google Maps with place markers on the left, and a list of place cards on the right (below the map on mobile).
Filter: The Filter dropdown filters by Category (restaurants, cafés, lodging, attractions, shopping, nature, transportation, other), Conditions (Open now only, 4.5★ and above), and Display (rating badges, name labels). When no place matches, "No places match the filter criteria" is shown.
Multi-day itineraries: When an itinerary is split into days, an All / Day N switcher appears at the top left of the map, and the list is grouped into morning, afternoon, evening, and unscheduled.
Place details: Click a place card to open its details, which have two tabs: Overview (place description, address, website, phone number, business hours, and Open / Closed) and Reviews. At the bottom are Directions, Call, Open website, and Open in Google Maps. Detailed information comes from Google; if it cannot be loaded, "Unable to retrieve details" is shown.
In the map canvas, Switch to code shows the raw place data, and Download source file saves it as a .json file.
Browser Panel
When an Agent has the Browser Tool enabled and starts operating a web page, a Browser panel appears on the right, showing in real time a screenshot of the page the Agent sees and the current URL. While the Agent is acting, AI is operating is displayed; when there is no image yet, "Waiting for browser display…" is shown.
Visitors can step in when the Agent stops, for example to enter a verification code, an account and password, or choose an option on the Agent's behalf:
Click, double-click, right-click, or scroll directly on the screenshot, and the action is sent to the web page the Agent is operating.
The input box at the bottom of the panel, Type here and press Enter to send to the browser: type text and press Enter to send it. When the input box is empty, keys such as Enter, Esc, or the arrow keys are also sent directly to the web page. The input box is temporarily disabled while the Agent is operating.
After you click Close at the top right to collapse the panel, Reopen browser view appears above the input box; click it to view the browser again.
7. Conversation Access Control - A Secure and Controllable Conversation Environment
1. Login Settings
Mandatory login
To keep conversation content secure and controllable, enterprises can enable the login feature so that users must log in before using the Agent service. Once configured, visitors who open Web Chat first land on a login page, and only users who log in successfully can start a conversation with the Agent.
Security benefits
Identity verification: Ensures every user in a conversation has a clear identity
Access control: Provides service content that matches the user's identity
Conversation tracking: Fully records each user's conversation history
Data protection: Prevents unauthorized users from accessing sensitive information
2. Three Login Methods
AD (Active Directory) login
Suitable for: Internal employees, integrating with an existing AD system
Features: Single sign-on (SSO) with no extra account management
Setup: Configure the AD server connection information and synchronization rules
In practice: Employees log in directly with their company accounts and automatically receive the corresponding permissions
Keycloak login
Suitable for: Enterprises that need complex identity management and support for multiple identity providers
Features: Supports standard protocols such as OAuth2, SAML, and OpenID Connect
Setup: Configure the Keycloak server, user pool, and identity providers
In practice: Integrate user identities across multiple systems and manage permissions centrally
Extension: Lets the Agent reuse the visitor's Keycloak login identity when calling MCP/API tools; see Reusing the Keycloak Login Identity to Call Tools
MaiAgent login
Suitable for: Simple user management needs and quick deployment
Features: Built-in user management system that is simple and intuitive to operate
Setup: Create user accounts and permissions on the MaiAgent platform
In practice: Create a dedicated login system for a specific group of users
Visitor self-registration: The login page has Sign up now and Forgot password?. The registration form is the same as the account application in the MaiAgent back end (real name, company name, company email, password, invitation code) and creates a MaiAgent platform account that can go straight back to the login page to log in to Web Chat. This account does not become a member of your organization and gets no back-end permissions. The page is protected by human verification; see Other prompts visitors may see below.
Once enabled, the following screen appears before the conversation starts and asks the visitor to log in:

3. Reusing the Keycloak Login Identity to Call Tools
After a visitor logs in to Web Chat with Keycloak, when the Agent calls an MCP tool or API tool on their behalf, it can automatically include the visitor's own Keycloak login credential. Your back-end system can then use the same Keycloak to verify "who this is" and return only the data that person is allowed to see, without setting up a separate account for each tool or asking the visitor to log in again.
This feature is off by default; when it is off, all tools are called exactly as before.
Use Case
A company's internal service portal manages employee accounts with Keycloak and uses Web Chat as an Agent for employees only. The IT administrator enables this feature on the chat platform and adds the company's leave management system host to the allowlist. After an employee logs in to Web Chat and asks, "How many days of annual leave do I have left?", the Agent calls the leave system's API tool with that employee's own login credential in the request. The leave system identifies the person from the credential and returns only that employee's attendance data. When a different employee asks, they receive their own data.
Before You Begin
The organization has completed Keycloak integration. Visitors must be members of this organization; when they first log in through the Keycloak configured for this organization, the system automatically creates an account and adds them to the organization (see Third-party login: First login).
On the chat platform, "Login settings" has "Enable login" turned on, and "Login source" is set to Keycloak.
The MCP/API tool that should receive the credential has been created and assigned to the Agent used by this chat platform, and the receiving system can verify credentials issued by your Keycloak Realm.
Setup Steps
Location: In the left menu, go to "Customer Service > Chat Platforms", select a website-type chat platform, and open the "Login settings" tab. After you set the login source to Keycloak, this section appears below.
Turn on "Reuse Keycloak login identity to call tools".
Read the red warning below the switch, "The visitor's own login credential will be forwarded to the following hosts", and make sure you understand where the credential goes.
In "Tool hosts allowed to receive the credential", enter the tool hosts that should receive the credential, one per line (commas also work as separators):
Enter only the host name, without
https://, a port, or a path, for examplemcp.example.com.*.example.commatchesexample.comitself and all of its subdomains; a host name without*.matches only that exact host.Host names are matched against the tool's "MCP server URL" or "API URL".
Save the settings.

To turn the switch on, the list must contain at least one host. If the list is empty or contains an invalid host name, the screen shows "Enter at least one tool host allowed to receive the credential before turning this on" or "The following are not valid host names", and the settings are not submitted.
What the Receiving System Gets
When the Agent calls an MCP/API tool on a host in the list, the request carries an additional HTTP header:
This is a standard access token issued to that visitor by your Keycloak Realm. The engineer in charge of the integration can identify the user in the usual way of validating a Keycloak token (verify the signature, and check the expiration time and the Realm). When the credential has expired, the platform first renews it with the same Keycloak using the visitor's login session and then sends the request, so the tool side does not need to handle renewal.
When the Credential Is and Is Not Included
The visitor logged in with Keycloak, is still logged in, and the tool host is in the list
The visitor's own credential is included
The tool host is not in the list
The tool is called as usual, without the credential
The tool already has its own Authorization configured (OAuth, an API tool's headers, contact MCP credentials, etc.)
Not overwritten; the tool's original authentication method is kept
The visitor has logged out, or is not a member of this organization
The credential is not included
The visitor enters the conversation through Source ID login-free access
The credential is not included; identity is based on the organization member bound when the conversation was created, and the Source ID supplied by the embedding side is not used
The switch is off
Same as when this feature is not enabled
8. Data Collection (Pre-chat Form)
When data collection is enabled, visitors first see a form before starting a conversation and must fill it out to enter the conversation. What they fill in is written to that visitor's contact, so support staff can see it directly on the conversation page. It suits scenarios where you need to know who the person is first, for example a dealer service that collects the company name and tax ID number, or an event inquiry that collects the name and email.
1. Set Up the Data Collection Form
Path: Customer Service → Chat Platforms → select the Web Chat platform → Data Collection tab.

Set the Title and Subtitle (Optional)
Form title: Shown at the top of the form. If left blank, the system default text "A few quick questions before we start" is used.
Form subtitle: The description text of the form; you can use
{name}to insert the chat platform name. If left blank, the default text "Leave your details so {name} can offer you more personalized service" is used.
Both support multiple languages; switch the language tabs to fill them in separately.
Add Fields
Click Add field. Each field has the following settings:
Field type
Four types: text, Email, phone, and dropdown
Field label
The field name visitors see; can be filled in separately for each language
Placeholder
The gray hint text inside the field
Required
When checked, visitors cannot submit without filling it in
Map to Contact field
Decides where the data is written on the contact: Name (Contact.name), Email (Contact.email), Phone (Contact.phoneNumber), or Custom field (Metadata)
The dropdown type also has an Options list, and you can check Allow "Other" custom input so that visitors who select "Other" can type their own content.

Fields can be reordered by dragging, and a form can have up to 10 fields. The preview area on the right shows the form's appearance in real time, and you can switch the Preview language to check each language version.
2. Visitor Flow
When a visitor opens the Web Chat, they first see the form screen: the title, subtitle, the fields you set up, and a language switcher at the top right. After filling it in, they click Start conversation to enter the conversation.


If a required field is empty, or the Email or phone format is incorrect, an error appears below the field and the form cannot be submitted.
Once a visitor has filled in the form in a browser, they are not asked again when they reopen the same Web Chat in that browser.
To correct their details, visitors can open the ⋮ menu at the top right of the Web Chat and select Refill details; the form appears again.

3. With Login: Map Data to the Login Account
If the same Web Chat has both Login and data collection enabled, the flow is: Log in → Fill in the form → Start conversation. The data the user enters is attached to their login account, not to the browser.



The account is used for the first time and has not filled in the form
The form appears after login; submitting it creates a contact linked to that account
The same account logs in on another device or browser
The form no longer appears; the conversation starts directly with the account's existing data
This device previously filled in the form while not logged in, and the account itself has no data yet
A "Is this your information?" confirmation screen appears (see the description below)
The account already has data, and this device also has data entered while not logged in
The account's data takes precedence; the user is not asked and the data is not merged
A logged-in user selects Refill details
The existing contact on the account is updated; no additional contact is created
Confirmation screen: Is this your information?
When someone previously filled in the form on this device without logging in, and the currently logged-in account has no data yet, the form does not appear directly after login. Instead, a confirmation screen appears first. It lists what was previously entered on this device (partially masked) and offers two buttons:
Yes, it's mine: Attaches that data to the current account. The same account no longer needs to fill in the form on any device.
No: Does not merge; the original data is left as it is, and the form then appears for the user to fill in once themselves.

Once in the conversation, both the Agent and the customer service back office see the contact linked to this account:


4. View Collected Data in the Back Office
View in a conversation: Customer service conversations → All conversations → open a conversation. The Contact information section on the right lists the items received from the form. Fields mapped to Email and phone are shown as "Email" and "Phone number", and custom fields are shown with the field label you set.

View on the Contacts page: Customer service conversations → Contacts → open a contact. The Basic information tab shows the name and phone, and the Custom attributes tab shows the other form fields.


Data entered by a logged-in user is linked to their account and is no longer an ownerless anonymous contact. The contact name depends on the form settings: if a name field is mapped to "Name (Contact.name)", the name entered in the form is shown; if there is no name field, the login account's name is shown.
Other Prompts Visitors May See
The following prompts appear occasionally during conversations but need no administrator configuration. They are collected here to help you answer visitors' questions:
Human verification box on the login, sign-up, and password reset pages; "Too many requests. Please try again later."
A Web Chat with login enabled adds Cloudflare Turnstile verification to these three pages; sending too many requests in a short time (for example, opening new conversations or sending messages repeatedly) is blocked by rate limiting
Wait for the verification box to be checked before submitting; if rate-limited, wait a moment and try again
Bottom panel "Install {App name} App"
When a standalone full-screen page is opened in a mobile browser, the Web Chat can be added to the home screen and used like an app. Android shows Install now; Safari on iPhone shows the "Add to Home Screen" steps, and other iPhone browsers suggest switching to Safari
If you don't want to install it, select Remind me later; it will not appear again for a day. It is not shown when already opened as an installed app
"Content too long (N characters), shown as plain text" + Show full content
When a single reply exceeds 50,000 characters (or a single line exceeds 2,000 characters), Markdown formatting is no longer applied and the first 2,000 characters are shown
Select Show full content to expand, and Collapse to collapse again
"Content too large (N characters), showing only the beginning"
The JSON data returned by a tool is too large
This only truncates the display; the Agent has already received the full data
"Earlier long messages have been partially omitted (about N characters), the assistant may not have seen the full content"
In a very long conversation, the system omits earlier long messages to keep the context length under control
Paste the relevant passage again when you need the Agent to refer to it; you can also use Conversation handoff to start a new conversation
Small label next to a reply: "This reply was produced by team member “{name}”"
The Agent belongs to an Agent team, and this reply was answered by one of the team's member Agents
No action needed
"Delegating to / Handing off to / Switching to {Agent}", sub-agent task card
In multi-Agent collaboration, the main Agent hands a task to a sub-agent
The card shows in progress / completed; just wait for it to finish
"Locating...", "Unable to get your location. Please enable location permission in settings", "Location obtained successfully"
An administrator enabled Location information, and the browser asks for location permission
Allow location access before sending; if denied, the Agent still answers, just without location information
"Connect {service}" authorization card
The Agent needs to access an external service with the visitor's own account
Video generation card (Queued / Generating / Estimated 60–90 seconds)
The Agent uses the video generation tool
Just wait for it to finish; see AI Video Generation for details
What to Do If the Connection Fails
For example, a website administrator receives a report from a visitor that the Web Chat shows a connection failure when opened. The visitor should first wait for the system to retry automatically; if the error screen still appears, they should capture the full screen, including the failed stage, the error category, and the time of occurrence, and give it to the administrator so the administrator can diagnose the problem faster.
If the network is interrupted while the Web Chat is loading the Agent settings, it retries automatically first, and the screen stays in a loading state during this time. If it still cannot connect after retrying, the error screen shows:
The loading stage that failed
The error category, together with the HTTP status code when there is one
The local time when the error occurred

If the system has already received an HTTP error status code, the server has responded; in that case no automatic retry is made, and the diagnostic error screen is shown directly.
Review Earlier Messages While a Response Is Being Generated
While the Agent is still generating a reply, visitors can scroll up to review earlier messages. The reply continues to be generated below, but the screen stays where the visitor scrolled and is not pulled away by newly appearing text. Once they move away from the latest progress, Back to latest appears above the input box.
Usage Scenario
A visitor asks the Agent to compare several options at once. Before the answer is finished, she wants to go back and check the price of the first option, so she scrolls up. The screen stays in place and does not jump away as more text keeps appearing. After checking, she selects Back to latest, the screen returns to the position of the last question, and she continues reading the rest of the comparison.
How to Use
Last updated
Was this helpful?

