Microsoft Learn documentation outlines how to export and import agents using what they call custom 'solutions.' You attach a copilot agent to the solution and you can push that agent to UAT or prod environments with a pipeline. https://learn.microsoft.com/en-us/microsoft-copilot-studio/authoring-solutions-import-export You can also download the bot file and share it with someone.
What I can't figure out is how to duplicate the bot in the same dev environment. One is a demo that shouldn't be touched, the other is our working copy.
I've tried the export/import workflow where you export the bot file and reimport as an unmanaged solution (so that it can be edited) and then publish the bot to have a copy appear in your studio UI but what happens is the import overwrites the exported solution and it becomes one and the same as your original agent. I've also tried changing the name of the demo agent prior to reimport so that they may be recognized as different solutions and the same overwriting occurred.
Anyone know a workaround?