Skip to navigation

Read and change the Handoffs of your AI Agent, and the handoff integrations that send conversations to human agents.

Commands

CommandWhat it does
handoffs listLists handoffs, one page at a time.
handoffs get <id>Shows one handoff.
handoffs createCreates a handoff from a name or a JSON file.
handoffs update <id>Changes the handle, description, tags, availability rules, or other editable fields of a handoff.
handoffs delete <id>Deletes a handoff.
handoffs set-zendesk-messaging <name-or-id>Sets the Zendesk Messaging block of a handoff.
handoffs set-zendesk-support <name-or-id>Sets the Zendesk Support block of a handoff.
handoffs set-http-block <name-or-id>Creates or changes a handoff that holds one HTTP Request block.
handoffs fallback showShows the fallback: the handoff or the Playbook that the AI Agent uses when an error stops it from choosing a handoff.
handoffs fallback setSets the fallback to one handoff or one Playbook. It asks you to confirm.
handoffs integrations listLists the handoff integrations, and shows which ones are configured and on.
handoffs integrations get <integration>Shows the configuration of one integration.
handoffs integrations configure <integration>Configures zendesk-messaging or zendesk-support.
handoffs integrations connect <integration>Starts the Zendesk sign-in for zendesk-support and waits until it finishes.
handoffs integrations download-app <integration>Downloads the Zendesk app ZIP file for zendesk-support.
handoffs integrations enable <integration>Turns on an integration.
handoffs integrations disable <integration>Turns off an integration.
handoffs integrations groups <integration>Lists the Zendesk groups that a handoff can route to.
handoffs integrations delete <integration>Deletes the stored credentials of an integration.

Examples

Connect Zendesk Messaging and turn it on:

adacli acme handoffs integrations configure zendesk-messaging \
--subdomain acme --email admin@acme.com --api-token "$ZENDESK_TOKEN"
adacli acme handoffs integrations enable zendesk-messaging

Find the Zendesk group ID to route to:

adacli acme handoffs integrations groups zendesk-messaging

Create a live Zendesk Messaging handoff that routes to one group:

adacli acme handoffs set-zendesk-messaging "Zendesk Messaging" --department-id grp-123 --create \
--description "Use when the end user asks to talk to a human agent." --live

Connect Zendesk Support, then create a live Zendesk Support handoff:

adacli acme handoffs integrations configure zendesk-support --subdomain acme
adacli acme handoffs integrations connect zendesk-support --subdomain acme
adacli acme handoffs set-zendesk-support "Zendesk Support" --group 360001 --subject "Chat handoff" \
--create --description "Use when the end user asks to talk to a human agent." --live

Change the description of a handoff:

adacli acme handoffs update 60a1b2c3d4e5f60718293a4b --description "Hand off billing questions"

Show the change to the fallback, then save it:

adacli acme handoffs fallback set --handoff <handoff-id> --dry-run
adacli acme handoffs fallback set --handoff <handoff-id> --yes

Details

  • A new handoff is off unless you add --live. Each live handoff counts against the maximum number of live handoffs of the AI Agent.
  • create and update check the change before they send it. If a check fails, adacli sends nothing.
  • set-zendesk-messaging, set-zendesk-support, and set-http-block take a handoff name or ID. Add --create to create the handoff if it does not exist. With --create, add --description, because the description tells the AI Agent when to hand off.
  • You can run a set- command again. It changes the block that it wrote before, and does not add a second block.
  • integrations configure supports zendesk-messaging and zendesk-support only. zendesk-support takes --subdomain only. Run integrations connect to finish the Zendesk sign-in.
  • integrations connect opens the approval page in a browser and stops waiting after 5 minutes.
  • An integration that is off returns no Zendesk groups.
  • The fallback is one handoff or one Playbook, never both. fallback set --handoff takes a live handoff. fallback set --playbook takes an active Playbook.
  • Some error paths use only a handoff fallback. When the fallback is a Playbook, those paths use the first handoff or the error response.

For every option of a command, run it with --help, for example adacli acme handoffs set-zendesk-support --help.

  • conversations: see the handoffs and the handoff reasons of conversations.
  • variables: get the variable IDs for availability rules.