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

# Build a pipeline with AI

> Describe what you need and let Alphacast AI create or change the pipeline, with your approval for each change.

Alphacast AI can create pipelines, add, edit and delete steps, and help you fix errors. You review each change before it happens.

## Before you start

* To create or change pipelines you need a [plan](https://www.alphacast.io/pricing) that can create content, and edit access to the repository.
* Pipeline tools are part of [Alphacast AI](https://learn.alphacast.io/ai.md). Custom [agents](https://learn.alphacast.io/ai/agents.md) don't have them.

## Create a pipeline from a chat

**1. Describe the result**

In [Alphacast AI](https://learn.alphacast.io/ai.md), say what data you need, how to transform it and what you want at the end. For example: "Create a pipeline with monthly US CPI from FRED, calculate the year-over-year change, and chart it."

**2. Review the approval card**

The card shows why the change is proposed and the steps involved. You can open the configuration of each proposed step. Its status is **Waiting for your approval**.

**3. Approve or reject**

Click **Approve** to make the change, or **Reject** to cancel it. Nothing changes until you approve.

**4. Check the pipeline**

Click **Open pipeline**. Creating a pipeline with steps starts a [run](https://learn.alphacast.io/pipelines/runs.md).

New pipelines go to your working repository unless you ask for another one.

> [!WARNING]
>
> A run can execute output steps. If your pipeline publishes a dataset or [sends a notification](https://learn.alphacast.io/steps/notification.md), check those steps before you approve.

![Approval card for a new pipeline with its proposed steps and the Approve and Reject buttons](https://mintcdn.com/alphacastio/S4wtX2Iw06s3xHSn/images/app/pipeline-approval.jpg?fit=max\&auto=format\&n=S4wtX2Iw06s3xHSn\&q=85\&s=9db162dc4b0100d5f2a0a9a9f0ba6817)

## Save a chat result as a pipeline

If a chat already produced the chart, table or data you want, save it. Alphacast creates a pipeline that repeats the steps behind the result.

| Result | Action |
| - | - |
| Chart | **Save chart** |
| Table | **Save table** |
| Data | **Save as dataset** |

The menu next to the button can also offer **Publish the data as a dataset** and **Download data (CSV)**. A published dataset appears when the first run finishes. Some results can't be saved, for example view-only data.

## Change a pipeline in the editor

**1. Open the assistant**

In the pipeline editor, click **Build with AI**. If it is unavailable, save your pending changes first.

**2. Ask**

For example: "Keep only data since 2015" or "Explain what step 3 does."

**3. Approve the change**

Review the approval card and click **Approve**. The editor reloads the pipeline.

This chat is tied to the open pipeline. It can read other pipelines as references, but it can only change this one. To create another pipeline, start a new chat.

## Fix a step error

When a step has an error, click **Fix with AI**. The assistant opens with the error. Review the proposed edit before you approve it, then check the new run.

## Write better requests

* Name the source, country, variable and frequency.
* Give the exact dataset or series ID if you know it.
* Say what the output should be: a dataset, a chart, a table or an alert.
* Ask for one change at a time when you edit a pipeline.

## Limits

* AI can choose the wrong series or transformation. Check the data with **Preview data** before you use it.
* You can't set a run schedule or choose notification recipients through the chat.
* To build pipelines from another AI assistant, use the [MCP pipeline tools](https://learn.alphacast.io/mcp/tools/pipelines.md).

## Next steps

> [card] [Run a pipeline](https://learn.alphacast.io/pipelines/runs.md)
>
> Check results, fix failures and undo changes.

> [card] [Pipeline steps](https://learn.alphacast.io/steps/overview.md)
>
> See everything a pipeline can do.


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