Skip to main content
Your organization’s locations are its environments. A common setup uses xpander cloud as staging and a self-hosted cluster, for example acme-prod-eks, as production. Promote copies an agent from the location it runs in to another location in one step. The copy uses the connections and secrets of the target location. After that, a change to the agent reaches the copy only when you Publish it. Every version number on these screens is the agent’s own version, as Agent settings shows it. The examples on this page use the agent Support: it is promoted at version 1, edited to version 3, published, and then sent back to version 1.

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 403 for 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.
Environments row: Runs in xpander cloud. Not promoted yet. with a Promote button

Agent settings > Environments, before the first promotion. Shown with sample data.

Promote the agent

1

Pick the location

Click Promote. The list shows your organization’s other locations, each with its name, type and address. The location the agent runs in is not in the list. A location that is not Connected is off and shows its status, for example Setup incomplete or Unreachable.
Promote to list with acme-prod-eks and research-lab, which is off with the status Setup incomplete

The Promote list: acme-prod-eks can be picked, research-lab is off. Shown with sample data.

2

Read what is copied

The dialog Promote Support to acme-prod-eks says where the copy goes and lists under Copied, with their current values:A grey Not copied line names what stays on the source. See What is not copied.
3

Map each connection

The Connections table lists each connection the agent uses, with a picker of the target location’s connections for the same skill, and Remove from copy.A connection is picked for you only in two cases: you promoted this agent to this location before, or the target location has only one connection for that skill. A connection with no pick has a red dot and the red line Pick a connection for Salesforce, or remove the Salesforce skill in the copy. Promote stays off until every connection is mapped or removed.
Promote Support to acme-prod-eks dialog with Copied, Not copied: Support handbook, Slack, and Salesforce marked with a red dot and Pick a connection

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

Remove from copy takes the connection and its skills off the copy. The Skills row then says what was removed in the copy.If the agent has two connections for one skill, map both to the same connection in the target location. The copy uses one connection per skill.
4

Promote

When every connection is mapped or removed, the grey line Secrets are never copied. acme-prod-eks uses its own. shows and Promote turns on. Click Promote.
Promote dialog with Salesforce mapped to Salesforce production and the Promote button on

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

An agent with the same name now exists in acme-prod-eks. It runs version 1 with the connections you picked. The agent in xpander cloud does not change. The Environments row says Runs in xpander cloud. acme-prod-eks runs version 1.
Environments row: Runs in xpander cloud. acme-prod-eks runs version 1.

Agent settings > Environments after the promotion. Shown with sample data.

The copy runs in acme-prod-eks as any agent there runs: chats and tool calls in that location use its connections, not the ones of the source. This works for a self-hosted location with no outbound internet too: the control plane writes the copy, and the location runs it. An agent has at most one copy in each location. In the Promote list, a location the agent is already promoted to shows Promoted in grey, and picking it opens Publish. A second promote to the same location answers 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.
Environments row: acme-prod-eks runs version 1. 2 changes are not published. with Publish and Promote buttons

Two changes are not published yet. Shown with sample data.

Click Publish. The dialog Publish 2 changes to acme-prod-eks shows:
  • 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 dialog with Version 3 latest, the change list and the line acme-prod-eks moves from version 1 to version 3

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

A change that adds a connection asks for a connection under New connections, with the same rules as Promote: pick one in the target location or remove it from the copy. Publish stays off until each one is mapped or removed.
Publish dialog with New connections: Jira with a red dot and the line Pick a connection for Jira, or remove the Jira skill in the copy.

The new Jira skill needs a connection in acme-prod-eks. Shown with sample data.

Click Publish. The copy runs version 3, and the row says acme-prod-eks runs version 3. A chat with the copy shows the new behavior.

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.
Publish version 1 to acme-prod-eks dialog with the line acme-prod-eks goes back to version 1.

Go back: publish version 1 again. Shown with sample data.

The copy runs version 1 again. The row says acme-prod-eks runs version 1. 2 changes are not published., because versions 2 and 3 are on the source and not on the copy.

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.
Publish dialog 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.

To keep a change, make it on the source agent and publish it.

What is not copied

The Promote dialog names what stays on the source in its grey Not copied line, for example Not copied: Support handbook, Slack.

Audit events

Each promotion and each publish writes an event to Platform > AI governance > Audit log. See Audit and debugging. Open agent in acme-prod-eks on the event opens the copy, not the source agent.
Agent promoted event: Dana Levi promoted Support from xpander cloud to acme-prod-eks, version 1, with Open agent in acme-prod-eks, the mapped connections and Secrets copied 0

Agent promoted. Shown with sample data.

Agent published event: Dana Levi published Support to acme-prod-eks, version 1 to version 3

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 answers 403. 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:

Next steps

Add a location

Connect a self-hosted cluster to promote to.

Read the audit log

Find every promotion and publish.