# Export/Import agents to JSON

Integrail agent configuration can be exported to a JSON file.

This JSON file can be imported as a new agent or overwrite an existing saved agent, even on a different account, so it's a perfect way to backup your Agent building steps or to share your result.

**Be careful when overwriting existing agent configuration. Importing JSON file will replace already saved agent in this slot.**

#### How to export an agent to JSON file.

1\) Click on three vertical dots to the right of agent selector:

<img src="https://144358290.fs1.hubspotusercontent-eu1.net/hubfs/144358290/image-png-Feb-23-2025-04-46-34-6347-PM.png" alt="" height="193" width="316">

2\) Click the "Download" option.

3\) The browser will receive a JSON file and download it.

#### How to import an agent from a JSON file.

1\) Select the agent you want to overwrite in agent selector (dropdown), or make a new agent by pressing the icon to the left of the agent selector, that looks like a page with a "+" sign:

<img src="https://144358290.fs1.hubspotusercontent-eu1.net/hubfs/144358290/image-png-Feb-23-2025-04-48-48-3813-PM.png" alt="" height="66" width="508">

2\) Click on three vertical dots to the right of agent selector:

<img src="https://144358290.fs1.hubspotusercontent-eu1.net/hubfs/144358290/image-png-Feb-23-2025-04-49-24-0217-PM.png" alt="" height="189" width="306">

3\) Click the "Upload" option, browse to your file and select "Open".

This will overwrite the agent with the saved confguration.

**Be careful when overwriting existing agent configuration. Importing JSON file will replace already saved agent in this slot.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.integrail.ai/agent-studio/editor/export-import-agents-to-json.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
