> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# handoffs

Read and change the [Handoffs](/docs/handoffs) of your AI Agent, and the [handoff integrations](/docs/handoffs/handoff-management/handoff-integrations) that send conversations to human agents.

## Commands

| Command                                            | What it does                                                                                                           |
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `handoffs list`                                    | Lists handoffs, one page at a time.                                                                                    |
| `handoffs get <id>`                                | Shows one handoff.                                                                                                     |
| `handoffs create`                                  | Creates 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 show`                           | Shows the fallback: the handoff or the Playbook that the AI Agent uses when an error stops it from choosing a handoff. |
| `handoffs fallback set`                            | Sets the fallback to one handoff or one Playbook. It asks you to confirm.                                              |
| `handoffs integrations list`                       | Lists 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:

```bash
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:

```bash
adacli acme handoffs integrations groups zendesk-messaging
```

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

```bash
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:

```bash
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:

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

Show the change to the fallback, then save it:

```bash
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`.

## Related commands

* [`conversations`](/adacli/commands/conversations): see the handoffs and the handoff reasons of conversations.
* [`variables`](/adacli/commands/variables): get the variable IDs for availability rules.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).