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

# Workflows

> Chain prompts, Agents, shell commands, and tools into a repeatable process you can run, inspect, and schedule.

A workflow is a repeatable process saved as steps: read information, transform it, ask a model, hand work to an Agent, or call an installed tool. Use one when you do the same multi-step job again and again and want to see what each step produced. Open **Settings → Workflows → Manage** to browse your workflows and their run history.

> [!TIP]
>
> New to workflows? Watch the 2½-minute video tutorial [Build Your First Workflow](https://docs.enconvo.ai/workflows/build-your-first-workflow.md) to create, edit, and run one from start to finish.

## Choose the right tool

| You want to | Use |
| - | - |
| Reuse a prompt on selected text | [AI Commands](https://docs.enconvo.ai/features/ai-commands.md) |
| Let an assistant decide which tools to use | [Agents](https://docs.enconvo.ai/ai/agents.md) |
| Define a repeatable sequence with inspectable outputs | A workflow |
| Run an Agent instruction, a workflow, or a script at a set time | [Automations](https://docs.enconvo.ai/workflows/scheduled-jobs.md) |

## How a workflow is organized

A workflow has three parts:

* `inputs`: the values a run needs, such as a topic or a piece of text.
* `jobs`: named groups of steps. Jobs start in parallel unless `needs` makes one job wait for another.
* `steps`: the ordered list inside each job. Steps within a job run one after another.

Current workflows use `version: agent-workflow/v1` with a `jobs` map, and each job holds a `steps` list:

```yaml theme={null}
version: agent-workflow/v1
title: Quick Summary
description: Summarize supplied text into three bullets.
inputs:
  text:
    type: string
    default: "A sample paragraph to summarize."
jobs:
  main:
    steps:
      - id: summarize
        prompt: "Summarize in three bullets: {{ inputs.text }}"
```

> [!NOTE]
>
> The old top-level `tasks` format is no longer accepted. Move each sequence into `jobs.<name>.steps`, give steps explicit IDs, and use `steps.<id>.output` within a job or `jobs.<job>.<step>.output` across jobs.

## What a step can do

Each step does exactly one of these:

| Step | Fields | Result |
| - | - | - |
| Shell | `command` or `run` | Command output, including `stdout`, `stderr`, and `exitCode` |
| Prompt | `prompt` | A model reply; use an output schema for structured data |
| Agent | `agent` and `message` | The selected Agent's reply |
| Tool | `tool` and `with` | An installed Local API endpoint's result |
| Transform | `uses: transform` and `value` | A templated value |
| Subworkflow | `uses: workflow` with `workflowId` or `workflow` | A child workflow run result |
| Approval | `uses: approval` and `message` | Your answer: approved, or declined with optional feedback |
| Judge | `uses: judge` and `question` | A yes or no from Jev, Enconvo Cloud's fast decision model, with its probability |
| Classify | `uses: classify`, `question`, and `options` | The option Jev picked, with its confidence |

A step can also run only when a condition holds, repeat over a list, retry, or return structured data. See [Advanced Workflows](https://docs.enconvo.ai/workflows/advanced-workflows.md).

## Run a workflow

* Open it in **Workflows**, set **Inputs**, and choose **Run**.
* Search for a saved workflow in SmartBar. Launcher text is available as `inputs.input_text`.
* Mention an available workflow with `@` in chat so an Agent can use it.
* Run it on a schedule with an [automation](https://docs.enconvo.ai/workflows/scheduled-jobs.md#schedule-a-workflow).

## Where workflows are saved

Each workflow is one file at `~/.enconvo/workflows/<id>.yaml`. The filename is the workflow ID. Keep that ID stable to preserve the link with its run history.

## Related

> [card] [Build Your First Workflow](https://docs.enconvo.ai/workflows/build-your-first-workflow.md)
>
> A video tutorial from template to finished run.

> [card] [Creating Workflows](https://docs.enconvo.ai/workflows/creating-workflows.md)
>
> The Visual editor, YAML, the assistant, and every step type.

> [card] [Advanced Workflows](https://docs.enconvo.ai/workflows/advanced-workflows.md)
>
> Conditions, loops, retries, output schemas, and subworkflows.

> [card] [Automations](https://docs.enconvo.ai/workflows/scheduled-jobs.md)
>
> Run a workflow or an Agent on a schedule.


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