> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minimo.it/llms.txt
> Use this file to discover all available pages before exploring further.

# AI and handover

> When the AI answers a conversation, when it stops, and how to give a conversation back to it.

When an [AI assistant](https://docs.minimo.it/product/messaging/whatsapp-assistant.md) is connected to a channel, it answers the contacts who
write there. Each thread shows where the AI stands in `ai.state`:

| `ai.state` | Meaning | How it gets there |
| - | - | - |
| `active` | The AI answers. | Default; or turned back on. |
| `paused` | A person replied, or the AI handed over. It comes back by itself after the assistant's **pause time** (`ai.since` is when it paused). | A teammate replies; the AI hands over. |
| `disabled` | Off on this conversation until someone turns it back on. No timer. | Turned off by hand (or the assistant is set to manual resume). |

`needsHuman: true` means the AI handed the conversation over and is waiting for a person. Those threads, and those
where the AI is paused while the contact's last message is unanswered, are the **needs attention** list
(`needsAttention: true`).

## Turn the AI off or on for one conversation

* **Off** (`enabled: false`): a person takes over. The AI stops answering this contact and the thread is flagged as
  needing a person.
* **On** (`enabled: true`): the AI answers again and the flag is cleared. This also ends a pause after a teammate's reply.

It changes only that conversation: the assistant's settings and other conversations stay as they are. Nothing is sent.

* MCP: `minimo_inbox_set-ai`
* API: [`POST /public/v1/inbox/threads/{threadId}/ai`](https://docs.minimo.it/api-reference/inbox/set-ai)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.