Skip to main content

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.
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:
This is the minimum structure required for a functional workflow.

Execution Flow

Execution begins at the start node.
Once the End node is reached, workflow execution finishes.

Agent Execution

The Agent node performs the AI task.
The workflow stores the agent result inside the workflow context.

Workflow Context

During execution, workflow variables are available to every node. Example:
Later templates demonstrate how multiple nodes can share and update these variables.

Expected Output

A successful execution produces a workflow result. Example:
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:
Or:
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.