Text to place in the chat input.
AI Assistant
launchAiAssistant
Section titled “launchAiAssistant”Shows the AI Assistant launcher on the page.
type launchAiAssistant = () => voidwindow.userGuiding.launchAiAssistant()expandAiAssistant
Section titled “expandAiAssistant”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 }) => booleanoptions.messagereturnstrue 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()window.userGuiding.expandAiAssistant({ message: 'How do I export my invoices?',})const opened = window.userGuiding.expandAiAssistant({ message: 'How do I export my invoices?',})
if (!opened) { window.open('https://help.example.com', '_blank')}collapseAiAssistant
Section titled “collapseAiAssistant”Minimizes the open chat window back to the launcher.
type collapseAiAssistant = () => voidwindow.userGuiding.collapseAiAssistant()hideAiAssistant
Section titled “hideAiAssistant”Removes the AI Assistant, including its launcher, from the page.
type hideAiAssistant = () => voidwindow.userGuiding.hideAiAssistant()Related callbacks
Section titled “Related callbacks”Use the AI Assistant callbacks to log conversations, messages and fallbacks in your own analytics.