Agents
An agent is an AI worker you configure with a model, instructions, tools, knowledge and skills. You can test it as you build, then run it from a workflow, a graph or the list.
The Agents list
Click Agents under APEX Studio in the menu (/studio/agents). The page is titled Agent Studio: "Create and manage AI agents powered by your models and tools." Click New Agent to create one.
There are two tabs: Agents and Data Connections (each shows a count).
Find an agent
- Search agents… matches the name and description.
- Status: All statuses, Active, Inactive or Draft.
- Model: All models or one model used by your agents.
- Visibility chips: Private, Public, Project.
- Clear filters and a count such as "12 agents".
Agent cards
Each card shows the name, a visibility badge, a status badge, the description (or "No description provided."), the model and its provider, "N tools", the last run ("Never", "Just now", "5m ago") and the owner. Click a card to open it. Buttons on each card:
| Button | What it does |
|---|---|
| Edit | Opens the editor |
| Clone | Makes a copy. Toast Agent cloned as "(name)". |
| Run | Opens a window to run the agent once |
| Delete | Asks Delete Agent — Are you sure you want to delete "(name)"? This action cannot be undone. Toast "Agent deleted successfully." |
Run an agent. In the Run window, type a prompt ("Enter your prompt…") and click Run Agent (⌘↵ also submits). It shows your input and the output (or "Error: …"), with New run and Close. If it fails: "Failed to run agent."
| Situation | You see |
|---|---|
| No agents | "No agents yet — Get started by creating your first AI agent." |
| Filters hide all | "No agents match your filters" |
| It could not load | "Failed to load agents. Please try refreshing the page." |
Data Connections tab
Shows "N connection(s) configured" with Add Connection and Manage All. Cards show the type, the name and a test status. Types include PostgreSQL, MySQL, SQL Server, SQLite, MongoDB, BigQuery, Snowflake, Redshift, ClickHouse and DuckDB. Clicking anything opens the Data Connections page. Empty: "No data connections yet — Connect to databases to enable agents to query data directly."
Create or edit an agent
Click New Agent or Edit. The editor opens full screen (/studio/agents/new or /studio/agents/(id)). The header shows a back arrow, the name, a status badge, "• Unsaved" when needed, Save Draft and Publish. There are three tabs on the left (Configuration, Tools & KB, Advanced) and a Test panel on the right.
Saving.
- A blank name stops both buttons: "Agent name is required before saving." and the Name field turns red.
- Save Draft keeps the agent as a draft. Toast "Agent saved successfully."
- Publish saves, then makes the agent active. Toast "Agent published and is now active."
- Built-in sample agents cannot be edited. If you try, the editor copies the agent and saves your changes there: "Showcase agent forked — editing your own copy."
- Only the owner or an administrator can edit an agent.
Configuration tab
| Field | What to enter |
|---|---|
| Name (required) | For example "Customer Support Agent" |
| Description | A short summary |
| Visibility | Personal, Public or Project (with a project picker). Default Personal. "Who can discover and use this agent." |
| Persona | Optional identity that wraps the agent's prompt. "(inherit project default · or none)" is the default. Each option shows the name, archetype, tone and status. See Personas |
| System Prompt | The agent's instructions. Click a chip to insert {{user_input}}, {{context}}, {{today}} or {{agent_name}}. Default text: "You are a helpful assistant." plus those placeholders |
| Model (required) | A card for each model with its provider, context size and price. Below it, "Selected: … — context window N tokens" |
| Temperature | A slider from 0 to 2 (default 0.7). Lower is steadier, higher is more creative |
| Max Output Tokens | 1 to 128000 (default 2048) |
| Output Format | Freeform or JSON Schema |
| Reasoning Mode (Think) | Switched on by default. Shows the model's reasoning for models that support it |
Tools & KB tab
- Tools. Search ("Search tools…") and tick the tools the agent may use. Each row shows the name, a category, a description and "Scope: read/execute…". Tools that need a project are greyed unless the agent's visibility is Project. Tools whose provider you have not connected say "Connect (provider) to use this tool" with a link to Connectors. Empty: "No tools match."
- Skills. Search ("Search skills…") and attach skills. "N attached. Skills become available to the agent at runtime." Empty: "No skills available."
- Knowledge Bases. Search and tick the knowledge bases the agent may read. Empty, auto-created project knowledge bases are hidden behind "Show N empty project knowledge base(s)". When at least one is ticked, Retrieval Settings appear: Top K (1 to 20, default 5, how many pieces to retrieve) and Min Relevance Score (0 to 1, default 0.70, lower scores are dropped).
- Memory Collections. Tick collections the agent may recall from. Empty: "No memory collections yet. Create one in Memory →".
Advanced tab
| Field | What it does |
|---|---|
| Routing Preference | Cost, Latency or Quality (default Quality) |
| Retry Policy | Max Retries (0 to 10, default 3) and Backoff Strategy (fixed or exponential) |
| Policy Override | Choose a governance policy for this agent. Default "Use default policy" |
| Credential Source | Use User Keys (default, your keys from AI Model Keys) or Use Custom Keys (keys set on this agent; save the agent first) |
| Approval Mode | Hold for Approval (default; writes wait in Approvals) or Run Autonomously (writes run at once and are logged). "Destructive actions always require approval, regardless of this setting." |
| Structured Output Schema | A JSON schema, used when Output Format is JSON Schema |
| Support Users | People assigned to own the agent. Only they see its incidents |
| Secret Bindings | Map stored credentials to environment variable names. Values are never shown in logs |
The Test panel
The Test panel on the right lets you chat with the agent using your current, unsaved settings.
- A strip shows the model and chips for KBs, tools and memory.
- Empty: "Send a message to test your agent. The current (unsaved) config is used." Type in "Type a message… (Enter to send)".
Shift+Enteradds a new line. - Replies stream in. You may see a "Plan, N steps" box, source chips (KB, Mem, Tool, Data), the formatted answer, and a line with the time, speed, tokens and cost ("$0.00000", "free" or "price not set").
- Clear empties the conversation. A "Thinking…" indicator shows while it works, and errors show as "Error: …".
- If you ticked a knowledge base you cannot read, the test fails and names it.
Long runs
An agent has no fixed step limit. When a run stops making progress or reaches a spend, token or time budget, it pauses and asks the owner to continue. A pause never loses work. Wall-clock time is limited to 9 minutes. See Executions for the Continue button.