Skip to main content

openCopilot(config?)

Open Copilot.

As Copilot and HelpHub live in the same widget, there is no closeCopilot method. Instead, you can use the closeHelpHub method to close the widget.

Example

window.CommandBar.openCopilot();

// Open with an initial user message
window.CommandBar.openCopilot({ query?: string });

Method parameters

config

object

Configure how Copilot should open.

PropertyTypeDescription
querystringInitial user message