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

# Insights

> Findings about your workflows, with the cause and a suggested fix. Review them and apply a proposed change in one click.

An **insight** is a short finding about a workflow or your organization. It says what is happening, why, and what to change. Astro writes insights while it works with you, and when one of your [rules](#rules) fires.

> [!NOTE]
>
> Insights need the Startup plan or above.

## Open the Insights page

Open **Insights** in the sidebar, under **Monitor**. The page has three tabs.

| Tab | What it holds |
| - | - |
| **Insights** | Every insight, most recently updated first, with a detail pane |
| **Rules** | The conditions that start an insight. See [Rules](#rules) |
| **Stats** | Execution stats across your workflows, with a card per workflow |

Filter the list by status: **Open**, **Actioned** or **Dismissed**. The strip above the list shows which workflows have insights in that status. Unread overviews count as Open, and read ones as Actioned. Click a workflow to see only its insights.

Each insight has its own link. You can share it with a teammate in your organization.

## Types and statuses

| Type | What it is | Statuses |
| - | - | - |
| **Recommendation** | Something to change, and why | Open, Actioned, Dismissed |
| **Overview** | A summary to read, with nothing to change | Unread, Read |

Change the status with the buttons at the bottom of the detail pane. **Reopen** moves an actioned or dismissed recommendation back to Open.

## Act on an insight

Open an insight to read the finding. Then do one of these:

| Action | When it shows | What it does |
| - | - | - |
| **Answer the question** | The insight asks you to choose, such as "Fix it and test live" or "Keep the current behavior" | Pick an option, then click **Send to Astro**. Astro opens in the workflow builder and continues from your answer |
| **Discuss with Astro** | The insight is about a workflow and asks no question | Opens Astro with the insight as context |
| **Review changes** | The insight carries a proposed change | Opens the change for review. See [Apply a proposed fix](#apply-a-proposed-fix) |
| **Copy prompt for AI agents** | Always | Copies the insight as a prompt for your own coding agent |

Insights about the whole organization have no workflow. You see their options as text only.

## Apply a proposed fix

Some insights carry a **proposal**: a complete new version of the workflow with the fix already made. The card shows which version it changes and how many lines are added and removed.

**1. Review the change**

Click **Review changes**. Compare the files line by line, or switch to the graph view.

**2. Apply it**

Click **Apply**. Apply publishes the proposal as the next version, and the insight moves to Actioned.

**3. Test it**

Click **Test run** to start an execution on the new version.

Apply changes the published version only. Your draft, the copy you edit in the builder, stays as it was. If the draft has edits you have not published, it does not get the fix. See [Versions and publishing](https://docs.asteroid.ai/concepts/versions.md).

> [!WARNING]
>
> If someone published a new version after the proposal was made, the card says **The published version moved**. **Apply anyway** replaces the current published version, and the changes made since the proposal are lost. To keep them, click **Ask Astro to update** to rebuild the proposal on the latest version.

A proposal lasts 30 days. After that, ask Astro to build it again.

To decline a proposal, dismiss the insight. Dismissing deletes the proposal. It does not come back if you reopen the insight.

## Rules

A **rule** watches finished executions. When enough of them match, Astro investigates and records an insight.

Open the **Rules** tab to see every rule, what it checks, which workflows it applies to and when it last fired. The switch turns a rule on or off. Asteroid provides some rules, and you can add your own.

### Create a rule

Click **New rule** and pick a template: **Script failures**, **Outcomes**, **Slow executions** or **Blank**. Then fill in the sections and click **Create rule**.

| Section | What you set |
| - | - |
| **Details** | The name, and a note Astro reads when it investigates |
| **What counts** | Which executions count: a script failure, an outcome, a duration, an error message or a status |
| **When Astro investigates** | A share of executions or a number, and how far back to look |
| **Workflows** | All workflows, all except some, or only the ones you pick |
| **Advanced** | Nothing. It shows the rule as code |

As you edit, the rule runs over the last 14 days. You see on which days it would have fired and which executions matched.

### Change a rule

Open a rule and click **Edit**. From the rule's menu, duplicate or delete a rule you made. You cannot delete a rule Asteroid provides. Turn it off instead.

### Values for one workflow

Choose the workflow in the sidebar, then open the rule. Changes you make there apply to that workflow only.

* Change a value, such as the share. **Reset** goes back to the organization's value.
* Use the switch to turn the rule on or off for that workflow.
* For rules Asteroid provides, choose which outcomes or scripts count.

### Ask Astro for a rule

Tell Astro what to watch in plain words, such as "tell me when 3 runs of this workflow take over 15 minutes within 6 hours". Astro tests the rule over the last 14 days and shows it as a card in the chat. Click **Review rule** to open it, change anything, and create it. When Astro suggests a change to a rule you have, Review rule opens that rule.

## Create insights from your own agent

Your coding agent can write insights and attach fixes through the [CLI](https://docs.asteroid.ai/cli/reference.md) or the [MCP server](https://docs.asteroid.ai/mcp/tools.md). This is how you hand a fix to a teammate who reviews it in the platform.

| Step | CLI | MCP tool |
| - | - | - |
| Propose a change to a workflow | `asteroid workflow proposal create <workflow-id> --from <folder>` | `workflow_proposal_create` |
| Record the insight, with the proposal attached | `asteroid insight create --workflow-id <id> --proposal-id <id>` | `insight_create` |
| List or read insights | `asteroid insight list`, `asteroid insight get` | `insights_list`, `insight_get` |
| Test a rule over the last 14 days | `asteroid insight-rule validate` | `insight_rule_validate` |
| Create, change or delete a rule | `asteroid insight-rule create`, `update`, `delete` | `insight_rule_create`, `insight_rule_update`, `insight_rule_delete` |
| List or read rules | `asteroid insight-rule list`, `asteroid insight-rule get` | `insight_rules_list`, `insight_rule_get` |

`asteroid insight create` also takes `--type`, `--name` and `--content`. A proposal does not change the draft or the published version. It waits for a person to apply it in the platform.

`asteroid insight create --status` sets an insight's starting status. To change the status of an insight that exists, use the platform. The CLI and MCP server cannot.

The CLI and MCP server write a rule as expressions. The [CLI reference](https://docs.asteroid.ai/cli/reference.md) lists what each one can read. A rule written there opens in the platform like any other.

***

## Next

> [card] [Debug your workflows](https://docs.asteroid.ai/operate/debug.md)
>
> Find the step that broke, and why

> [card] [Improve your workflows](https://docs.asteroid.ai/operate/improve.md)
>
> Make a working workflow faster and steadier

> [card] [Organization memory](https://docs.asteroid.ai/concepts/organization-memory.md)
>
> What your agents learn, and share

> [card] [Versions and publishing](https://docs.asteroid.ai/concepts/versions.md)
>
> Drafts, published versions and rollback


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