Skip to content

AI Assistant

Shows the AI Assistant launcher on the page.

type launchAiAssistant = () => void
window.userGuiding.launchAiAssistant()

Opens the AI Assistant chat window. You can pass a message to pre-fill the input. The widget then opens on a new chat with your text in the input box. The message is not sent automatically, so the user can review it first.

type expandAiAssistant = (options?: { message?: string }) => boolean
options.messagestring

Text to place in the chat input.

returnsboolean

true when the chat opens. false when it cannot open because the user is not identified, no AI Assistant is active for the user, or the usage limit has been reached.

window.userGuiding.expandAiAssistant()

Minimizes the open chat window back to the launcher.

type collapseAiAssistant = () => void
window.userGuiding.collapseAiAssistant()

Removes the AI Assistant, including its launcher, from the page.

type hideAiAssistant = () => void
window.userGuiding.hideAiAssistant()

Use the AI Assistant callbacks to log conversations, messages and fallbacks in your own analytics.