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

# Asks, runs and triggers

> See what people are waiting on you for, hand it to an agent, answer the agent, and set rules that start agents on their own.

These operations read and change your automations, so they need `automations:read` or `automations:write`. Some are [ask-first](https://docs.avazal.com/authentication.md#inside-a-run): an agent's call returns `ToolNotGranted` for a plain key, and inside a run it needs your approval through `runs.ask`.

## Asks

An ask is a chat message, addressed to you or from a customer, that nobody has answered yet. `asks.list` returns them, most recent first. Set `group` to `yours` or `customers` to see one group.

```bash theme={null}
avazal asks.list '{"group": "yours"}'
```

`asks.update` changes an ask by its `id`:

* `mark` is `done`, `not_mine`, `not_ask`, or `snoozed` with an `until` time.
* `claimed: true` takes the ask so teammates see it is handled. Set `signal: false` to claim it without the reaction.
* `link` attaches a Linear issue or a GitHub pull request, so the ask shows as shipped when the issue closes or the pull request merges.

Once an ask ships, Avazal drafts a reply. `asks.reply` posts it as you in the original thread, with the `draft` id from the ask, or an edited `body` instead. It sends once however many times it is called, and it is ask-first.

## Runs

`runs.create` claims an ask and starts a run on it with the `agent` you pick: `avazal`, or a connected agent with its `connectionId` and `targetId`. That agent becomes your default for the robot reaction.

```bash theme={null}
avazal runs.create '{"ask": "chcv_…@1733050000.123456", "agent": "avazal"}'
```

When an agent in a run calls `runs.ask`, the person who started the run answers it with `runs.answer`: `decision` is `approved`, `dismissed`, `edited` with the new `input`, or `replied` with `text`. Only that person can answer, never an agent, and an expired ask can't be answered. What an agent does inside a run is in [Identities and runs](https://docs.avazal.com/guides/identities.md#runs).

## Triggers

A trigger starts an agent when something happens, such as a schedule or a message in a channel, and says where the run reports.

* `triggers.list` returns your triggers and your workspace's team triggers. `triggers.get` reads one by its `trg_` id.
* `triggers.describe` turns a rule in plain words into a draft to review, or returns a question when the words leave something open. Pass the draft back as `current` to edit it. Nothing is saved.
* `triggers.create` saves a draft. A trigger an agent creates is saved off, and its owner turns it on.
* `triggers.update` replaces a trigger's rule, agent, prompt and routes with `draft`, and turns it on or off with `enabled`.
* `triggers.run` starts one run now with the routes dropped, so only the owner is told.
* `triggers.delete` removes a trigger.

`triggers.update`, `triggers.run` and `triggers.delete` are ask-first.

```bash theme={null}
avazal triggers.describe '{"text": "Every weekday at 9, summarise #support for me"}'
```

## In MCP

Each operation on this page is an action of one MCP tool. The [tool catalogue](https://docs.avazal.com/mcp-tools.md) lists every tool with its fields.

| Operation | MCP tool |
| - | - |
| `runs.ask` | `run (action ask)` |
| `asks.list` | `inbox (type owed)` |
| `asks.update` | `follow_up (action update)` |
| `asks.reply` | `follow_up (action reply)` |
| `runs.create` | `automation (action start_run)` |
| `runs.answer` | API only |
| `triggers.list` | `search (type trigger)` |
| `triggers.get` | `read (type trigger)` |
| `triggers.describe` | `automation (action describe)` |
| `triggers.create` | `automation (action create)` |
| `triggers.update` | `automation (action update)` |
| `triggers.run` | `automation (action run)` |
| `triggers.delete` | `automation (action delete)` |


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