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

# Playground

> Build, test, and refine your agents in real-time

The Playground is where you create and test agents. It's split into two main areas: the YAML editor on the left and the chat interface on the right.

<Frame>
  <img src="https://mintcdn.com/arttacsolutions/exBco3_ad4-G0WEa/images/playground_interface.png?fit=max&auto=format&n=exBco3_ad4-G0WEa&q=85&s=e0410e19d0d432593e2fceac2389bc08" alt="Playground Interface" width="1911" height="902" data-path="images/playground_interface.png" />
</Frame>

## Interface Overview

### Left Side: YAML Editor

This is where you write your agent configuration. You'll see:

* **Agents count badge**: Shows how many agents are in your config
* **Tools count badge**: Shows which tools are configured
* **Version dropdown**: Switch between saved versions (when editing an agent)
* **Toolbar buttons**: Load Config, Save Agent, Generate Config

<Info>
  **Learning YAML syntax?** See the [YAML Configuration](/documentation/yaml-configuration) guide for complete syntax reference
</Info>

### Right Side: Agent Preview

Test your agent here:

* **Connection status**: Shows if your config is loaded
* **Chat interface**: Send messages to test your agent
* **Streaming responses**: See agent responses in real-time

## Building Your First Agent

<Steps>
  <Step title="Start with a Template">
    Click **Load Config** in the toolbar

    <Frame>
      <img src="https://mintcdn.com/arttacsolutions/exBco3_ad4-G0WEa/images/load_agents.png?fit=max&auto=format&n=exBco3_ad4-G0WEa&q=85&s=f9d02d7c58363276eacf2eb1b23012ab" alt="Load Config Dialog" width="895" height="712" data-path="images/load_agents.png" />
    </Frame>

    Select **"Basic Dynamic Agent Test"** to get a simple working agent
  </Step>

  <Step title="Load the Configuration">
    After selecting a template, click **Load Configuration**

    Wait for the connection status to show "Connected" in green
  </Step>

  <Step title="Test Your Agent">
    Type a message in the chat interface on the right

    Your agent will respond using the configuration you loaded
  </Step>

  <Step title="Modify the Config">
    Edit the YAML on the left side. Try changing:

    * `system_prompt`: Change how the agent behaves
    * `temperature`: Adjust creativity (0.0 = focused, 1.0 = creative)
    * `max_tokens`: Control response length

    <Info>
      **Want to understand all configuration options?** Check:

      * [Agent Types](/documentation/agent_config/types_config/agent-types) - Different agent architectures
      * [Model Selection](/documentation/agent_config/types_config/model-selection) - LLM configuration
      * [Prompt Configuration](/documentation/agent_config/types_config/prompt-configuration) - System prompts and templates
    </Info>
  </Step>

  <Step title="Reload and Test">
    Click **Load Configuration** again to apply your changes

    Test with the same message to see the difference
  </Step>
</Steps>

## Using the AI Config Generator

Don't want to write YAML from scratch? Use the AI generator.

<Steps>
  <Step title="Open the Generator">
    Click **✨ Generate Config** in the toolbar

    <Frame>
      <img src="https://mintcdn.com/arttacsolutions/exBco3_ad4-G0WEa/images/config_generator.png?fit=max&auto=format&n=exBco3_ad4-G0WEa&q=85&s=4ca8dce180988ca1b91dbfffb019519e" alt="Config Generator Modal" width="837" height="437" data-path="images/config_generator.png" />
    </Frame>
  </Step>

  <Step title="Describe Your Agent">
    Type what you want your agent to do. For example:

    ```
    Extract name, email, and phone number from business cards and meeting notes
    ```

    Be specific about what data you need and what the agent should do
  </Step>

  <Step title="Generate">
    Click **Generate Config** and wait a few seconds

    <Frame>
      <img src="https://mintcdn.com/arttacsolutions/exBco3_ad4-G0WEa/images/generated_config.png?fit=max&auto=format&n=exBco3_ad4-G0WEa&q=85&s=beb63aa38f8de7a2bda6954b62edbaf8" alt="Generated Configuration" width="1912" height="887" data-path="images/generated_config.png" />
    </Frame>

    The AI will create a complete YAML configuration
  </Step>

  <Step title="Review and Load">
    The generated YAML appears in your editor

    Review it, then click **Load Configuration** to test it
  </Step>
