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

# How to Create an Agent

> Step-by-step guide to creating an agent from scratch or using a template in Agentspace.

# How to Create an Agent

<Info>
  **What Is an Agent**

  An **Agent** is a goal‑driven conversational assistant that can interpret a user request, pick the right *Topic* (job domain), run one or more *Actions* (tools / integrations), loop on results, and reply with a grounded, useful outcome. Clear agent definition improves reliability, reduces hallucinations, and accelerates iteration.

  Agents + Topics + Actions map like this:

  * **Agent** = container (persona + collection of Topics)
  * **Topic** = intent/job domain (Password Reset, Order Status…)
  * **Action** = executable unit invoked within a Topic (LookupOrderStatus, ResetPassword)
</Info>

> For deeper conceptual detail see: [What is an Agent](/agentspace/agent-concepts)

***

## When to Use a Template vs Start from Scratch

| Choose                  | Use It When                             | Why                                  | Trade‑Off                           |
| ----------------------- | --------------------------------------- | ------------------------------------ | ----------------------------------- |
| Template                | Common pattern (teaching, support, FAQ) | Speed & consistent starter structure | Might include extra Topics to prune |
| Start from Scratch      | Novel domain / experimental persona     | Full clarity, no hidden defaults     | More initial authoring time         |
| Template then Customize | 70–90% match with minor tweaks          | Fast + minimal edits                 | Risk of keeping irrelevant defaults |

***

## Create Your Own Agent

1. **Open My Agents**
   Go to the left menu and click **My Agents**.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/myagentshome.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=c2eb2c4130e47a8b608dfb7164e32898" alt="Agentspace Home" width="3256" height="1921" data-path="images/agentspace/myagentshome.png" />

2. **Click Create New Agent**
   Opens the creation panel.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/02-my-agents.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=a88e6443275c43e34fce0ccd8f2e995a" alt="Create New Agent" width="3256" height="1921" data-path="images/agentspace/02-my-agents.png" />

3. **Select Start from Scratch**
   Choose the scratch option.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/createnewagentstrac.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=169108241ed6a5946f18c0210bdc5e38" alt="Create New Agent" width="3248" height="1921" data-path="images/agentspace/createnewagentstrac.png" />

4. **Fill Agent Details and Create Agent**
   Provide: **Name**, **Description** (audience + outcome + differentiator). Keep name purposeful (avoid `TestAgent1`). Click **Create Agent** to persist the agent once details are complete.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/fillagentdetails.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=bd334981bb46f609241203b22bd4b224" alt="Create New Agent" width="3248" height="1921" data-path="images/agentspace/fillagentdetails.png" />

5. **Open Chat Interface**
   Click **Show Chat** on the new agent card to begin testing.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/startformstrace-showchat.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=124994371d454ea046ccadb55bee383c" alt="Agent Chat Interface" width="3248" height="1921" data-path="images/agentspace/startformstrace-showchat.png" />

6. **Test Your Agent**
   Use the integrated chat interface to perform initial testing. Send a simple message like `Hello Agent ?` to verify basic functionality. This chat feature allows you to:

   * Test real-time communication with your agent
   * Validate response quality and speed
   * Debug issues immediately during development
   * Ensure your agent is properly configured before deployment

   Confirm you receive a quick, appropriate response to validate your agent is working correctly.

   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/startformstrace-helloagent.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=08b2a74db2042963b5020015bb0745cf" alt="Test Chat Exchange" width="3248" height="1921" data-path="images/agentspace/startformstrace-helloagent.png" />

7. **What's Next: Define Your Agent's Capabilities**
   Now that your agent is responding, add your first Topic to define what jobs it can handle. Navigate to the **Topics** tab and click **+ Create New Topic** to establish a specific intent domain (follow [How to Create a Topic](/agentspace/how-to-create-topic)). Once your Topic definition is stable, you can add Actions for specific capabilities, then re‑test with both positive and negative prompts to ensure reliable behavior.

**Naming & Description Patterns**

| Field       | Anti‑Pattern  | Improved                                          |
| ----------- | ------------- | ------------------------------------------------- |
| Name        | `TestAgent1`  | `CustomerSupportCoach`                            |
| Description | `Helps users` | `Coaches support reps on tone & resolution steps` |

Tips:

* Use action verbs ("Guides", "Summarizes", "Resolves").
* Avoid opaque internal acronyms.
* Reserve suffixes for versions only when needed (`_v1`).

***

## Create with a Template

Use this when a pre‑built pattern exists and speed matters.

