Before you start
- The target location is in your organization and shows Connected in Platform > Agents > Runtime > Locations. To add a self-hosted location, see Locations and environments.
- You can edit the agent. A person who can only view the agent sees where it runs, with no Promote or Publish button. The promote and publish calls answer
403for them. - The target location has its own connection for each skill connection the agent uses, for example Salesforce production for Salesforce. If it has none, you can remove that skill from the copy.
Where the agent runs
Open the agent, then Agent settings. The Environments row is directly under Access. For an agent that was never promoted, it says Runs in xpander cloud. Not promoted yet.
Agent settings > Environments, before the first promotion. Shown with sample data.
Promote the agent
Pick the location

The Promote list: acme-prod-eks can be picked, research-lab is off. Shown with sample data.
Read what is copied
Map each connection

Salesforce has no pick yet, so Promote is off. Shown with sample data.
Promote

Every connection is mapped, so Promote is on. Shown with sample data.

Agent settings > Environments after the promotion. Shown with sample data.
409.
Publish changes
An edit to the source agent does not change the copy. Nothing publishes on its own. After two edits (version 2 edits the instructions, version 3 adds the Jira skill), the row says acme-prod-eks runs version 1. 2 changes are not published. with a Publish button.
Two changes are not published yet. Shown with sample data.
- Version to publish, the latest version by default.
- Changes: each change since the version the copy runs, with who made it and when, for example Version 3 · Added skill Jira and Version 2 · Edited instructions.
- The line acme-prod-eks moves from version 1 to version 3. You can publish version 1 again to go back.

Publish 2 changes to acme-prod-eks. Shown with sample data.

The new Jira skill needs a connection in acme-prod-eks. Shown with sample data.
Go back to an earlier version
Open Publish and pick an earlier version in Version to publish, for example Version 1. The dialog is titled Publish version 1 to acme-prod-eks and says acme-prod-eks goes back to version 1. Click Publish.
Go back: publish version 1 again. Shown with sample data.
Direct edits on the copy are replaced
The source agent is the one you edit. If someone edits the copy directly in the target location, the next publish replaces that edit. The Publish dialog warns with the grey line Direct edits on the copy in acme-prod-eks will be replaced.
Someone edited the copy in acme-prod-eks. Shown with sample data.
What is not copied
Audit events
Each promotion and each publish writes an event to Platform > AI governance > Audit log. See Audit and debugging.
Agent promoted. Shown with sample data.

Agent published. Shown with sample data.
API
xpander Chat uses these routes of the agents API. Each call acts for a signed-in person: a call with an organization key that no person owns answers403. Listing, previewing, promoting and publishing need the right to edit the agent; reading its promotions needs the right to use it.
connection_mapping maps each source connection id to a connection id in the target location, or to "remove" to take it off the copy:

