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

# Build your first workflow

> Turn a useful chat answer into a versioned workflow, run it, and put it on a schedule.

TutorialApplies to: All deployments

A workflow connects an answer worth repeating to an operation the business can trust. In this tutorial you describe a workflow in chat, check it, run it, and schedule it. This moves you from **Ask** to **Automate**.

**Before you start:** you have a ready project. See [Ask your first question](https://docs.e6data.com/agentflow/get-started/first-answer.md).

**1. Describe the workflow in chat**

Open a project chat and describe what you want, including the business rules. For example:

> Create a workflow that runs every Monday morning, pulls last week's defect rates per line, ranks the worst three, and emails the plant managers.

**2. Answer the clarifying questions**

AgentFlow asks about anything ambiguous: steps, inputs, tool choice, branching, model needs and approvals. Answer each one.

**3. Review the plan and confirm**

Read the proposed plan, then explicitly confirm that AgentFlow should create the workflow. Nothing is created before you confirm.

AgentFlow then checks every deterministic step, validates the whole spec with the runtime compiler, repairs errors, and saves the workflow only once it compiles.

**4. Review the saved workflow**

Open **Workflows** and select it. Check its inputs, graph, steps, tools, assertions and outputs. See [Edit and version a workflow](https://docs.e6data.com/agentflow/automate/edit-and-version.md).

**5. Run it**

Select **Run**, fill in the inputs, and start the run. Follow the step timeline, then review the final artifacts. See [Run a workflow](https://docs.e6data.com/agentflow/automate/run-a-workflow.md).

**6. Schedule it**

Create a cron trigger for the workflow, for example every Monday at 09:00 UTC. See [Schedule a workflow](https://docs.e6data.com/agentflow/automate/schedule.md).

## Next

> [card] [Add an approval](https://docs.e6data.com/agentflow/automate/actions-and-approvals.md)
>
> Route side effects through email or Slack approval.

> [card] [Bring your own tools](https://docs.e6data.com/agentflow/extend/custom-tools.md)
>
> Call your ERP, MES or KPI logic from steps.

> [card] [How it works](https://docs.e6data.com/agentflow/concepts/how-it-works.md)
>
> Why a compiled workflow beats one big agent.


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