> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deflect.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Import & Export

> Export, import, and duplicate agent configurations

Deflect lets you **export** agent configurations as JSON files, **import** them into another organization, and **duplicate** agents within the same workspace. This is useful for backup, migration, or creating variations of an existing agent.

## Exporting an Agent

1. Navigate to the **Agents** page.
2. Click the **⋯** menu on the agent card.
3. Select **Export**.
4. A JSON file will be downloaded containing the agent's full configuration, including:
   * Name and model settings
   * System prompt
   * Language configuration
   * Welcome message settings
   * All tool configurations (handoff, end chat, custom functions)
   * Knowledge base connections
   * Analysis fields
   * Temperature, max tokens, and auto-close settings

<Note>
  The export does **not** include your Knowledge Base files or API keys. You'll need to reconnect those after importing.
</Note>

## Importing an Agent

1. Navigate to the **Agents** page.
2. Click the **Import** button (upload icon).
3. Select a previously exported JSON file.
4. The agent will be created with all the exported settings.
5. Reconnect any Knowledge Bases and update Custom Function webhook URLs if needed.

<Warning>
  Imported agents are created as new agents — they do not overwrite existing ones.
</Warning>

## Duplicating an Agent

To quickly create a copy of an agent within the same organization:

1. Navigate to the **Agents** page.
2. Click the **⋯** menu on the agent card.
3. Select **Duplicate**.
4. A new agent is created as a copy with "(copy)" appended to its name.

<Tip>
  Duplicating is great for creating specialized versions of a general-purpose agent — for example, creating separate agents for Sales and Support with the same base configuration but different prompts.
</Tip>
