# AI in automations: Agent and Quick AI nodes

How Truetask automations use AI, from the Agent node that runs an AI turn with tools to the Quick AI actions that tag, write, retitle and summarize.

URL: https://docs.truetask.io/automations/ai-nodes

AI nodes put AI inside a Truetask automation: the **Agent** node runs a full AI turn with a prompt, a budget and the tools to read and write your workspace, and the **Quick AI actions** each do one small job and hand their text to the node after them, except Auto-tag, which applies its own result.
The Agent node is a step, not a teammate: it runs as Truetask AI or under the name of one of [the board's AI agents](https://docs.truetask.io/agents/), the accounts that take assigned tasks.

Both need AI to be available for the workspace.
A node that cannot run is shown locked in the palette with the reason: AI is not available, or no model can call tools.
See [AI settings](https://docs.truetask.io/admin/ai).

## The Agent node

| Node | What it does |
| --- | --- |
| **Agent** | Runs an AI agent with a prompt: it reads and writes tasks, notes and fields over as many steps as it needs, as Truetask AI or as one of the board's agents. |

### The brain

**Agent** is the one control that says who the step runs as.

- Leave it on **Truetask AI**, the built in assistant, and the step runs on the workspace's models.
- Pick one of the board's agents and the step runs under that agent's name, on Truetask AI or a model you added under AI settings.
- The model and, where it has one, the effort sit in the same control, so one automation can use a different model from another.

An agent that is set up on a computer is different: the step runs **there**, through Truetask Helper, with that computer's coding tool, model and effort.
The node says so in amber when you pick one.
That computer has to be on, signed in and connected every time the automation runs, or the run fails.
Nobody is at the keyboard, so the step runs at the agent's own **Unattended runs** permission level.
See [Agents on your computer](https://docs.truetask.io/agents/desktop) and [Your agents on your computer](https://docs.truetask.io/helper/agents).

An Agent step bound to one of the board's agents can also use its owner's paired computers through its tools, once the owner allows the step.
The panel says which computers it may use, and **Allow** or **Allow again** when the step changed since.
See [Apps and actions](https://docs.truetask.io/helper/apps-and-actions).

### The prompt

Write what you want done.
The agent reads the task and the board, calls the tools it needs, and ends with a message.
Placeholders such as `{card.title}` and `{card.description}` fill in from the task that fired the automation.
See [Placeholders](https://docs.truetask.io/automations/placeholders).

### The budget

| Field | Default | Range |
| --- | --- | --- |
| **Turns** | 8 | 1 to 20 |
| **Tokens** | 8000 | 500 to 50000 |

Turns are tool-calling rounds, and tokens are the output it may write.
A run within its budget is never cut short; one that hits a limit stops with what it has.
A two-hour limit on the step's wall clock is the safety net behind both.
On top of the budget, one Agent node may make at most 20 write calls in a single run.

### What the agent can do

The Agent node is granted every automation tool: reading and writing tasks, lists, tags, checklists, comments, custom fields, relations, notes, milestones, timers, dependencies, attachments and files, plus searching the workspace, fetching a URL, and the tools the workspace's enabled plugins add.

It is never given the destructive ones.
Deleting tasks, tags, custom fields, comments and checklist items is off the table, because an automation has nobody to confirm with.
A run as Truetask AI also skips the tools that only a board agent may call, such as proposing a task as done.

### The output

The agent's final message is available to the nodes after it as `{agent.output}`.
Add it as a comment, write it to the description, or put it in a field.
To write it to a different task, put a **Target task** node in between.

### Generating a document

The agent can write a document and attach it to a task: an invoice, a status report, a timesheet, a quote, a drawing.
It writes the content itself from what it reads on the task, so there is no template to keep up, and running it again replaces the file of the same name.
The formats are PDF, HTML, Markdown, plain text, CSV, SVG and JSON, PDF by default.

To email it, follow the Agent node with **Send email** and put `{document.file_id}` in its **Attachments**.
A typical automation is a Run on demand placed on a task, an Agent node prompted to "Write the invoice for this task's billable time as a PDF", then Send email to the client.
See [Placeholders](https://docs.truetask.io/automations/placeholders#a-document-the-agent-wrote).

## Quick AI actions

| Node | What it does | Where the result goes |
| --- | --- | --- |
| **Auto-tag** | Picks a new task's tags from the board's own tags and adds them, in one AI call. | Applied straight to the task |
| **Generate** | Writes text from a prompt and the task's context. | `{ai.output}` |
| **Suggest tags** | Proposes tags for the task from its content, using the board's own vocabulary. | `{ai.output}` |
| **Improve title** | Rewrites the task's title to be clear and specific. | `{ai.output}` |
| **Summarize** | Summarizes the task, its comments or a note into a short text for the steps after it. | `{ai.output}` |

Every one of them has a single optional **Prompt** field: extra instructions added to the node's own default prompt.
Leave it blank and the default does the work.
Use it for board-specific wording, for example "tag by product area".

Except for Auto-tag, these nodes only produce text.
They do not write anything themselves, on purpose: chain them into the action that should write.

| Node | Pair it with |
| --- | --- |
| **Generate** | **Set description**, **Add comment** or **Write note** |
| **Suggest tags** | **Apply tags** |
| **Improve title** | **Set title** |
| **Summarize** | **Add comment**, or anything that takes text |

### Auto-tag

Auto-tag is the one that applies its own result.
It picks one to three tags from the tags the board already uses and creates a new one only when nothing fits.
It never touches the description: that is the person's own statement of the work.

A task an import, an agent or another automation creates is not tagged when it is created; Auto-tag runs for tasks a person adds.
It is what the **Auto-tag new tasks** template runs.
See [Templates](https://docs.truetask.io/automations/templates).

## Where the models come from

Models are configured under **Settings > Integrations > AI**.
**Workspace AI models** is the switch that lets them answer for everyone; while it is off, the AI nodes refuse to run.
The **Models** section is the list of models the workspace can use, and **Routing** picks which model serves each capability.

| Capability | Used by |
| --- | --- |
| **Generate** | Auto-tag |
| **Tool use (agent)** | The Agent node, and the Generate, Suggest tags, Improve title and Summarize nodes |

A model chosen on the Agent node itself wins over the routing.

> **Truetask Cloud only**
>
> Truetask AI is the managed option: models are included with your plan, with nothing to configure and no API key.
> Usage counts against a monthly allowance shown on the AI settings page.
> You can still add your own provider models alongside it.
> See [Plans and billing](https://docs.truetask.io/cloud/plans) and [Models](https://docs.truetask.io/agents/models).

> **Self-hosted only**
>
> There is no managed option.
> Add your own provider models under **Settings > Integrations > AI** and route each capability to one of them.
> Tool use needs a model with real function calling: a weak caller invents tool names and the agent goes nowhere.

## The default prompts

Every AI node runs on a built-in prompt, and the node's **Prompt** field adds your instructions on top of it.
That field is how you steer a node: the built-in prompt itself is not editable.

## Related

- [Actions and logic](https://docs.truetask.io/automations/actions)
- [Placeholders](https://docs.truetask.io/automations/placeholders)
- [Models](https://docs.truetask.io/agents/models)
- [AI settings](https://docs.truetask.io/admin/ai)
