Esta página no está disponible en español. Se muestra la versión en inglés.

Agents

Create chat agents, choose when they reply, add optional input and output schemas, and debug their runs.

En esta página

An agent is a reusable AI worker. You give it instructions, a model and tools. People talk to it in team chat with an @mention or a direct message. Workflows can also run it in an agent step. You manage agents on the Agents page in the Console.

Agents are not the same as Autopilot. Autopilot is the assistant that helps you operate the Console. See Autopilot and chat.

Who this is for: people who build and look after agents. To create or edit an agent you need the project_contributor role or higher. To delete one you need project_admin. Without permission, the buttons are greyed out.

What you will do on this page: create an agent, choose when it replies and who can see it, add optional input and output schemas, and debug one of its runs.

The Agents page

Agents lists the agents in the project on the left and the selected agent's details on the right: its name, "Configure how this agent replies in team chat.", and Recent sessions. Along the top are Team chat, Browse marketplace and Create agent. Each row in the list has three icon-only buttons: open in team chat, edit and delete.

The Agents page for the project tim33 Default Project: the Team chat, Browse marketplace and Create agent buttons at the top, one agent, Workspace Copilot on openai / gpt-4o-mini with three small icon buttons, and on the right its details with Edit, All sessions and a menu button, and a Recent sessions box that says No sessions yet
The Agents page with the Workspace Copilot agent selected
Nota

A new workspace already has one agent, Workspace Copilot, provided by AgentRuntime. It is the agent behind the Autopilot chat panel, and it is not something you created. Its row has a delete icon, so be careful before you click it. Team chat has an arrow icon because it opens a different app, space.agentruntime.io, in a new tab. A page with No sessions yet sends you there to start a direct message.

An agent here is a chat assistant that people reach in team chat. In a workflow the same agent is a step (see Step types). In Workflow Studio you pick it as a Catalog agent on an Agent step.

Create an agent

  1. Open the form

    In the Console sidebar, click Agents, then Create agent. The dialog says "Set up a chat agent for team chat DMs and @mentions."

  2. Name it

    Enter a Display name, such as Support Bot. It is required. Add a short description if you like.

  3. Write the instructions

    Fill in Instructions (system prompt). It is required. It defines the agent's tone, its scope, and how it should respond in chat. A new agent starts with "You are a helpful assistant for this workspace."

  4. Set the options

    Pick a Model and an API key. Choose Auto-reply and Visibility. See below. Optionally tick Platform tool groups and Connectors.

  5. Create it

    Click Create agent. You should see "Agent created" and the agent in the list.

FieldWhat it does
Display nameThe agent's name. Required.
On or Off switchTurns the agent on or off. A turned-off agent shows a Disabled badge in the list.
Model and API keyThe model the agent uses and which key pays for it. See LLM providers.
Auto-replyWhen the agent replies in channels. See Auto-reply.
VisibilityWhether the agent is private to this project or public. See Visibility.
Instructions (system prompt)What the agent is and how it behaves. Required.
Platform tool groupsBuilt-in tool groups the agent can use: Workflows, Files and Chat.
ConnectorsThe connectors whose tools the agent can call in chats and workflow runs. For a connector that uses an account, choose Shared account or Each person's own.
Input & output schemasOptional. See Input and output schemas.

The form also shows Context budget (planned), which estimates how much of the model's context window the agent uses.

To change an agent later, select it in the list and click Edit. Click Save changes. You should see "Agent updated". Changes apply to new messages in team chat. To delete an agent, open the ⋮ menu in the agent's header and click Delete agent.

The agent settings page for Workspace Copilot with the on switch, Model, Auto-reply set to When @mentioned, Visibility set to Private, the Instructions box, Platform tool groups, Connectors, the Context budget bar and Input & output schemas
An agent's settings

Auto-reply

Auto-reply sets the agent's default for when it replies in a channel. The control is labelled Auto-reply in channels. The choices are:

ChoiceThe agent replies
When @mentionedWhen a message @mentions it. This is the default for a new agent.
AlwaysTo every message in the room
NeverNot on its own

Visibility

Visibility has two choices:

ChoiceMeaning
Private (this project only)The agent is for this project. This is the default.
Public (show on Marketplace)The agent is marked public.

Choosing Public does not list the agent by itself. To list it in the Marketplace, open the agent and click Publish to catalog.

Input and output schemas

Open Input & output schemas at the bottom of the form. It says "Optional structured data contracts for this agent." It opens by itself for an agent that already has a schema. It holds two editors, Input schema (optional) and Output schema (optional).

For each field, click Add field and fill in:

SettingWhat to enter
NameThe field name
TypeString, Integer, Boolean, Number, Array or Object
OptionalWhether the field can be left out
DescriptionWhat the field holds

The Input schema describes structured input for the agent. The Output schema describes the fields the agent must reply with. In a workflow, an agent step whose agent has an output schema puts each field on the step result, so later steps can use it. See Step types.

The Create agent page with a Display name field, an On switch, a Model picker, Auto-reply and Visibility options, an Instructions (system prompt) box, Platform tool groups and Connectors
The Create agent page
The Context budget section of the Create agent page: a coloured bar and a legend for System and tools, Memory and summaries, Safety margin, Recent conversation, Reserved output and Free, with token counts and percentages, followed by collapsed Limits and Input and output schemas sections
The context budget on the Create agent page

Limits

Limits stop an agent that is stuck in a loop from running for ever. They are a safety net, not a budget to tune tightly: the defaults let an agent do a lot of work in one step. Open the agent and find the Limits section.

SettingWhat it does
Max tool calls per stepHow many tool calls one agent step may make. Leave it empty for the default, 200. Every call counts, even when the agent makes several at once.
Per-tool limitsCap one tool, for example a paid search tool at 3 calls. Click Add a tool limit, pick or type the tool, and enter Max calls. When a tool reaches its cap, the agent is told so and carries on with its other tools; the step does not fail. Calls past the cap still count toward Max tool calls per step.
When the limit is reachedPause and ask (default), Fail, or Continue automatically (up to a number of times you set in Continue up to, 3 by default).
The Limits section with Max tool calls per step set to 200, a per-tool limit row capping workflows_execute_command at 3 calls with an Add a tool limit button, and When the limit is reached with Pause and ask (default) selected, Fail, and Continue automatically
The Limits section of an agent's settings

The counts apply to one agent step. A new step, or the same step in the next run, starts again at zero.

When an agent reaches its limit

With Pause and ask, the step does not fail and keeps everything it has done so far. A Tool call limit reached task appears in Command Center:

Command Center with one item under Needs your attention: the Limit check workflow with a Tool call limit reached badge, the line The agent used its 1 tool call, and View, an Add calls box, Continue and Stop buttons
A Tool call limit reached task in Command Center
  • Continue gives the agent more calls (you can change how many) and it picks up exactly where it stopped. Nothing runs again.
  • Stop fails the step. You can add a reason.

The run's events show Tool call limit reached and, after a Continue, Continued with the number of calls added.

An agent step inside a for_each or while loop cannot pause. It fails when it reaches the limit, whatever you chose.

See an agent's sessions

Select an agent in the list. The panel on the right shows Recent sessions: up to 15 of the agent's recent chat sessions. Each row shows a status, the chat it belongs to, and when it started.

StatusMeaning
Reply in progressThe agent is working on a reply.
Turn completeThe agent finished its turn.
Waiting for replyThe run is paused and waits.
FailedThe run failed.
StoppedThe run was stopped.

Each row has the chat icon (Open in team chat) and a Debug button. All sessions opens the runs list on the Runs page, filtered to this agent. A new agent shows No sessions yet. Start a direct message with it in team chat.

Debug an agent run

Click a row, or click Debug. The Agent run debugger opens in a side panel. Click Open full debugger at the bottom of the panel to open the same view as a page, titled Agent run and the agent's name. Its address is /agents/<agent id>/runs/<run id>. You can also open /agent-runs/<run id> directly. Back returns you to Agents, or to the runs list on the Runs page if the page has no agent.

The top of the debugger shows the agent's name, the run ID, the run's status, and when it started. If the run has a problem, such as a failure, a red box describes it. While the run is active, the top also shows the controls to pause, resume or stop it.

Two buttons sit at the top right:

  • Open in chat opens the conversation in team chat in a new tab. It appears when the run belongs to a conversation.
  • Copy run id copies the run's ID. You should see "Run ID copied". Give it to support if you need help.

Four tabs show the details:

TabWhat it shows
TimelineThe run's events, with a time and a short summary for each. Tasks waiting for a person appear above them under Human review. It shows up to 100 events and refreshes while the run is active. An empty run says "No run events yet."
ToolsOne entry for each tool the agent called, with the tool's name, when it ran, and a short summary. If there are none, it says "No tool calls recorded for this turn."
ContextSession details such as session_mode, conversation_id, agent_id, chat_turn_id, source and model_ref. Only the ones the run has are shown. Otherwise it says "No session context on this run."
RawThe events, the context and the run as JSON, for support or for your own tools

Only runs that belong to an agent, to a conversation, or that a chat started have a Debug button.

Common problems

ProblemWhat to try
Create agent is greyed outYou need the project_contributor role or higher.
The agent never answers in a channelCheck Auto-reply. If it is Never, the agent does not reply on its own. With When @mentioned, @mention the agent. Also check that the agent is On.
The agent is public but not in the MarketplaceOpen the agent and click Publish to catalog.
A session has no Debug buttonThe run does not belong to an agent or a conversation.
The debugger page says it could not resolve the workflowOpen the run from Agents or Runs. Or add workflow_id to the address.
The Timeline says "No run events yet."The run may have just started. The tab refreshes while the run is active.

Next steps

Editar esta páginaagentruntime-io/agentruntime-docs