MotteAF - Agent Flow Designer

Visual workflow orchestration

MotteAF provides a drag-and-drop interface for designing complex multi-agent workflows with conditional logic, parallel processing, and dynamic routing.

Core Components

Flow Nodes

Building blocks for agent workflows:

  • Agent Nodes: Execute AI model calls
  • Tool Nodes: Integrate external APIs
  • Logic Nodes: Conditional branching
  • Data Nodes: Transform and filter data

Flow Control

Advanced routing capabilities:

  • Sequential: Step-by-step execution
  • Parallel: Concurrent processing
  • Conditional: Dynamic path selection
  • Loop: Iterative operations

Execution Engine

High-performance workflow execution with automatic scaling, error handling, and retry logic.

Configuration

Flexible configuration system with environment variables, secrets management, and dynamic parameters.

Node Types

Node TypePurposeInputsOutputs
LLM AgentGenerate text responsesPrompt, contextGenerated text
API CallExternal service integrationURL, parametersAPI response
ConditionConditional branchingData, conditionBoolean result
TransformData manipulationRaw dataProcessed data
MemoryStore/retrieve contextQuery, dataRetrieved memories

Workflow Patterns

Sequential Processing

Input → Agent 1 → Transform → Agent 2 → Output

Linear workflow where each step depends on the previous one. Best for document processing, content generation pipelines.

Parallel Processing

Input → Split → [Agent A, Agent B, Agent C] → Merge → Output

Concurrent execution for independent tasks. Ideal for multi-perspective analysis, batch processing.

Conditional Routing

Input → Classifier → [Route A | Route B | Route C] → Output

Dynamic path selection based on input characteristics. Perfect for customer support routing, content categorization.

Feedback Loop

Input → Agent → Validator → [Continue | Retry] → Output

Iterative refinement with quality checks. Useful for content improvement, error correction workflows.

Configuration Schema

Workflow Definition

{
  "name": "Customer Support Workflow",
  "version": "1.0",
  "nodes": [
    {
      "id": "classifier",
      "type": "llm_agent",
      "config": {
        "model": "gpt-4",
        "prompt": "Classify this customer inquiry: {{input}}",
        "temperature": 0.1
      }
    },
    {
      "id": "technical_support",
      "type": "llm_agent",
      "config": {
        "model": "gpt-4",
        "prompt": "Provide technical support for: {{input}}",
        "tools": ["knowledge_base", "ticket_system"]
      }
    }
  ],
  "edges": [
    {
      "from": "classifier",
      "to": "technical_support",
      "condition": "output.category == 'technical'"
    }
  ]
}

API Endpoints

Create Workflow

POST /api/workflows/create
Content-Type: application/json

{
  "name": "My Workflow",
  "description": "Custom workflow description",
  "definition": { ... workflow schema ... }
}

Creates a new workflow from the provided definition.

Execute Workflow

POST /api/workflows/execute
Content-Type: application/json

{
  "workflowId": "workflow_123",
  "input": {
    "message": "Customer inquiry text",
    "metadata": { "priority": "high" }
  }
}

Executes a workflow with the provided input data.