How can I duplicate a copilot agent in same enviroment?

Navneet Malhotra (CONCENTRIX CORPORATION) 0 Reputation points Microsoft External Staff
2025-02-20T11:14:28.92+00:00

I have tried the export/import solution workflow where I attached the demo agent to a solution > exported the solution, and imported the solution via downloadable zip file. Here we are supposed to be able to publish that agent and it should create a new copy of that agent, but importing the solution is overwriting the original solution. Export and import agents using solutions - Microsoft Copilot Studio | Microsoft Learn

However, my ask is to create a duplicate copy of an agent in same environment.

Microsoft Copilot
Microsoft Copilot
Microsoft terminology for a universal copilot interface.
650 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 3,691 Reputation points Microsoft External Staff
    2025-03-07T16:42:18.87+00:00

    Hello @Navneet Malhotra (CONCENTRIX CORPORATION), To create a duplicate copy of an agent in the same environment using Microsoft Copilot Studio, you can follow these steps:
    Step 1: Export the Original Agent

    1. Go to Microsoft Copilot Studio.
    2. Navigate to the Solutions section.
    3. Select the solution containing the agent.
    4. Export the solution:
      • Click on the "Export" button to download the solution as a zip file.

    Step 2: Modify the Exported Solution

    1. Extract the zip file to a local directory.
    2. Locate the agent's configuration file (usually a JSON or YAML file).
    3. Modify the agent's ID and name:
      • Change the agent's ID to a new unique value.
        • Update the agent's name to reflect the duplicate copy.

    Example: Modifying the Agent's Configuration (JSON)

    {

      ``"id": "new-unique-agent-id",

      ``"name": "Duplicate Agent Name",

      ``"description": "This is a duplicate of the original agent.",

      ``...

    }

    1. Recompress the modified files into a new zip file.

    Step 3: Import the Modified Solution

    1. Go back to Microsoft Copilot Studio.
    2. Navigate to the Solutions section.
    3. Import the modified solution:
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.