Time to complete: 5 minutes
What you’ll get: A working AI agent built visually + full source code in your IDE ready for customization
Start with zero code using the visual Agent Workbench, then seamlessly transition to full development control with downloadable source code.
Agent Workbench

Quick Build-to-Code Process

1

Create Agent Visually

Go to app.xpander.ai and click + New Agent.The workbench has two main sections:
  • Left: Agent configuration (tools, instructions, settings)
  • Right: Agent preview (chat testing and visual graph)
No coding required - build everything through the UI!
2

Auto-Generate Instructions

In the Instructions tab:
  1. Click “Write instructions with AI”
  2. Enter a simple prompt like: AI Agent that can get the latest news about any topic from Google News, and send those news via email
  3. Watch as the system automatically populates:
    • System prompt
    • Agent rules
    • Goals and behavior guidelines
3

Add Tools Visually

In the Tools tab, click + Add tools and select:
  • Google News → Retrieve News Articles By Topic
  • Built-in actions → Send Email
  • Add any other tools you need from the gallery
4

Test in Workbench

Use the Chat module in the Agent Preview panel to test your agent.Test with: Get the latest news about LLM reasoning models, and send them to me over email
5

Download Your Code

Ready to add custom logic? Click the Download code button in the top right.Or use the CLI:
# Install CLI
npm install -g xpander-cli

# Download your agent code
xpander agent init "your-agent-name"
You’ll get a complete project with:
  • Pre-configured Python/Node.js code
  • All your workbench settings
  • Environment variables ready
  • Your tools and instructions baked in

What You Get in Your IDE

🎉 Complete codebase with everything from the workbench:
from xpander_sdk import Backend, on_task, Task, register_tool
from agno.agent import Agent

# Your workbench tools are automatically available
# Add custom tools here:

@register_tool
def my_custom_function(data: str) -> str:
    """Your custom business logic"""
    # Add your own logic here
    return f"Processed: {data}"

@on_task
def handle_request(task: Task):
    backend = Backend(task.configuration)
    agent = Agent(**backend.get_args())
    
    # Your workbench instructions are already configured
    result = agent.arun(message=task.to_message())
    task.result = result.content
    return task

Key Benefits of This Approach

Visual Prototyping

Build and test ideas quickly without writing code

AI-Generated Instructions

Get optimized prompts and configurations automatically

Seamless Transition

Download includes all your visual configurations

Full Development Control

Add custom functions, APIs, and business logic

Advanced Customization Ideas

Testing Your Custom Code

1

Local Development

xpander dev --debug
All Slack messages, webhook calls, and UI interactions route to your local machine.
2

Real-time Testing

  • Test through the workbench chat UI
  • Send Slack messages (if connected)
  • Trigger webhooks from external systems
  • See debug logs in your terminal
3

Deploy When Ready

xpander deploy
Your customizations go live instantly with automatic scaling.

Next Steps

Now that you have both visual design and code control:
  1. Backend Configuration - Advanced agent settings
  2. API Reference - Full SDK documentation
  3. Examples - See more complex agent implementations