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 Copilot with a query
window.CommandBar.openCopilot({ query?: string });
Method parameters
config
object
Configure how Copilot should open.
Property | Type | Description |
---|---|---|
query | string | Initial user message |