You create an agent by describing what it should do and attaching the documents it should follow. The Agent Builder then plans the agent with you, asks about anything left open, and writes its program. You can also create an empty agent and set it up later.
Transcript
To create an agent, open the agent picker in the top bar and choose Add agent. Give it a name, then describe who it serves, what it does, and the rules it follows. You can also attach policy documents or example transcripts. Leave Plan on, and the Agent Builder works out a plan and asks about anything left open before it builds. Click Build. The Playground opens your new agent, and the builder starts planning. When it needs a decision, a question card appears. Pick an option, or type your own answer. You can step away while it works. The session shows Needs your input when it is waiting for you. Once you confirm the scope, the builder writes the agent's program, sets up a sandbox database, and tests the result.
#Before you start
Collect what the agent should be built from. The builder reads any of these:
- Policy documents: fare rules, fee tables, refund and change policies.
- Tool schemas: descriptions of the APIs the agent will call, such as a booking lookup or a cancellation endpoint.
- Example transcripts: real or sample conversations that show how customers ask and how a good answer sounds.
You also need a role that allows creating agents in the workspace. If yours does not, the Playground tells you so and you can ask an organization administrator for access.
#Open the window
- Click the agent name in the top bar to open the agent picker.
- Click Add agent at the bottom of the list. In a workspace with no agents yet, click Build your first agent instead.
The window opens on the Agent step. The Organization and Workspace steps before it are already done: the new agent is created in the organization and workspace you have open. Click either step to check it, or to edit its details, then click Continue to agent to return.
#Name and describe the agent
Type a name in Agent Name, for example
ACME Air Rebooking Agent.Under Describe it, write what the agent should do, for whom, and by which rules. Name its source of truth: the files you attach, or the system it should look things up in. For example:
textACME Air's customer-service agent. It helps travelers look up their trips, change or cancel flights, and understand fees. Travelers are identified by their booking code (for example ABC123). Follow the attached fare rules for change and cancellation fees. Look up trips and make changes through the booking API described in booking-api.yaml. Never promise a refund the fare rules do not allow.Attach your documents: click Attach policy docs, tool schemas, or example transcripts, or drag files onto the box. Images can total 10 MB; other files can be up to 5 MB each. Documents, spreadsheets, text and data files, images and zip archives are accepted.
Do not worry about covering everything. Whatever you leave open, the builder asks you before it builds.
#Choose how the builder starts
| Switch | Default | What it does |
|---|---|---|
| Plan | On | The builder first investigates your description and files, asks you questions, and proposes a plan. It builds only after you accept the plan. Turn it off to have the builder start editing right away. |
| Thinking | On | The builder reasons before each step. Slower, and better on complex agents. Off is quicker. |
| Beta | Off | The builder builds the agent on the Beta runtime, the newest release of the runtime, and every branch you make from it runs on Beta. Things may change. This switch only appears if Beta is available to your organization. See Try the Beta runtime. |
| Start empty | Off | Creates an empty agent with no build session. The description and attachments are turned off and the button changes to Create agent. Use this to set the agent up later in the builder, or from the Apollo CLI. |
Then click Build (or press ⌘ ↵, Ctrl ↵ on Windows and Linux). Build stays unavailable until the agent has a name and a description or at least one attached file.
#What happens next
The window closes and the new agent opens. A builder session starts with your description and files as its first message, in Plan mode if you left Plan on. If you switched on Beta, the agent is built on the Beta runtime, and a Beta chip shows beside the branch pill in the top bar.
- Answer the builder's questions. They appear on cards above the composer, each with options and a field to type your own answer. See Answer the builder's questions.
- Read the Build plan the builder proposes: a summary and numbered steps. If something is wrong, say so in the composer and the builder revises it.
- Click Build this. The builder switches to Build mode and carries out the plan, showing its progress step by step.
- The builder checks that the program is valid and tests the new agent. Because it is building a new agent from scratch, it runs both regressions and generated conversations by itself until it reaches a first working agent. See Regressions and evaluations.
As an example, building a first working ACME Air agent from a description of a few paragraphs took about an hour. In that time the builder asked one question, asked to confirm the scope, and ran its own test conversations; your agent may take more or less time.
If a build turn stops partway with a block headed Gates rejected the result, ask the builder to fix the findings and continue; see If a turn ends with Gates rejected the result.
Everything the builder writes is held as Unsaved changes until you push it, so you can talk to the new agent in the conversation pane first. Push to save the agent's first commit; see Unsaved changes and Push. Customers can only reach the agent once a commit is live and the agent is on a channel; see Make a commit live, lock a branch, and roll back and Ways to deploy.