1. **Open My Agents**
   Go to the left menu and click **My Agents** to access your agent management area.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/myagentshome.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=c2eb2c4130e47a8b608dfb7164e32898" alt="Agentspace Home" width="3256" height="1921" data-path="images/agentspace/myagentshome.png" />

2. **Click Create New Agent**
   Opens the creation panel where you can choose between template or scratch options.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/02-my-agents.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=a88e6443275c43e34fce0ccd8f2e995a" alt="Create New Agent" width="3256" height="1921" data-path="images/agentspace/02-my-agents.png" />

3. **Select a Template**
   Browse available templates and preview included Topics & persona; confirm they match your use case before proceeding.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/selecttemplate.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=c0f8e54e8d3612f7686f471b4d43d687" alt="Select Template" width="3248" height="1921" data-path="images/agentspace/selecttemplate.png" />

4. **Create Agent**
   Click the create button to instantiate your agent with the selected template configuration.

   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/createagentbtn.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=3f8192eff38338ec486150a7a59670d3" alt="Agent Chat Interface" width="3252" height="1920" data-path="images/agentspace/createagentbtn.png" />

   <Info>
     **Configure Agent Basics (Optional)**

     If you want to customize the template, click the **Customize** button to adjust **Name** and refine **Description** to match your specific needs. This step can be done before creating the agent if you want to modify the default template settings.

     <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/configureagent.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=ffa25bfb58bd550ae3527fb6ccb16ac8" alt="Configure Agent" width="3248" height="1920" data-path="images/agentspace/configureagent.png" />
   </Info>

5. **Open Chat Interface**
   Access the integrated chat feature to begin testing your newly created agent.
   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/showchatagent..png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=f3d37ea80772aed0bc0ea7d27a2943a7" alt="Test Chat Exchange" width="3252" height="1921" data-path="images/agentspace/showchatagent..png" />

6. **Test Your Agent**
   Check that your agent works by sending 1–2 simple messages (e.g., "can you teach me what photosynthesis?"). This makes sure the template's Topics and Actions are working correctly.

   Confirm you receive a quick, appropriate response to validate your agent is working correctly.

   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/testcht.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=49a8fa72aa908c020ca2d332727b28d7" alt="Test Chat Exchange" width="3240" height="1916" data-path="images/agentspace/testcht.png" />

   <img src="https://mintcdn.com/benchgen-8fc81371/2OCozHVviHUGu126/images/agentspace/testcht2.png?fit=max&auto=format&n=2OCozHVviHUGu126&q=85&s=6b31df84df68ee0bba8bb1693fed076a" alt="Test Chat Exchange" width="3240" height="1916" data-path="images/agentspace/testcht2.png" />

7. **Prune & Tighten**
   Refine your agent by removing unused Topics, renaming elements for consistency, and adding missing exclusions to improve intent classification accuracy.

***

<Info>
  **When to Add a New Topic vs a New Agent**

  * **New Topic**: Expands a *single* agent's capability (same persona) with a new intent domain.
  * **New Agent**: Different persona, audience, or operational boundary (e.g., internal coach vs external customer support).

  Avoid creating multiple overlapping agents when a Topic would suffice; it dilutes telemetry and increases maintenance.
</Info>

***

## Writing Good Agent Definitions

Design agents so they are focused, auditable, and extensible. A strong initial definition includes:

| Element        | Purpose                                       | Tips                                                       |
| -------------- | --------------------------------------------- | ---------------------------------------------------------- |
| Name           | Human readable identity                       | Action‑oriented, unique, future‑proof                      |
| Description    | Scope summary (audience + outcome + boundary) | One sentence; add exclusion clause if possible             |
| Initial Topics | Core domains to start                         | 2–4 high‑value jobs, each with clear triggers              |
| Key Actions    | Capabilities invoked via Topics               | Start read‑only; add write/update later with confirmations |

**Quick Definition Template**

```
Agent Name: Support Assistant
Purpose: Resolve common customer questions & simple account updates.
Initial Topics: Order Status, Return Eligibility, Password Reset.
Key Actions: LookupOrderStatus, InitiateReturnCheck, ResetPassword.
```

***

## Next Steps

* Add / refine job domains → [How to Create a Topic](/agentspace/how-to-create-topic)
* Add capabilities → [What is an Action](/agentspace/what-is-an-action)
* Deep dive concepts → [What is an Agent](/agentspace/agent-concepts)

Ship small. Observe. Tighten. Expand.
