# Automation triggers and events

Every trigger a Truetask automation can start from, grouped the way the node palette shows them, with what each one fires on and the options it takes.

URL: https://docs.truetask.io/automations/triggers

A trigger is the one node that decides when a Truetask automation runs: every automation has exactly one, and everything wired after it runs in order when the trigger fires.

The palette groups triggers the way this page does.
On a database board the groups that name the entity are renamed (**Task events** becomes **Record events**, **Board** becomes **Database**) and the triggers that need lists, flow, notes, git, agents or clients are not offered at all.

An automation that covers several boards or the whole workspace fires on the events of every board it covers, not only on its home board.
See [Where an automation runs](https://docs.truetask.io/automations/#where-an-automation-runs).

## Manual

| Node | What it does | Options |
| --- | --- | --- |
| **Run on demand** | Runs only when someone starts it by hand: a Run button, the task's right-click menu, or **Run automation** in the command palette. | **Run it from**, **Only show when**, **Button label**, **Description**, **Who can run it** |

![A Run on demand trigger node in Truetask, run from a task, with its Only show when, Button label, Description and Who can run it settings](https://docs.truetask.io/screenshots/automation-trigger-manual.webp)

**Run it from** decides where the Run button lives and what the run works on.

| Choice | What you get |
| --- | --- |
| **The board** | A Run button in the board toolbar. One run, no task attached. |
| **A task** | A Run button on every task, and in the task's right-click menu. The run works on the task you clicked. |
| **Selected tasks** | A row in the right-click menu when several tasks are selected. One run, with every selected task, up to 200. |

**Only show when** appears for a run placed on tasks.
It offers the run only where it fits: tasks in some lists, tasks with any of some tags, and, for a selection, at most a number of tasks.
Elsewhere the run is not offered, and the server refuses it if someone tries.

The **Button label** shows in the Run menu, and the **Description** is the hover help next to it.

**Who can run it** decides who sees the run in the menus and may start it.

| Choice | Who |
| --- | --- |
| **Board admins only** | Nobody else sees the run. |
| **Editors and admins** | Anyone who can edit the board. This is the default. |
| **Everyone on the board** | Viewers and guests too. |
| **Chosen people and teams** | Only the people and teams you name, and board admins. |

Board admins can always run it, and only a board admin changes this setting.
Whoever starts the run, the automation makes its changes for them, including changes they could not make themselves.
See [Runs and logs](https://docs.truetask.io/automations/runs#starting-a-run-by-hand) for what happens once a run starts.

## Task events

| Node | What it does | Options |
| --- | --- | --- |
| **Task created** | Runs when a new task is added to this board, whether typed in, sent through a form, or created by another automation. | **List**: one list, a flow state, or any |
| **Task moved** | Runs when a task moves between lists. | **From list** and **To list**, each a mix of list names and flow states; empty means any |
| **Task updated** | Runs when the task's own fields change. | **Changed fields**: Title, Description, Start date, Due date, Tags, Files; none picked means any of them |
| **Task tagged** | Runs when a tag is added to a task. | **Tag name**, or **Any tag** |
| **Task completed** | Runs when a task is marked complete. | None |
| **Task reopened** | Runs when a completed task is marked not done again. | None |
| **Task blocked** | Runs when a task becomes blocked by a dependency that is not done yet. | None |
| **Task unblocked** | Runs when the last dependency blocking a task is done. | None |
| **Task archived** | Runs when a task is archived. | None |
| **Task deleted** | Runs when a task is deleted, that is, moved to the trash. | None |
| **File approved** | Runs when a file on a task is marked approved. | None |
| **File approval removed** | Runs when a file's approval is taken away, or the approved file is detached. | None |
| **File turned down** | Runs when a file on a task is turned down. | None |
| **File turn-down removed** | Runs when a file's turn-down is taken off, or the turned-down file is detached. | None |
| **Priority changed** | Runs when a task's priority changes. | **Priority**, or **Any priority** |
| **Custom field changed** | Runs when a custom field's value changes on a task. | **Custom field**, required |
| **Comment added** | Runs when someone comments on a task. | None |
| **Comment deleted** | Runs when a comment is removed from a task. | None |
| **Checklist item completed** | Runs when a checklist item is ticked. | None |
| **Checklist item uncompleted** | Runs when a checklist item is unticked. | None |

A list selector accepts list names and flow states together.
Picking the flow state Done matches any list in the Done lane, so the automation survives a rename or a board clone.
Renaming a list, a tag or a custom field also updates the automations on the board that name it.
See [Board flow](https://docs.truetask.io/boards/flow).

**Task updated** leaves out moves, completion, assignment and priority, which have their own triggers.

The four file triggers carry the file and the decision in `{approved_file.*}` placeholders, so a [Condition](https://docs.truetask.io/automations/actions#condition-and-filter) can check which file it was.
See [Files](https://docs.truetask.io/tasks/files) and [Placeholders](https://docs.truetask.io/automations/placeholders#file-decision).

## People

| Node | What it does | Options |
| --- | --- | --- |
| **Member added** | Runs when someone is assigned to a task. | **Who** (**Anyone**, **Any agent**, **My agents**), **Member**, or **Any member** |
| **Member removed** | Runs when someone is unassigned from a task. | **Member**, or **Any member** |
| **Board member added** | Runs when a person joins this board. | **Member**, or **Any member** |
| **Board member removed** | Runs when a person leaves this board. | **Member**, or **Any member** |

**Who** on Member added narrows the trigger to agents.
**Any agent** fires when any agent is assigned, and **My agents** only when the agent belongs to the person who built the automation.
Pair it with a [Kick off agent](https://docs.truetask.io/automations/actions#agents) step set to **The agent that was assigned** to start whichever agent was just put on the task.

On a database, Member added and Member removed read **Owner assigned** and **Owner removed**, because a record has one owner where a task has assignees.
Board member added and removed read **Database member added** and **Database member removed**.

## Clients

What a client does on their page can start an automation.
None of these is offered on a database.

| Node | What it does | Options |
| --- | --- | --- |
| **Client answered** | Runs when a client answers something the task asked of them: a document sent, a question answered, a signature, an approval given or turned down. | **Which requests**, **Decision**, **Answered by** |
| **Client paid** | Runs when a payment the task asked for is paid, through Stripe, a payment link or a teammate marking it. | None |
| **Client booked a time** | Runs when a client books a time on their page. | None |
| **Client wrote** | Runs when a client writes in the task's client channel. A teammate's reply does not fire it. | None |

**Which requests** narrows Client answered to some kinds: **Document**, **Answer**, **Signature** or **Approval**; empty means any request.
**Decision** reads against approvals only: **Any answer**, **Approved** or **Declined**.
**Answered by** is **The client** by default; **Anyone** also counts a teammate marking an item received because the client handed it over in person.

Each trigger fills the client, request, payment, appointment or message placeholders.
See [Clients](https://docs.truetask.io/clients/), [Client requests](https://docs.truetask.io/clients/requests), [Payments](https://docs.truetask.io/clients/payments) and [Booking](https://docs.truetask.io/clients/booking).

## Board

| Node | What it does | Options |
| --- | --- | --- |
| **Board status changed** | Runs when the board's status changes in the board details. | **From status** and **To status**, each a mix of status names and status kinds; empty means any |
| **Board details updated** | Runs when the board's details change: name, summary, icon, dates or visibility. | **Changed fields**: Name, Summary, Icon, Start date, End date, Visibility |
| **Board field changed** | Runs when a board-level custom field changes its value. | **Board field**, required |
| **Board date arrives** | Runs when the board's start or end date arrives, or a set number of days before or after it. | **Board date** (Start date or End date), **When** (On the date, Days before, Days after), **Days** |
| **List created** | Runs when a list is added to this board. | None |
| **List deleted** | Runs when a list is removed from this board. | None |
| **Tag created** | Runs when a tag is created on this board. | None |
| **Tag deleted** | Runs when a tag is deleted from this board. | None |

Board statuses and board fields are workspace-level: one value per board, edited in the board details panel.
See [Boards](https://docs.truetask.io/boards/) and [Custom fields](https://docs.truetask.io/tasks/custom-fields).

## Agents

| Node | What it does | Options |
| --- | --- | --- |
| **Agent handoff** | Runs when an agent hands a task over to a person or to another agent. | **Member**: only fire for handoffs to this agent, or **Any member** |
| **Agent run status** | Runs when an agent run ends or stalls. | **Run outcomes**: Completed, Failed, Blocked, Needs input, Stalled, Cancelled; none picked means every outcome |

These pair with the Kick off agent action to chain agent work.
See [Delegating work to agents](https://docs.truetask.io/agents/delegating) and [The queue](https://docs.truetask.io/agents/pipelines).

## Notes

| Node | What it does | Options |
| --- | --- | --- |
| **Note created** | Runs when a note is created. | **Folder**, or **Any folder** |
| **Note updated** | Runs when a note's content changes. | **Applies to**: Any note, Notes in a folder, or A specific note |
| **Note commented** | Runs when someone comments on a note. | **Applies to**: Any note, Notes in a folder, or A specific note |
| **Note published** | Runs when a note is published to a public link. | **Publication scope**: Any scope, Whole board, Folder, Single note, Selection; plus the **Note** when the scope is a single note |
| **Note deleted** | Runs when a note is deleted. | **Applies to**: Any note, Notes in a folder, or A specific note |

A folder filter matches the folder and everything under it.
Note created, Note updated and Note commented ignore events an automation caused, so an automation that writes notes cannot set itself off.
See [Notes](https://docs.truetask.io/notes/) and [Publishing notes](https://docs.truetask.io/notes/publishing).

## Time

| Node | What it does | Options |
| --- | --- | --- |
| **Due date reached** | Runs when a task's due date arrives, a number of hours before it, or once it is overdue. | **When** (On due date, Before due date, After due date (overdue)), plus **Hours before** or **Hours after due date** |
| **Scheduled trigger** | Runs on a clock: hourly, daily, weekly or monthly. | **Frequency**, **Day of week** or **Day of month**, **Hour**, **Minute**, **Timezone**, and the optional **Manual trigger** |
| **Milestone approaching** | Runs a set number of days before a milestone's date. | **Days before milestone** |
| **Milestone reached** | Runs when a milestone's date arrives. | None |
| **Timer started** | Runs when someone starts a timer on a task. | None |
| **Timer stopped** | Runs when a timer on a task stops. | None |

### Scheduled trigger

The timezone defaults to the workspace's, and the panel shows the next run in that zone so a daylight-saving change never surprises you.
A schedule is just a clock: it runs once for the board, with no task in focus.
To act on many tasks, put a **For each** or a **Target task** node after it and do the filtering there.

**Manual trigger** adds a Run button alongside the schedule, on the board or on every task, for the times you need it early.
It takes **Run it from** (The board or A task), a **Button label** and **Who can run it**, as Run on demand does.
A saved automation also gets a **Test run** button in the trigger's panel.

> **A sleeping workspace can miss a tick**
>
> If the workspace sleeps after a period without activity, a scheduled run can be late or skipped.
> The trigger panel says so when that applies.

### Milestone triggers

A milestone trigger fires once per milestone and carries no task.
Use Send email, HTTP request or Create task after it, or add a Target task or For each step first to reach the tasks around the milestone.
See [Milestones](https://docs.truetask.io/boards/milestones).

## Integrations

| Node | What it does | Options |
| --- | --- | --- |
| **Incoming webhook** | Runs when an external system posts to one of the workspace's incoming endpoints. | **Endpoint**: pick an existing one or create a new one |
| **Text received** | Runs when a text reaches the workspace's Twilio number. | **Start on** (Replies to this board's texts, or Any text to the number), **Number** |
| **WhatsApp received** | Runs when a WhatsApp message reaches the workspace's number. | **Start on** (Replies to this board's messages, or Any message to the number) |
| **Slack received** | Runs when a Slack message reaches the app. | **Start on** (Replies to this board's messages, Mentions of the app, or Any message the app can see), **Channel** |

The request body, query string and headers of an incoming webhook are available to every node after it.
The endpoint picker shows the last request it received, so you can see the field names before you write a placeholder.
Endpoints are workspace-wide and are managed in the Webhooks view; see [Webhooks](https://docs.truetask.io/integrations/webhooks).
The [Update a task from a webhook by its key](https://docs.truetask.io/automations/templates#webhook-recipes) recipe shows the usual shape: this trigger, then a Target task step that finds the task the request names.

Text received, WhatsApp received and Slack received only appear once that service is connected.
A reply to a message this board sent, or a Slack thread reply under one, lands on the task it answers, and that task becomes the focus of the run.
See [Messaging integrations](https://docs.truetask.io/integrations/messaging) and [Slack](https://docs.truetask.io/integrations/slack).

## Git

Every git trigger needs a repository linked to the board.
The PR and CI triggers take an optional **Target branch** filter, which accepts a `*` glob such as `release/*`, so "merged to main" and "merged to staging" can be separate automations.

| Node | What it does |
| --- | --- |
| **PR opened** | Runs when a pull request linked to a task is opened in the connected repository. |
| **Review requested** | Runs when a review is requested on a linked pull request. |
| **PR approved** | Runs when a linked pull request is approved. |
| **Changes requested** | Runs when a reviewer requests changes on a linked pull request. |
| **CI failed** | Runs when CI fails on a linked pull request. |
| **CI passed** | Runs when CI passes on a linked pull request. |
| **CI started** | Runs when CI starts on a linked pull request. |
| **PR merged** | Runs when a linked pull request is merged. |
| **PR closed** | Runs when a linked pull request is closed without being merged. |
| **Commit pushed** | Runs when a commit that references a task is pushed. |
| **Issue opened** | Runs when an issue is opened in the connected repository. |
| **Issue closed** | Runs when a linked issue is closed. |
| **Issue reopened** | Runs when a linked issue is reopened. |
| **Issue labeled** | Runs when a label is added to a linked issue. |

See [Git integration](https://docs.truetask.io/git/) and [Git and tasks](https://docs.truetask.io/git/tasks).

## Plugin triggers

An enabled plugin can announce its own events.
Each one shows up in the Triggers section of the palette, in a group named after the plugin.
The plugin decides what its event means and what the run receives; narrow it further with a Condition after the trigger.

When the plugin is switched off, its triggers leave the palette.
An automation that already uses one stops firing, and its run log says the step comes from a plugin that is not enabled.
See [Plugins](https://docs.truetask.io/plugins/).

## Related

- [Actions and logic](https://docs.truetask.io/automations/actions)
- [Placeholders](https://docs.truetask.io/automations/placeholders)
- [Templates](https://docs.truetask.io/automations/templates)
- [Builder](https://docs.truetask.io/automations/builder)
