Want to try single-session mode and other session behaviors in one click? Open the Playground and flip the toggles live.
How a conversation flows
Whether the AI keeps the conversation, resolves it, or hands it to a person depends on your support setup and escalation rules. For the policy side, see Human Handoff.
What counts as a session
A session is one conversation thread inside the widget. Visitors can have open and resolved sessions, and the widget can show a list of earlier conversations when that fits your setup.New conversation
New conversation
A new session starts when the visitor opens a new thread and sends a message.
Returning conversation
Returning conversation
Returning visitors can reopen existing threads instead of starting from scratch, as long as the widget can still identify them.
Resolved conversation
Resolved conversation
Resolved sessions remain part of the visitor’s history, but they are no longer active chat threads.
How returning history works
History access depends on how you identify the visitor:Anonymous
Anonymous
Best for low-friction support. History stays tied to the same browser session.
Non-verified
Non-verified
Good for personalization, but not strong identity across devices.
Verified
Verified
Best when signed-in customers should keep conversation history across devices.
Verified and non-verified conversation histories are treated differently. If a user sometimes loads the widget with a verified identity and sometimes without one, the history experience will not be the same across those cases.
Unread replies
Widget 5.4.0 and later show a dot on the launcher and mark unread sessions in the list when the backend reports replies the visitor has not looked at. Choose the launcher display in the widget options:unreadIndicator: false hides the built-in launcher and list marks while leaving hooks.onUnreadCountChange(count) and the custom widgetTrigger callback’s unreadCount available. Use those values for your own badge. A custom headless shell must also report transcript visibility; displaying a count alone does not mark sessions as read.
Deleted replies
From Widget 5.4.4, when a teammate deletes one of their own web replies in the OpenCX inbox, an open visitor chat removes it as session history refreshes. The visitor does not need to reload. This requires a backend that omits the deleted reply from widget history; earlier widget versions can leave it visible until reload. Pending visitor messages, replies still streaming, and local error messages remain visible. If another reply quoted the deleted message, that quote is removed too.Session rules that affect the visitor experience
These configuration choices change what visitors can do:Only allow one open conversation
Only allow one open conversation
Default: Visitors can have multiple open conversations.What changes: hides the new-conversation option while an open thread already exists.Choose this when: You want visitors to stay focused on one active issue at a time.
Skip the sessions screen
Skip the sessions screen
Default: The widget can show a sessions list before entering chat.What changes: removes the sessions browser and lands the visitor directly in the chat experience.Choose this when: You want the widget to feel like a single-thread support chat instead of a small inbox.
Go straight to chat when there is no history
Go straight to chat when there is no history
Default: First-time visitors may pass through the sessions logic before entering chat.What changes: takes first-time visitors directly into the chat flow when there is nothing to resume.Choose this when: You want less friction for brand-new visitors.
Resolve from the widget header
Resolve from the widget header
Default: Visitors continue using the conversation until your flow or team closes it.What changes: Adding the header button gives the visitor a direct way to close the conversation from the widget itself.Choose this when: You want visitors to explicitly mark an issue as done.
What handoff looks like in the widget
When the AI , the conversation stays in the same thread. Your visitor does not need to start over somewhere else.1
The AI stops owning the conversation
The thread stays open, but the AI is no longer the active responder for that issue.
2
A human agent continues in the same thread
Your visitor keeps talking in the same conversation instead of being pushed into a separate support flow.
3
Your team keeps the conversation context
The full conversation remains available to your team so the visitor does not have to repeat everything.
4
Keep custom UI aligned with session state
The widget has no
onHandoff configuration callback. In a headless integration, read useSessions().sessionState.session for the current session state. hooks.onMessageReceived reports a newly delivered message; it is not an immediate transfer event and must not drive transfer redirects or confirmations.Need the decision rules behind handoff? See Human Handoff for when the AI escalates, what triggers a human takeover, and how that policy works across channels.
Home screen
Available from Widget 5.9.0. The home screen adds two tabs to the widget, so visitors can find an answer before they start a session:- Articles: a search box, your help center’s popular searches and articles, and its topics. A topic opens its subtopics and articles inside the widget, 10 articles at a time with Show more for the rest. Search matches articles by meaning and starts once the visitor has typed six characters (a popular search runs at any length); results come 10 at a time with Show more. Links in an article to other articles of the help center open inside the widget. Articles read inside the widget and end with up to three suggested articles, other articles from the same topic first, then popular articles. The Articles and Chat tabs stay at the bottom of every Articles screen; tap Articles to return to its start. From Widget 5.9.1, switching to Chat and back returns to the topic, article or search the visitor left.
- Chat: the visitor’s sessions, open ones first, and a button to start a new one. An unread reply shows a dot on the tab.
- If the Help Center’s original design is Default, the Articles tab uses the popular searches and articles you curate for the visitor’s language. An empty article list falls back to the first five published articles. An empty search list shows no search chips. With a branded original design, the tab shows the first five published articles and no search chips, including after you publish a Studio design. Help Center page rankings
- Articles are shown in the widget’s
languagewhen the help center publishes it, and in the help center’s primary language otherwise. - Visitors with no sessions stay on the tab they opened instead of going straight to a new chat.
- Back from a chat returns to the tab the visitor came from. A chat fills the widget without the tabs.
- Organizations that collect a name and email show that form first, then the home screen.
- The home screen is not shown with
router.chatScreenOnlyor in Companion mode.
home option. Change the greeting with textContent.homeScreen.
Restore an open session after reload
Setrouter.restoreLastSession: true to reopen the last selected session when it is still open. The default is false. The standard widget uses its browser storage; a headless provider needs a storage adapter to persist the pointer. Closing the session or starting a new one clears the saved active-session pointer.
JWT renewal for the same owner preserves the current session. Switching the signed user or account clears the active state before loading the new owner’s history. See identity renewal.
Feedback and resolution
With Widget 5.4.1 and a compatible backend, completed streamed replies can trigger the same helpfulness prompt as polling replies. It resets when a new send is accepted; stopped, failed, disconnected, or superseded replies do not trigger it. For custom UI, readlastAIResMightSolveUserIssue.
Two common feedback patterns are available:
controls the built-in prompt that asks whether the latest AI answer solved the issue. Use it when you want a lightweight “resolved vs still need help” check before the conversation moves on.
Helpful or need more help prompt
Helpful or need more help prompt
Use
thisWasHelpfulOrNot when you want the widget to ask whether the latest AI answer solved the issue.CSAT
CSAT
The widget can show when your workflow requests it, and headless builds can control the experience with the CSAT hooks.
Related Documentation
Authentication
Choose the identity model that controls history access.
Configuration
Session rules, routing, prompts, and resolution controls.
Handoff Settings
Configure when the AI should escalate to a person.
Troubleshooting
Missing history, repeated prompts, and handoff confusion.