This covers the HITL integration and plugin, which works with Botpress’s built-in HITL dashboard and external helpdesk platforms (Zendesk, Intercom, etc.). This is separate from Botpress Desk.
Add HITL to your agent
Add both the integration and the plugin toagent.config.ts. The plugin’s dependencies block points at the integration by alias:
integrationAlias must match a key in dependencies.integrations. The ADK validates this at build time, so a typo here fails fast. integrationInterfaceAlias tells the plugin which interface entity the integration implements (hitlSession for the generic HITL integration, hitlTicket for Zendesk, and so on).
The HITL plugin also accepts a top-level config object for plugin-wide behavior. See the HITL plugin’s Hub listing for the full set of fields.
Start a handoff
Importplugins from @botpress/runtime and call startHitl from a conversation handler. All inputs are typed against the plugin:
startHitl:
Common override fields:
For the full set of override fields, see the HITL plugin’s Hub listing.
Use a different provider
The HITL plugin works with any integration that implements the HITL interface. To swap the generic HITL integration for Zendesk, change the integration and update the alias.hitlTicket replaces hitlSession because Zendesk implements the interface with tickets instead of sessions:
plugins.hitl.actions.startHitl works the same regardless of which integration is wired underneath.
Deploy and test
Runadk deploy to push the agent to Botpress Cloud. See the CLI reference for all deploy flags: