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

# Create an agent

> Describe what you need in your own words and Treble writes the instructions, picks the tools and builds your AI agent.

You don't need to write a prompt from scratch to create an AI agent. Go to **AI Agents**, describe in one sentence what you want it to do, answer a few questions and Treble generates the agent for you.

<img src="https://mintcdn.com/trebleai/X1E9IO2QYTqwvcyv/images/ai-center/ai-center-create-1-landing.gif?s=3aaf5283022950bc9943f4b47b07381d" alt="AI Agents landing page with the prompt box and the templates" width="800" height="501" data-path="images/ai-center/ai-center-create-1-landing.gif" />

<Note>
  The generator writes a very solid first draft, but it is still a draft. Review it, adjust it and test it before connecting it to a real conversation.
</Note>

## Start with a description or a template

In the text box, write what you want your agent to do. The clearer you are, the fewer questions you'll have to answer later.

A good description includes:

* **The goal**: what the agent has to achieve.
* **Who it talks to**: prospects, existing customers, students, patients.
* **What information it needs to collect**: name, email, budget, product of interest.
* **Where the conversation ends**: hand off to sales, book an appointment, close the case.

For example: *"We're a company that sells online courses. I need an agent to qualify my prospective students, collect name, email and course of interest, and hand them off to the sales team."*

If you'd rather start from something ready-made, pick one of the four templates and edit it:

| Template              | What it's for                                          |
| --------------------- | ------------------------------------------------------ |
| **Qualify leads**     | Assess interest, budget and delivery times.            |
| **Schedule meetings** | Coordinate and confirm meetings with your prospects.   |
| **Support chat**      | Resolve frequent questions and escalate complex ones.  |
| **Recover carts**     | Re-engage customers who did not finish their purchase. |

Below the text box you'll find **All your agents**, the list of the agents you already created with their connected conversations and their last activity. From there you can search, edit or delete them.

<div class="hr" />

## Answer the chat's questions

Once you send your description, the chat will ask you questions to close the remaining gaps: what concrete outcome you expect, what data it should collect, which team to hand off to, what to do when the contact goes off topic.

<img src="https://mintcdn.com/trebleai/X1E9IO2QYTqwvcyv/images/ai-center/ai-center-create-2-questions.png?fit=max&auto=format&n=X1E9IO2QYTqwvcyv&q=85&s=ea87a1e2896e67b9b5b340587bf9c2d4" alt="The generator asking questions to define the agent" width="3024" height="1740" data-path="images/ai-center/ai-center-create-2-questions.png" />

Some questions come with options to choose from and others expect you to type the answer. If none of the options fit, use **Other...** and explain it in your own words.

<Tip>
  Answer with real examples from your operation instead of generalities. "Hand off to sales once I have name, email and course of interest" produces a far better agent than "qualify leads well".
</Tip>

## Attach your own files

During the conversation you can attach files with the **+** button: a PDF with your catalog, a price list, a support script or your team's frequently asked questions.

<img src="https://mintcdn.com/trebleai/X1E9IO2QYTqwvcyv/images/ai-center/ai-center-create-3-attachment.gif?s=cf94e4535444776e52eb3bfdc6d8636d" alt="A PDF attached in the generator conversation" width="800" height="501" data-path="images/ai-center/ai-center-create-3-attachment.gif" />

Each file can be used in three ways, and the generator confirms which one it will apply:

* **Conversation context**: helps the generator understand your business while it builds the agent, but is not available during conversations with your customers.
* **Knowledge base**: stays saved in the agent so it can answer questions about its content.
* **Both**: used to build the agent and also kept in the knowledge base.

You can attach up to 5 files. If you want to add more material later, you can do it from the **Knowledge base** tab in the editor.

<div class="hr" />

## Review the plan before generating

When the generator has everything it needs, it shows you a plan of what your agent will do: its purpose, the goal, the actions it will execute and the constraints it will respect.

<img src="https://mintcdn.com/trebleai/X1E9IO2QYTqwvcyv/images/ai-center/ai-center-create-4-plan.png?fit=max&auto=format&n=X1E9IO2QYTqwvcyv&q=85&s=21f99a2149adac505f2b161e1993cc82" alt="Plan proposed by the generator before creating the agent" width="1652" height="1734" data-path="images/ai-center/ai-center-create-4-plan.png" />

From there you have two paths:

<Steps>
  <Step title="Continue to editor">
    You confirm the plan and the generator writes the agent. It takes about a minute: first it drafts the instructions, then it reviews their quality and finally it improves them.
  </Step>

  <Step title="I want to change something">
    You explain what to correct and the generator reworks the plan with your adjustments. You can repeat this as many times as you need: nothing is created until you confirm.
  </Step>
</Steps>

## What you get at the end

When generation finishes you land in the editor with the agent already built:

* **Name and description** proposed from what you asked for.
* **Complete instructions**, with the tone, the scope, the steps and the edge cases.
* **Suggested tools** based on what the agent has to do.
* **Knowledge base** with the files you marked for that use.

Tools that need data from you are flagged as pending configuration. That's the next step.

<div class="hr" />

## Next steps

<CardGroup cols={2}>
  <Card title="Configure your agent" icon="sliders" href="/en/docs/main-platform/ai-center/configure-agent">
    Adjust the instructions, complete the pending tools and define what to do if the contact doesn't reply.
  </Card>

  <Card title="Test your agent" icon="flask" href="/en/docs/main-platform/ai-center/playground">
    Validate the behavior in the playground and send yourself a test conversation on WhatsApp.
  </Card>
</CardGroup>
