How can I duplicate a copilot agent in same enviroment?

Navneet Malhotra (CONCENTRIX CORPORATION) 20 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 | Other
{count} votes

6 answers

Sort by: Most helpful
  1. Suren, Thomas ext. /BSS HAM 5 Reputation points
    2025-11-18T15:36:21.1133333+00:00

    I am also looking for the answer.
    After exporting the solution containing the agent, I could only locate a configuration. json that does not contain any unique id.

    Asking for clarification.

    User's image

    {
      "$kind": "BotConfiguration",
      "settings": {
        "GenerativeActionsEnabled": true
      },
      "isAgentConnectable": true,
      "gPTSettings": {
        "$kind": "GPTSettings",
        "defaultSchemaName": "abi_excelAutoAgent.gpt.default"
      },
      "aISettings": {
        "$kind": "AISettings",
        "useModelKnowledge": true,
        "isFileAnalysisEnabled": true,
        "isSemanticSearchEnabled": true,
        "contentModeration": "High",
        "optInUseLatestModels": false
      },
      "recognizer": {
        "$kind": "GenerativeAIRecognizer"
      }
    }
    
    1 person found this answer helpful.
    0 comments No comments

  2. Matteo Cardi 5 Reputation points
    2025-10-27T08:30:17.2366667+00:00

    Any updates about this topic?

    1 person found this answer helpful.
    0 comments No comments

  3. Sayali-MSFT 4,781 Reputation points Microsoft External Staff Moderator
    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:
    1 person found this answer helpful.

  4. Ashley Fernandes 0 Reputation points
    2025-07-04T12:36:38.4266667+00:00

    We're trying to do the same thing, we're not using a power solution though we just want to use a custom agent we built as a template that we can copy so that different client teams can retain the persona, instructions, prompts but change the knowledge base to fit their client/project.

    0 comments No comments

  5. Arindam Gupta 0 Reputation points
    2025-03-31T12:41:31.6266667+00:00

    firstly, it does not allow to select only one agent, but selects all the agents in the env to export.

    2ndly, inside the needed agent folder, the config file does not have a id, but only a name to change..

    cany u not show us clear ways to do this ?


Your answer

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