Agent Studio
Draw agents, their tools, skills and helper agents as a flowchart, test them, and take the JSON into your code.
The Agent Studio is a tab in each console project that has the Agent Platform on. Each card on its board is an agent, a tool or a skill, and each arrow is a setting on the agent it starts from:
| Arrow | Sets | At run time |
|---|---|---|
| agent → tool | tool_bindings | The agent can call that service: search Knowledge, crawl a site, query a data source, draft and send Email, run code in a Sandbox. |
| agent → skill | skill_bindings | The agent loads those instructions with load_skill when a task needs them. |
| agent → agent | subagent_bindings | The first agent hands work to the second with its task tool and uses the answer. |
One agent is marked Entry: the one the test chat talks to, and the one your code runs. The others are its helpers. Each agent picks the model it runs on; the list shows every model the platform has a key for.
The platform decides nothing on the arrows' behalf: an agent chooses which tool, skill or helper to use from its instructions and their descriptions. So write descriptions for the agent that reads them, and say in the instructions when to use what.
Test it
Skills are made on Agent Studio › Skills, not on the board: write one, import an Agent Skills folder from GitHub or a zip, add one from the platform library, then edit, publish and roll back versions there. The board only connects a skill to agents and picks the version each agent gets (the published one, or held at a version). A skill's card links back to its page.
Test chat runs the agent you pick, drafts included, and the board lights up each agent, tool and skill as it's called. Each step in the reply opens to show what was sent and what came back.
Delegation has limits set by the platform: helpers can delegate on to their own helpers up to a depth (2 by default), and a run can hand off at most 5 times. An arrow past the depth limit is drawn dashed.
Run it by its agent_id
Your code reaches a Studio agent through one value: its agent_id. Every run that should use the agent passes it in config.configurable.agent_id. That one field brings in everything you set up on the board: the instructions, the model, the tools, the skills and the helper agents.
Without agent_id, your agent doesn't run
A run with no agent_id doesn't fail. It runs the platform's default assistant, which has none of your instructions, tools, skills or helpers. The reply still looks reasonable, so this mistake is easy to miss. Pass the id on every run.
Publish the agent
A new agent is a Draft (yellow dot). Only test chat and preview runs can run a draft. A normal run asking for a draft fails, so publish the agent before your code uses its id. Its helper agents and skills must be published too.
Copy its id
Select the Entry agent on the board. Its side panel shows agent_id with a copy button. The id also appears in the toast when you create an agent, and next to each agent on the project's Get code page.
Use the entry agent's id. The entry agent reaches its helpers through the arrows, so your code never needs a helper's id.
Put it in your configuration
Treat the id like a base URL: one value per environment, kept in config rather than in the source.
export AICE_AGENT_ID="4f1c…" # from the Studio side panelPass it on every run
import os
AGENT_ID = os.environ["AICE_AGENT_ID"]
thread = client.threads.create()
for chunk in client.runs.stream(
thread["thread_id"],
"agent_platform",
input={"messages": [{"role": "user", "content": "My invoice is wrong"}]},
config={"configurable": {"agent_id": AGENT_ID}},
stream_mode="messages-tuple",
):
print(chunk.event, chunk.data)
# After the reply: follow-ups the agent can actually handle
client.suggestions.create_for_thread(thread["thread_id"], agent_id=AGENT_ID, retitle=False)This applies to the first message, every later message on the same thread, and every resume after an approval. A turn without the id runs the default assistant, even partway through a conversation.
When the id stays the same, and when it changes
| You… | The id | Your code |
|---|---|---|
| edit the agent in the Studio (instructions, model, arrows) | stays the same; version goes up | picks up the change on its next run, without a deploy |
| delete the agent, then bring it back with Undo | changes; the Studio shows a "has a new id" toast | update AICE_AGENT_ID |
| import the board into another project or organization | is new there; use entry_agent_id from the import | set that environment's AICE_AGENT_ID |
Ids belong to one project. Your code must use that project's API key, and an id from staging won't work in production.
Use it in your code
Export gives two kinds of JSON.
One agent
Exactly the body agents.create takes. Its subagent and skill ids belong to the project, so use it with that project's key:
{
"name": "Support triage",
"description": "Sorts incoming tickets and drafts first replies.",
"system_prompt": "You triage support tickets for Acme. Ask the Billing agent about invoices.",
"model_profile": "openweights:glm-5.3-flash",
"tool_bindings": ["knowledge"],
"subagent_bindings": ["4f1c…"],
"skill_bindings": ["9a2e…"],
"subagent_discovery": false,
"skill_discovery": false
}from aice_agent_platform import load_spec
agent = client.agents.create(load_spec("agent.json"))
client.agents.publish(agent["id"])Every agent you build in the Studio already exists in the project, so you can usually skip this and run it by its agent_id.
The whole board
A bundle: every agent and skill on the board, linked by a readable ref instead of an id, so it can be recreated in any organization (staging to production, say). import_bundle creates the skills, then the agents from the last helper up to the entry agent, links them and publishes them:
{
"format": "aice.agent-bundle/v1",
"entry": "support-triage",
"skills": [{ "ref": "refund-policy", "name": "Refund policy", "description": "…", "content": "…" }],
"agents": [
{ "ref": "support-triage", "name": "Support triage", "subagent_bindings": ["billing"], "skill_bindings": ["refund-policy"], "…": "…" },
{ "ref": "billing", "name": "Billing", "tool_bindings": ["knowledge"], "…": "…" }
]
}result = client.agents.import_bundle("board.json")
agent_id = result["entry_agent_id"]A binding that isn't a ref in the bundle is kept as it is, so a bundle can point at agents or skills that already exist where it's imported.
Run it
Whichever way the agent got into the project, run it by its id as shown in Run it by its agent_id. After an import, that id is entry_agent_id.
See Streaming for reading the chunks, and Management API for every field and call.