Documentation Index
Fetch the complete documentation index at: https://botpress.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
This covers the HITL integration and plugin, which connects your agent to external helpdesk platforms (Zendesk, Intercom, etc.). This is separate from integrating your ADK agent with 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:
| Field | Description |
|---|---|
title | Short label shown to the human agent when the ticket opens |
description | Longer context the human agent sees alongside the conversation |
conversationId | The conversation to hand off (use conversation.id from the handler) |
userId | The user initiating the handoff |
configurationOverrides | Optional per-handoff overrides of the plugin config |
| Field | Description |
|---|---|
onHitlHandoffMessage | Message sent to the user when the handoff begins |
userHitlCloseCommand | Message text the user can send to close the session |
agentAssignedTimeoutSeconds | How long to wait for a human agent to pick up before timing out |
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: