Skip to content

Building an agent

Open an agent from the Agents list to edit it. This page walks through the editor: what each tab sets, how to try the agent out, and how a version goes live.

The editor

The header shows the agent's name, a Save button, which carries a dot while you have unsaved changes, and the Release control. Where agent collaboration is turned on for your organization, the header also shows N agents at work while any agent is working in the project, your inbox, and Message, which sends this agent a message (see Messages & inbox).

Below the header sit the tabs:

Tab What it holds
Brief What the model is told on every run, the knowledge it searches, and who it may message. Below
Model The model, a fallback, and the response limits. Below
Tools What the agent may call. Below
Memory The agent's own memory store. See Agent memory
Gates Limits, checks, approvals, exposure and spend caps. See Limits, checks & exposure
Versions, Runs, Workflows The version history, every run, and the workflows that use the agent. See Versions & runs
Memory data What the agent has remembered. See Agent memory
Inbox Where agent messaging is on: the conversations the agent took part in. See Messages & inbox

The first five tabs edit the agent, with Try it beside them (see Try it). A tab whose settings have errors shows the count beside its name, and the problems themselves are listed under Issues below the form.

Your edits are kept in the browser while you work. If you leave with unsaved changes and come back, the editor restores them and says Unsaved changes from your last visit were restored., with Discard changes to drop them. Closing or reloading the tab with unsaved changes asks first.

Viewers, and people with view-only access to the project, see the editor read-only: You have read-only access to this project.

Saving and publishing

  • Save stores your edits as a new version. It does not change what runs.
  • The Release control publishes. It is the same control the workflow editor uses (see Publishing & versions): Publish when nothing is live, Save & publish when you have unsaved edits, Live when the live version is the one you are looking at. For an agent, publishing saves the draft and activates it in one step; there is no dialog. Its menu also offers Save draft only (Ctrl+S or ⌘S) while there is something to save and, on a live agent, Pause — stops triggers and references, which takes the live version down.
  • Publishing checks the version first:

    • the definition must be valid;
    • the model's provider must have an API key in your organization, and the model must be an enabled model of your organization's catalog;
    • every tool's required connection slot must be bound, and its connections must exist in the project;
    • a workflow it calls as a tool must be published, and an agent it calls must be published and allow being called.

    Saving already warns about a provider without a key, an unknown model or an unbound slot. Publishing a version that fails any check is refused, and the editor says The draft was saved, but this version cannot go live yet — see the issues below.

  • If someone else saved while you were editing, saving is refused: Someone else saved version 5 while you were editing. Reload before saving again. Reload the page to load their version, then make your changes again.

Brief

The Brief tab is what the model is told on every run.

  • Description for other agents: what this agent is for, in a sentence. Other agents read it when deciding whether to hand work to this one.
  • Persona: Role, Backstory and Goal. They are combined into the standing brief in that order.
  • Output: Expected Output, a plain-language description of the result that is appended to the brief, and Schema, a JSON Schema the final answer must satisfy.
  • Instructions: the brief as raw text. When set, it replaces the combined persona word for word.
  • Knowledge: filters over the project's Knowledge Base. Each filter picks a Scope (project, org or all; default project), optional Folders and Entry Ids, Top K (1–20 results, default 4) and Inject: tool (the default) gives the model a kb_search tool to call when it wants, relevant puts the best matches in front of it on every turn.
  • Communication: who may message this agent and whom it may message. These settings take effect only where agent messaging is turned on for your organization. See Messages & inbox.

Brief from Knowledge

Brief from Knowledge binds the brief to a versioned prompt from the Knowledge Base instead of typing it. Choose one under Use a prompt from Knowledge… (No prompts in this project yet when there are none), or click Save persona as prompt to turn the persona you already wrote into a prompt and bind it in one step.

Once bound, the panel reads Brief from “Support brief” · v2 with a Version picker and a field per Variables entry the prompt declares; every variable needs a value before you can save. The role, goal and backstory are then not used, and Use my own text unbinds the prompt.

The prompt's text is written into the agent when you save, so publishing a new version of the prompt never changes an agent that is already running. When a newer version exists, the panel says so and offers Update to v3, which saves a new agent version. See Knowledge Base.

Checking the brief

Two checks sit under the form. Preview the brief shows the standing brief exactly as the model receives it. Test against a sample checks a JSON sample against the output schema: paste it and click Check.

Model

  • Primary provider and Primary model: only providers that have an API key in your organization are offered, the same list for every member who can edit the agent. With none, the list reads No providers with API keys configured; add a key under Providers. A saved provider that has lost its key is flagged: every run would fail until you pick another or add the key. A saved model that is no longer available stays listed first, marked Unavailable.
  • Fallback provider and Fallback model: optional (None by default). The call is re-issued once on the fallback when the primary model fails with an outage.
  • Limits: Temperature (0 is deterministic, 2 the most creative; left empty, the model's default) and Max tokens, the most the model may generate per response (left empty, 8192).

Tools

The tools are the model's allowlist: it may call exactly these and nothing else. With none, the agent can only answer from what it knows.

Add tool opens Add a tool, with four tabs:

Tab Offers
Nodes Workflow node types an agent can call, such as sending a message or making an HTTP call
Workflows This project's workflows, run as a sub-workflow
Agents This project's other agents
MCP The tools of your organization's shared MCP servers, of your own MCP connections, and of connections granted to this project

A row that cannot be added says why instead of disappearing: a node type that decides flow rather than doing something (An agent cannot call this node type — it decides flow, or reaches an agent another way.), a workflow or agent with nothing published yet (No active version yet. Activate it before binding it.), or an agent that does not allow other agents to call it (Not exposed as a tool. Turn on "As Tool" under Exposure on its Gates tab.). Adding the same source twice is allowed (Add again); the second tool gets a numbered name.

Adding a tool from someone's individual MCP connection grants that connection to the project first (MCP connection granted to this project — the agent runs with its owner's account.).

Each tool becomes a card. Expand it to set:

  • Tool name: what the model calls. Letters, digits, underscores and dashes, unique within the agent.
  • Description for the model: what the tool does and when to call it. The model reads this.
  • Approval: Run without approval, Ask every time, or Ask when an expression says so with an Approval expression over the call's arguments. For now, Ask when an expression says so asks every time, like Ask every time, whatever the expression says. A gated call waits in the approvals inbox before it runs.
  • For a node tool, Fixed parameters the model cannot change, and the node's Credentials: its connection slots, bound as on a workflow node (see Connectors & connections). The model fills in the parameters you leave open.
  • For a workflow tool, Wait for the workflow to finish.
  • For an agent tool, Mode: Call and return the answer, or Hand the conversation over. A handoff sets History for the callee: Everything so far, The last few turns or Only the handoff note. Less history costs fewer tokens.

Preview what the model sees lists every tool as the model receives it, after renames and defaults and including the tools other settings add.

Two switches follow the cards:

  • Let this agent delegate to coworkers adds the delegate_to_agent and ask_agent tools. Only the agents you tick can be reached, and only agents of this project that allow being called are listed.
  • Can search web adds the search_web and fetch_url tools, so the agent can look up public information and read the pages it finds.

Other settings add tools of their own: knowledge filters set to tool add kb_search, and memory adds the tools that read and write the agent's store. Where agent collaboration is on, the agent's runs also get the messaging and roster tools, except when it runs as another agent's tool (see Messages & inbox).

Try it

Try it is a chat with the agent beside the editor. Type in Ask this agent something… and click Send. Each message is a real run of the agent: the answer streams in, tool calls appear as they happen (Called …), Show steps opens the step-by-step detail, and each turn shows what it cost. The conversation so far in the panel is sent with each message, so the agent answers in context (the most recent 50 turns, up to about 64 KB of text). The Start a new conversation button clears the panel, and with it what the next message carries.

Try it runs your newest saved version when it is ahead of the live one, so you can test an edit before publishing it; the panel then reads Trying saved draft v5. Otherwise it runs the live version (Trying live v4). Unsaved edits are not included: save first.

Try it runs are test runs, so they never write into the memory production runs use. When Chat is off on the Gates tab of the version that would run, the run is refused. An archived agent cannot be tried.