> ## 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.

# Build in the platform

> Describe the task to Astro, and it builds and edits the workflow for you.

Astro is the assistant inside the [Asteroid platform](https://platform.asteroid.ai). You describe the task in
plain language. Astro builds the [graph](https://docs.asteroid.ai/concepts/graphs.md), writes the [node](https://docs.asteroid.ai/concepts/nodes.md) instructions,
runs the workflow, and explains what happened.

You stay in control. Astro writes every edit to a draft, so your published workflow keeps running untouched.

> [card] Build
>
> Create a workflow from a description, or from a document such as a PDF

> [card] Improve
>
> Rewrite instructions and add the edge cases an execution exposed

> [card] Explain
>
> Ask what the workflow does and how each node works

> [card] Debug
>
> Open an execution and find out why it went wrong

## Open Astro

Astro has two entry points.

> [card] Create a new workflow
>
> Click **New workflow** in the sidebar and type what you want in the chatbox.

> [card] Work on a workflow you have
>
> Click the Astro button in the top left of the **Builder** or **Execution** page.

Astro opens as a chat panel with the message history and an input box.

Above the input box sit six quick-start prompts. Click one to begin, or type your own request.

| Prompt | What you get |
| :- | :- |
| What can you help me with? | A tour of what Astro does |
| What does my workflow do? | An explanation of the current workflow |
| Improve my prompts | Suggested rewrites for every node instruction |
| Optimize this workflow with scripts | Reliable nodes converted to scripts that run on the fast path |
| Examine an execution | An analysis of one execution |
| Build workflow from PDF | A workflow built to the steps in a document |

## How a session goes

**1. Describe the task**

Say what you want the workflow to do. Name the site, the steps, and the result you expect.

**2. Astro builds**

Astro reads the current workflow, then adds and edits nodes and transitions. Edits save as it makes them.

**3. Review**

Open the graph and read what changed. Every edit lands in the draft.

**4. Refine**

Tell Astro what to change. Ask for one change at a time, and keep the conversation going.

## What Astro can change

Astro works on the workflow in front of it. It can:

* Read, add, edit, rename, and delete nodes
* Rewrite node instructions and change node configuration
* Add and remove [transitions](https://docs.asteroid.ai/concepts/transitions.md) between nodes
* Change workflow settings
* Start a live [environment](https://docs.asteroid.ai/concepts/environments.md) and drive it
* Write scripts that put reliable nodes on the fast path
* Start executions and read what happened in them
* Manage [schedules](https://docs.asteroid.ai/operate/schedules.md), and attach [secrets](https://docs.asteroid.ai/concepts/credentials.md) to [profiles](https://docs.asteroid.ai/concepts/profiles.md)
* Offer buttons that open the profile and secret forms, so you type credentials in the platform, not the chat
* Validate the workflow

> [!NOTE]
>
> Astro edits the draft. An execution started from the API runs the published version. Publish the draft to make
> your changes live — see [Test, iterate, publish](https://docs.asteroid.ai/build/test-and-publish.md) and [Versions](https://docs.asteroid.ai/concepts/versions.md).

## The live environment

Astro can start a live environment and work in it while you watch. A live environment is a real browser or a
real Linux desktop. Take the mouse and keyboard at any time and show Astro the site yourself.

Use it two ways:

* **Before you build.** Click **New workflow**, then pick **Browser** or **Linux** on the **Start blank** card.
  Astro opens on an empty workflow and asks what you want to do. Explore the site together, and Astro learns the flow before it
  writes a single node.
* **During an execution.** The **Execution** page shows the browser live. Send the workflow a message, or take over the
  browser. Pause the execution, cancel it, or edit the graph while it runs.

## Point Astro at an execution

Type `@` in the chat input to mention an execution. A menu lists your recent runs. Pick one, and Astro reads
its timeline, its screenshots, and its reasoning.

> [card] Mention an execution
>
> Ask "Why did this fail?" and mention the execution. Astro finds the step that broke and proposes the fix.

## Get good results from Astro

* **Say the goal, not the symptom.** Ask "how do I make the form filling more reliable?" Do not ask "make it better".
* **Give context.** Name the node, the execution, or the error you are looking at.
* **Change one thing at a time.** Small requests are easy to review and easy to undo.
* **Read the diff.** Astro saves edits as it makes them, so check the graph before you publish.
* **Run it after every change.** An execution tells you more than a review does.
* **Keep going.** Tell Astro what was wrong with its first answer. The second one lands closer.

To write the instructions yourself, see [Write good instructions](https://docs.asteroid.ai/build/instructions.md).

## Conversations

One conversation belongs to one workflow. You can keep several conversations for the same workflow, each with its
own history. Use the conversation selector to open a past conversation, pick it up where you left it, or
delete it.

Separate conversations keep separate topics apart. Build the happy path in one, and chase a failing run in another.

## Next

> [card] [Write good instructions](https://docs.asteroid.ai/build/instructions.md)
>
> What separates a node that works once from one that works every day

> [card] [Test, iterate, publish](https://docs.asteroid.ai/build/test-and-publish.md)
>
> The loop between "it runs" and "it is ready"

> [card] [Workflows are graphs](https://docs.asteroid.ai/concepts/graphs.md)
>
> Why a workflow is a graph, and what that buys you

> [card] [Nodes](https://docs.asteroid.ai/concepts/nodes.md)
>
> The three node types and what each one does


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