Skip to main content

Minimal Template

auth is the only required option, plus at least one of copilotId, agentId or agentVersionId. See Authentication for how to mint the session.

Push

Automatically push your page content when the sidebar opens:
The element will receive margin-right (or margin-left for left position) matching the sidebar width.

All Config Options

All options for initSidenet():

Agent target: copilotId / agentId / agentVersionId

auth is always required. On top of it you must provide at least one of these three so the backend knows what to run — initSidenet() throws if all three are missing: You can combine them: pass copilotId for config/greeting loading alongside an agentId/agentVersionId to pin the agent. When you pass only agentId or agentVersionId (no copilotId), no copilot config is fetched, so greeting/suggestions fall back to defaults (or whatever you pass via sdkUi). All three travel in the /v1/chat request body.
agentVersionId is also updatable at runtime via updateSidenetConfig({ agentVersionId }) — pass null to clear the pin.

closeOnOutsideClick

Controls whether clicking outside the panel (or pressing Escape) dismisses the SDK. It’s a three-way string so the layout-aware default stays explicit and resettable at runtime: Settable at init and via updateSidenetConfig({ closeOnOutsideClick }) — pass 'auto' to return to the default behavior at runtime.