</Steps>

<Tip>
  **Need help writing descriptions?** Check out the [AI Config Generator guide](/documentation/advanced/ai-config-generator) for tips and examples
</Tip>

## Adding Tools and Prompts

Click the **+** button in the toolbar to quickly insert configurations:

<Frame>
  <img src="https://mintcdn.com/arttacsolutions/exBco3_ad4-G0WEa/images/add_prompt_tool.png?fit=max&auto=format&n=exBco3_ad4-G0WEa&q=85&s=ea4a180b72f91031be2a22c4110f9ecd" alt="Insert Tool or Prompt" width="885" height="487" data-path="images/add_prompt_tool.png" />
</Frame>

### Insert Tool

Adds a sample tool configuration at your cursor position

**→ [Tools Configuration](/documentation/studio/tools)** - Available tools and setup

### Insert Prompt

Inserts a prompt reference from your prompt library

**→ [Prompt Configuration](/documentation/agent_config/types_config/prompt-configuration)** - Advanced prompt features and variables

<Note>
  To add knowledge bases to your agent, manually configure them in the YAML. See the [Knowledge Base Setup](/documentation/agent_config/knowledge-base-setup) guide for YAML syntax.
</Note>

This helps you quickly add tools and prompts without typing them manually.

## Saving Your Agent

Once you're happy with your agent:

<Steps>
  <Step title="Click Save as Agent">
    This opens a dialog to name your agent
  </Step>

  <Step title="Give it a Name">
    Choose a clear, descriptive name like "Resume Parser" or "Support Ticket Router"
  </Step>

  <Step title="Save">
    Your agent is now saved and appears in **Agent Overview**
  </Step>
</Steps>

<Check>
  Saved agents can be accessed via API, deployed as chatbots, or further refined
</Check>

## Working with Versions

When you save changes to an existing agent, it creates a new version. The version dropdown appears in the Playground toolbar when editing an agent:

### Version Controls

**Green checkmark (✓)**: Current version (deployed and active)

**Yellow scroll (📜)**: Historical version (viewing only)

### Switching Versions

1. Click the version dropdown in the toolbar
2. Select a version to view
3. To make it active, go to **Agent Overview** → **Settings** → **Versions** → **Deploy**

<Warning>
  When viewing a historical version, you're in read-only mode. Any changes will create a new version when saved
</Warning>

## Tips for Effective Testing

<Tip>
  **Test edge cases**: Try unusual inputs, very long messages, and questions your agent shouldn't answer
</Tip>

<Tip>
  **Use the Load Config button**: After every YAML change, click "Load Configuration" to apply changes. The chat won't update automatically
</Tip>

<Tip>
  **Watch the badges**: The Agents and Tools badges show what's configured. Hover to see names
</Tip>

<Tip>
  **Start simple**: Get a basic agent working first, then add complexity (knowledge bases, tools, structured output)
</Tip>

## Common Issues

<Warning>
  **"Connection failed"**: Your YAML has errors. Check for typos, missing colons, or incorrect indentation
</Warning>

<Warning>
  **"Agent not responding"**: Make sure you clicked "Load Configuration" after making changes
</Warning>

<Tip>
  **YAML indent errors**: Use 2 spaces for indentation, not tabs. Be consistent with spacing
</Tip>

## What's Next?

<CardGroup cols={2}>
  <Card title="YAML Configuration" icon="code" href="/documentation/yaml-configuration">
    Complete YAML syntax reference
  </Card>

  <Card title="Agent Types" icon="robot" href="/documentation/agent_config/types_config/agent-types">
    LLM agents, ReAct agents, and workflows
  </Card>

  <Card title="Knowledge Base Setup" icon="database" href="/documentation/agent_config/knowledge-base-setup">
    Configure RAG and retrieval settings
  </Card>

  <Card title="Structured Output" icon="table" href="/documentation/advanced/structured-output">
    Extract structured data from agents
  </Card>
</CardGroup>
