Manage agents
Change, retire and control access to agents you have published, without breaking the pages and integrations that use them.
Once an agent is in use, small changes can have big effects. This article covers how to change an agent safely, what versions exist, how to delete one, and who controls who can use agents.
Life cycle at a glance
| Stage | What happens | Learn more |
|---|---|---|
| Build | You describe the agent in the AI Builder chat and review it on the Blueprint Custom Agents tab. | Create an agent |
| Test | You use Run the example in AI Builder, or the API test route. | Test an agent |
| Versions | Draft for editing and testing, Live for use. Publishing replaces Live, so keep a copy of instructions you may want to restore. | Publish, Draft and Live |
| Deploy | Published agents move with the app deployment. | Deploy to production |
| Monitor | Read run statuses and results through the Agent API. The audit log records agent events. You can ask AI Builder to add a run history page to your app. | Track runs, Audit and access |
| Retire | Delete the agent through the Agent API. AI Builder doesn't delete agents. | Delete an agent |
Change an agent
You need App Admin or Edit permission, and you work in the app's development environment.
- Open the app in AI Builder.
- Ask for the change in chat, for example "Make the summary shorter" or "Add the customer's country as an input". The change goes to Draft.
- Check the agent's card on the Blueprint, and test it with Run the example. Use the API test route for your own inputs. See Test an agent.
- Apply your changes to publish Draft to Live. For new agents, review the Blueprint and click Generate to create and publish them with the app. See Change an app after it's generated.
- Deploy the app again to take the change to test and production. See Deploy to production.
Important
Pages and integrations depend on an agent's inputs and outputs. Adding a required input, or removing or renaming an output, can break them. Update the pages and integrations that use the agent in the same change.
Re-run your golden test set after every change to the instructions. See Evaluate agent quality.
Versions
Agents have two versions only: Draft and Live. There is no history of earlier published agent versions to return to. If you want to be able to return to a version, keep a copy of its instructions, inputs and outputs, along with your test results.
Delete an agent
AI Builder doesn't delete agents yet. A developer with App Admin or Edit permission deletes an agent through the Agent API, in the development environment. Deleting keeps the agent's execution history. Deletes propagate: the next deploy removes the agent from the target environment, because published agents that are absent from the source are deleted there. See Agent API.
If you delete an app, its agents are kept, and restoring the app restores them.
Before you delete an agent, find the pages, scripts and integrations that call it and update them.
Control who can use agents
| Level | Control |
|---|---|
| Account | A Super Admin or IAM Admin switches agents on or off in the AI control center. Turning off Agent module makes all agents unavailable. Turning off Custom agents in apps makes custom agents in apps unavailable. See AI control center. |
| App | Everyone with App Admin, Edit or View permission on the app can run every published agent in it. To keep an agent to certain people, put it in an app only they can open. |
| Runs | People see their own runs. App Admins and Editors see every run of the app's agents. |
Keep an eye on them
- Watch Failed runs and their error codes. See Track runs.
- Check connections now and then. If a connection's owner leaves, or their roles change, reconnect it with an account that has only the access the agent needs.
- Review who has App Admin and Edit permission on the app. Those people can change and publish agents.

