Skip to main content

Register client-side callbacks

Use client-side callbacks for operations that belong to the current page, such as navigation or updating in-memory application state.
The callback must also have a reviewed, published governance envelope in Dubot and be reachable through a Skill capability attached to the wizard. The action detail shows whether the callback has been observed from the SDK. Registration supplies the schema and unlocks publishing; an unregistered callback remains unavailable at runtime.
A client-side callback waiting to be registered from the SDK before it can be published

Publishing stays unavailable until the host registers the callback and its input schema appears in Dubot.

Replace callbacks when page state changes

setActions() uses full-set replacement semantics. Pass every callback that should be available after the call.
A callback omitted from the new set becomes unavailable to the assistant on the next turn.

Execute Session API actions

The customer-owned Session API executor is currently delivered and reviewed during integration; it is not yet a stable self-service public API. Confirm its request and registry contract with Dubot before implementing the first authenticated operation.
Session API actions are authored in Dubot with a method, endpoint, input schema, response mask, risk, and execution policy. The runtime boundary is deliberate:
The SDK bundle does not receive an arbitrary destination from the model and should not own the customer application’s credentials. Dubot provides the first-party executor pattern during integration so the customer’s engineering team can review and ship it with the application.

Confirmation and outcomes

Every action has an auto or confirm execution policy.
  • Chat-originated confirms render in the wizard.
  • End-user MCP confirms render in the page action toast.
  • A decline returns a declined outcome without invoking the operation.
  • Errors return a bounded failure result and appear in action activity.
  • Response masks limit which returned fields reach the assistant.

Resource Center callbacks are separate

A static Resource Center card can run a host callback without advertising that callback as an assistant tool:
resourceCenterCallbacks and actions are intentionally separate registries.