Sharing and publishing agents
You can share an agent with individual colleagues or with whole groups, and submit it as a template for others to copy. Once an agent is shared, you can prepare changes in a draft and publish them when they are ready. The history keeps every published version, so you can bring back an earlier one. The person who created the agent can share it, and so can anyone they added as a co-editor. Building an agent and finishing it on the Release step is covered in Building an agent.
Who sees what
| Access | Where the agent shows up | What the person can do |
|---|---|---|
| Owner | Created by you | Everything, including adding co-editors, changing roles and submitting the agent as a template |
| Co-editor | Shared with you | Change the instructions, knowledge and tools, publish drafts, use the history, add and remove members, share with groups |
| Member | Shared with you | Use the agent. A member cannot change anything about it. |
| Shared with a group | In the library, until the person adds it | Use the agent |
| Everyone in the company | In the library, until the person adds it | Use the agent |
| Sub-agent only | In no agent list; system admins find it under Building blocks | Only other agents can call it |
To open the library, go to Agents, find Global agents and select Open the library. See Using agents for more.
Note: If the agent uses an integration, it runs with the connected accounts of whoever is using it, not with yours. The Team step says so, for example "When it runs, the agent uses the connected accounts of whoever is using it (Microsoft), not yours." Each person who uses the agent needs their own connected account. See Connecting integrations.
Add people
- Open the agent with Edit and go to the Team step.
- Under Add, type the person's email address into Search by email and pick them from the results. If nobody matches, you see "User not found".
- Choose a role. A Member can use the agent but change nothing about it. A Co-editor can change the instructions, the knowledge and the tools. Only the owner can choose Co-editor. Co-editors can add people as Member only.
- Select Add. The person appears under Members right away, gets a notification, and finds the agent under Shared with you.
Enlarge figureAs the owner, you can change a role later in the person's row, from Member to Co-editor and back. The Remove member button (X) at the end of the row removes someone; you're asked to confirm first. Co-editors can remove members but not other co-editors. An agent can have up to 100 members.
You can add people before the agent is finished. The step tells you: "The people you added only get to see the agent once you finish it on the 'release' step." A row marked Invitation pending is left over from an older invitation that nobody has answered yet; the X withdraws it.
If an agent was shared with you directly and you no longer need it, open its details on the Agents page and select Leave. Co-editors also find Leave at the top of the builder. The owner can share it with you again later.
Agents that belong to a project
An agent that belongs to a project shows "This agent belongs to a project. The project decides who sees it." on the Team step. Its access follows the project, so system admins are not offered the Visibility field for it. To change who works with the agent, manage the project. See Projects.
Share with whole groups
- On the Team step, go to Groups. You only see groups you belong to yourself.
- Check the groups that should get the agent. If a group has sub-groups, their members get the agent too. Sub-groups that get the agent through a parent group are marked, for example "Granted through Sales".
- Select Save. The heading shows how many groups you shared with, for example "1 group".
Group members then find the agent in the library and select Add to put it in their own list. If you are not in any group, the section says "You are not in a group yet. Your administrator assigns them." Groups are set up by your administrator, so ask them if the group you need is missing.
System admins see this section as Groups and tenants. They can pick any group on the instance and, on an instance with several tenants, whole tenants.
Set the visibility
Only system admins see the Visibility field on the Team step. Everyone else shares through Members and Groups. The field has three options:
- Private: only you, the people you added and the groups you shared with can see the agent.
- Everyone in the company: everyone in the company finds the agent in the library, which makes it a global agent. It only shows up in someone's own agent list after they add it from the library. If you picked groups under Groups and tenants, only those groups get it. On an instance with several tenants, the agent reaches a tenant's people only if you pick that tenant under Groups and tenants.
- Sub-agent only: the agent appears in no agent list, group shares have no effect, and only other agents can call it. See Tools, knowledge and sub-agents. System admins can list these agents on the Agents page with Show building blocks under Filter.
You can only change the visibility after the agent is finished.
Submit the agent as a template
A template is a starting point for other people. Anyone who selects New Agent and then Start from a template gets their own copy to adapt. Only the owner can submit an agent, and only once it is finished on the Release step. The section appears while Expert mode is on. Once you have submitted, it stays visible when you turn Expert mode off.
- Set a category on the Identity step. The gallery files the template under it, and you cannot submit without one.
- Turn on Expert mode in the builder and open the Team step.
- Under Publish as template, select the button of the same name. You can also open the dialog with Publish in the agent's details on the Agents page.
- Write a Gallery tagline, one short line for the gallery card, and choose a Thumbnail gradient. Under Custom colors you can pick three colors of your own instead.
- Select Submit to template gallery. The status changes to "Pending admin review".
Enlarge figureThe dialog states what approval means: "Once an admin approves it, every user in this workspace will be able to run this agent and read its instructions." Who reviews the submission depends on how your instance is set up. On a dedicated instance, an administrator does. If your company is a tenant on a shared instance, a manager of your company reviews it under Templates in the Manager Console, if your provider has enabled that for your managers. The approved template is then available to your company only. See Manager Console.
Once approved, the status reads "Live in the template gallery". If the submission is rejected, the status reads Rejected and the reason appears below it; fix the agent and select Resubmit for review. Changing the instructions or tools of a live template sends it back for review. While the submission is waiting, Withdraw submission takes it back.
Prepare changes as a draft
On a finished agent that only you use, Save at the top of the builder saves your changes immediately. Once the agent is shared, saving asks "This agent is live — edit as a draft instead?"
Enlarge figure- Edit as draft starts a draft. Everyone else keeps working with the published version.
- Save live anyway changes the agent for everyone at once. The publish dialog does not open, so no note is recorded, and no new version appears in History.
You can also start a draft yourself: on the Release step, select Save as draft at the top of the builder. An agent has only one open draft at a time, and the owner and all co-editors share it: whoever opens the builder keeps working in the same draft.
While you work on a draft, a yellow banner says "Editing a draft — everyone else still sees the published agent." The save button reads Save draft, and Publish appears next to it.
Enlarge figure- Use this draft in my chats runs your own conversations with the agent on the draft.
- Let other users opt into testing it shows "Test draft?" in the message field for people using the agent. Each of them decides for themselves, and turning it on only affects that person.
- Discard draft throws the draft away for everyone working on it. The published version stays as it is.
For checking a draft systematically, see Testing and evaluating agents.
Publish a draft
- Select Publish at the top of the builder. The dialog "Publish this draft?" opens.
- Describe the change under What changed?. The note is optional for most changes, and the label then reads "What changed? (optional)". If the agent is shared and you changed its instructions or tools, the note is required and needs at least 10 characters.
- Select Publish. The draft replaces the live agent for everyone, and anyone who was testing the draft goes back to the published version. A new version appears in the History tab.
Enlarge figureRestore an earlier version
The owner and co-editors see the History tab. It keeps every published version with its number, note, author and time. The current one is marked Live.
- Open the History tab at the top of the builder.
- Optional: compare versions first. Show changes 1 → 2 compares two versions: removed lines come from the older one, added lines from the newer one. Show changes since version 2 compares a version with what is in the builder now. Some fields show their internal name here, such as "description".
- Select the version you want back.
- Select one of the two buttons:
- Restore to draft: the old configuration opens as a draft in the builder. You review it and publish it as described above.
- Restore and publish now: the dialog "Publish this version to everyone?" opens. Confirm with Publish version 1 (the number matches the version you picked). This replaces the live agent immediately.
Note: The dialog also warns that an older tools list can cause TOOL_NOT_APPROVED errors until the tool approvals are refreshed. If people see that error after a restore, ask your administrator to refresh the approvals of the integrations the agent uses. See Tools, knowledge and sub-agents.
Enlarge figureRestoring never deletes a version. The restored configuration is published as a new version on top. With Restore and publish now, the version gets the note "Restored from version" and the number. A restored draft gets the note you write when you publish it. Restoring does not change knowledge files or sub-agents. They keep their current state. Only the text of the context documents goes back to the old version.
Troubleshooting
- "User not found" when adding someone: check the email address. The person needs an account in your company on this instance. On a shared instance, people from other companies cannot be added.
- You cannot add anyone else: the agent has reached the limit of 100 members. Share with a group instead.
- Publish is grayed out: the note is required and still shorter than 10 characters. Add a sentence under What changed?.
- "Release blocked" in the publish dialog: the list below it says what is in the way. Fix those items in the builder and publish again. A system admin can enter a Reason for the waiver of at least 10 characters and select Publish anyway.
- "This version cannot go live as it is" when restoring: select Open as draft, fix the listed items in the draft, then publish.
- The restore buttons are disabled and show 'Publish or discard the open draft before restoring.' There is already an open draft, so publish or discard it first.
- You see 'This agent already has an unpublished draft. Publish or discard it before starting another.' Someone else started a draft at the same moment, or you did in a second tab. Reload the builder; it opens the existing draft and you carry on there.
- You cannot choose Visibility or Publish as template: the agent is not finished yet. Owners see "You can only submit it as a template once the agent is finished on the 'release' step." under Publish as template; system admins see "Sharing and submitting only work once you have finished the agent on the 'release' step." under Visibility. Finish it on the Release step. Visibility is for system admins only, and Publish as template only for the owner in Expert mode.
- The Team step says "This agent belongs to a project. The project decides who sees it.": manage access in the project rather than in the agent.