> For the complete documentation index, see [llms.txt](https://docs.siit.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siit.io/guides/ai/assign-a-request-to-an-ai-agent.md). Agents can also search and read this documentation through its [MCP server](https://docs.siit.io/~gitbook/mcp).

# Assign a request to an AI Agent

Assign a request to an AI Agent, follow its work in the request, write to it while it works, take the request back, and read how it finished.

You assign a request to an AI Agent from the same **Assignee** field you use for a teammate. The agent starts right away, and the request shows what it is doing until it resolves the request or hands it off to you.

This guide is for every admin who works requests. To create an agent, see [Set up an AI Agent](https://docs.siit.io/guides/ai/set-up-an-ai-agent.md).

## Before you assign

You can assign a request to an agent when your role gives you access to that request. The agent appears in the list when all of these are true:

* **The agent is active.**
* **It works in the request's inbox.** For a request that is in no inbox, the agent needs **Unassigned requests** among its inboxes.
* **Its role gives access to requests.**
* **Your workspace has AI credits left.** See [How the AI wallet works](https://docs.siit.io/guides/ai/ai-wallet.md).

## Assign the request

<figure><img src="https://2274035325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlWFhpq2ia6gdHet0opKx%2Fuploads%2Fgit-blob-c886b28507d58ec16ddc500b1c80fbd69104c78c%2Fassign-ai-agent.gif?alt=media" alt="An admin picks an AI Agent in the Assignee field, then the agent asks the employee a question, unlocks their account and replies"><figcaption></figcaption></figure>

1. Open the request.
2. Click the **Assignee** field.
3. Under **AI agent**, pick the agent.

From the requests list, you can also right-click a request and use **Assigned to**.

The agent shows as the assignee, and it starts working.

## Follow its work

The request timeline shows one line for the agent's work:

| The line says                          | What is happening                                               |
| -------------------------------------- | --------------------------------------------------------------- |
| **{Agent} thinking**                   | The agent is reading the request or carrying out a step         |
| **Waiting for an answer**              | The agent asked the employee a question                         |
| **{Agent} is waiting for an approval** | An action needs an approval before the agent can run it         |
| **{Agent} worked for 4 minutes**       | The agent is done. The time runs from the assignment to the end |

Expand the line to read the agent's reasoning and the steps it took.

## When the agent asks a question

When information is missing, the agent asks the employee one question at a time, as a public reply in the request. The employee answers where they usually do: Slack, Teams, the portal or email.

Any public reply posted after the question counts as the answer, including yours. If you know the answer, reply in the request and the agent picks the work back up.

A question left unanswered expires after 24 hours. When you have a business calendar on the request's inbox, only its working hours count. The agent then hands the request off to you, with a note quoting the question nobody answered.

## Write in the request while the agent works

You do not need to take the request back to steer the agent.

* **A public reply** from you or from the employee reaches the agent right away. It stays assigned, adds the internal note "Ok I'll take this into account", and carries on with your message in mind. Replying to a request an agent is working does not assign the request to you.
* **An internal note** does not interrupt the agent. It reads the note the next time it picks the work back up, for example after an answer or an approval.

## Take the request back

Assign the request to yourself, to another admin or to **Unassigned**. The agent stops at once and leaves an internal note saying who cancelled its work.

If the agent was still working, the employee gets this message in Slack, Teams or the portal: "I stopped working on your request. A human can continue helping you."

Assigning the request to another agent also stops the first one. Moving the request to an inbox the agent does not work in stops it too.

## How the agent finishes

An agent ends its work in one of two ways.

* **It resolves the request.** It posts a reply to the employee that starts with the result and says what it did, then sets the request to **Resolved**.
* **It hands the request off.** It adds an internal note that starts with what stopped it, then what it did and what a human needs to do next. It can also post a reply to the employee when it has verified progress to share. The status does not change.

A request handed off comes back to you, the admin who assigned it, when you are a member of the request's inbox. Otherwise it stays unassigned in its inbox.

## If the agent cannot finish

When something goes wrong, the agent adds an internal note that starts with "I could not finish working on this request", followed by the reason and the next step. The request comes back to you, and your assignment email carries the reason.

In the timeline, the line "{Agent} failed during execution" has a **Retry** link. It assigns the request to the same agent again, like picking the agent in **Assignee**.

When the agent stopped because the AI wallet is empty or the monthly spend cap is reached, the line has no **Retry** link. Add credits or raise the cap, then pick the agent again in **Assignee**. See [How the AI wallet works](https://docs.siit.io/guides/ai/ai-wallet.md).

## What the employee sees

The agent replies under its own name and avatar in Slack, Teams, the portal and email, and the portal marks its replies as AI.

While the agent works, Slack and Teams show its progress: "Thinking about your request", "Working on your request", "Waiting for your answer", "Waiting for approval". Internal notes and approvals stay between admins.

## Read the agent's logs

Click **Agents**, open the agent, then **Logs**. Each row is one assignment:

| Column           | What it shows                                                                                                                                                                       |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Request**      | The request, with a link                                                                                                                                                            |
| **Assigned by**  | Who assigned it                                                                                                                                                                     |
| **Outcome**      | **Working**, **Waiting for an answer**, **Waiting for an approval**, **Resolved**, **Handed back**, **Failed**, **Stopped**, **Out of AI credits** or **Monthly spend cap reached** |
| **Cost per run** | What the assignment cost, restarts included. You see it when your role has the **AI usage** permission                                                                              |

You see an agent's logs when your role's **Access to conversation logs** for that agent is **All**, or **My assignments and inboxes** for the requests you can access.

## Need help?

Contact <support@siit.io>, or see the [AI Agents FAQ](https://docs.siit.io/guides/ai/ai-agents-faq.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.siit.io/guides/ai/assign-a-request-to-an-ai-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
