Export or import an agent
Each agent in SitecoreAI can be exported as a JSON file. You can use this JSON to create a new agent based on an existing one instead of starting from scratch. This approach is as an alternative to duplicating an existing agent and is useful when you want to adjust the agent’s logic, inputs, or outputs for a different use case.
For example, you can export the JSON of the Bulk Content Generator agent and import it to create a Bulk Social Media Post Generator or another custom variation.
Export an agent as a JSON file
Export an agent’s configuration as a JSON file to reuse, share, or back up the agent.
Make sure you have the editor role. Exporting agent configurations in Agentic studio is only available to editors.
To export an agent as a JSON file:
-
In the navigation menu, click Agentic. Then, in the left sidebar, select Agents.
-
On the Agents page, find the agent you want to export.
-
Click the actions menu
> Edit. -
Click Export JSON.
The agent's JSON file is downloaded to your device.
Import an agent from a JSON file
Import a JSON file to create a new custom agent or update an existing one.
Make sure you have a Builder license. This license is required to create a new agent by importing a JSON file.
To import an agent from a JSON file:
-
In the navigation menu, click Agentic. Then, in the left sidebar, select Agents.
-
On the Agents page, don one of the following:
-
Click Create Agent.
-
Open an existing custom agent to edit it.
The agent editor opens with the following tabs: Overview, Context Parameters, Schemas, HTML Templates, Workflow.
-
-
Click Import JSON.
-
Select the exported JSON file from your device.
The details of the JSON will be added to the relevant tabs in the editor.
-
Review and update the configuration on each tab as needed.
-
Click Create Workflow or Update Workflow depending on your changes.
The agent is saved and available on the Agents page, where you can run or further refine it.