Creating Swarms in Ax

Learn how to design, assemble, and deploy AI agent workflows using Ax by SwarmCanvas's visual interface.


Getting Started

  1. 1. Navigate to the Dashboard
  2. 2. Click on Swarms in the left sidebar
  3. 3. Select "Create Swarm" to start a new workflow

Assembling Your Swarm

Components Panel

The left sidebar contains two main component types:

Standard Nodes

  • • Start: The entry point of your swarm
  • • Drag onto the canvas to begin

Agents

  • • List of available agents (e.g., SalesAgent, TriageAgent, RefundsAgent)
  • • Drag agents onto the canvas to add them to your workflow

Canvas Operations

Adding Components

  • • Drag components from the left panel onto the canvas
  • • Position them to create your workflow layout

Creating Connections

Connect nodes using:

  • • Trigger: Initiates the workflow
  • • Handoff: Transfers conversation between agents
  • • Click and drag between nodes to create connections

Node Configuration

  • • Click on nodes to view/edit their properties
  • • Each agent's description is visible in its node
💡
Pro Tip:

Design your workflow to handle different conversation paths. For example, a TriageAgent can direct users to either SalesAgent or RefundsAgent based on their needs.

Swarm Actions

Save and Draft

  • • Click "Save as Draft" to preserve your work
  • • Drafts can be modified later

Publishing

Click "Publish" to:

  • • Generate the swarm's implementation code
  • • Make the swarm operational
  • • Create API endpoints for the swarm
  • • Finalize the workflow design

Downloading

The "Download" button provides:

  • • Complete source code package
  • • FastAPI application wrapper to expose the swarm as an API
  • • CLI interface for standalone operation
  • • All necessary dependencies in requirements.txt

Testing

Click "Run" to:

  • • Open an interactive chat interface
  • • Test the swarm's behavior
  • • Verify agent interactions
  • • Validate workflow logic

Best Practices

ℹ️

Key Points to Remember:

  • • Start with a clear workflow design
  • • Test connections between agents
  • • Verify agent handoffs work correctly
  • • Save drafts frequently
  • • Test thoroughly before publishing

Additional Features

Tags

  • • Add tags to organize your swarms
  • • Click "Add tag..." in the top right
  • • Use tags for better categorization and search