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

# 08.1 workflow basic

# Workflow Basic Template

The **Workflow Basic** template demonstrates the simplest possible BindAI workflow.

It provides a minimal example of creating a workflow, executing an AI agent, and returning a result.

This template is the recommended starting point for learning the workflow engine.

***

# Purpose

The template demonstrates:

* creating a workflow
* registering an agent
* executing sequential nodes
* returning workflow results

It intentionally avoids advanced workflow features such as conditions, loops, or parallel execution.

***

# Workflow Structure

The template follows a simple linear flow.

```text id="wb1" theme={null}
Start

↓

Agent

↓

End
```

Each node executes exactly once.

***

# When to Use

Use this template when you want to:

* learn the workflow engine
* create a simple automation
* test an AI agent
* build a prototype
* understand workflow execution

Most other workflow templates build upon this foundation.

***

# Components

The basic workflow typically contains:

```text id="wb2" theme={null}
Workflow

├── Start Node

├── Agent Node

└── End Node
```

This is the minimum structure required for a functional workflow.

***

# Execution Flow

Execution begins at the start node.

```text id="wb3" theme={null}
Start

↓

Execute Agent

↓

Return Result
```

Once the End node is reached, workflow execution finishes.

***

# Agent Execution

The Agent node performs the AI task.

```text id="wb4" theme={null}
Input

↓

Agent

↓

Output
```

The workflow stores the agent result inside the workflow context.

***

# Workflow Context

During execution, workflow variables are available to every node.

Example:

```text id="wb5" theme={null}
Input

↓

Workflow Context

↓

Result
```

Later templates demonstrate how multiple nodes can share and update these variables.

***

# Expected Output

A successful execution produces a workflow result.

Example:

```text id="wb6" theme={null}
Workflow Result

↓

Success

↓

Output Variables
```

The exact output depends on the configured agent and prompt.

***

# What You'll Learn

By studying this template you will understand:

* how workflows are created
* how nodes execute sequentially
* how agents integrate into workflows
* how execution begins and ends
* how workflow variables are stored

These concepts are used throughout every BindAI workflow.

***

# Extending the Template

Once you understand the basic workflow, additional nodes can be inserted.

For example:

```text id="wb7" theme={null}
Start

↓

Agent

↓

Condition

↓

End
```

Or:

```text id="wb8" theme={null}
Start

↓

Agent

↓

Loop

↓

End
```

Every advanced workflow begins with the same execution model.

***

# Related Templates

After completing the Basic Workflow template, continue with:

* Workflow Condition
* Workflow Loop
* Workflow Parallel
* Workflow Human
* Workflow Retry
* Workflow Timeout
* Workflow Schedule

Each introduces one additional workflow capability while building upon the same foundation.

***

# Best Practices

* Begin with the simplest workflow possible.
* Verify agent execution before adding workflow logic.
* Use descriptive node names.
* Keep the first workflow linear.
* Add advanced nodes incrementally as requirements grow.

***

# Summary

The **Workflow Basic** template is the foundation of the BindAI workflow system.

It demonstrates how to construct, execute, and complete a workflow using a simple sequence of nodes. Understanding this template makes it much easier to learn the more advanced workflow patterns that follow.
