Checking Agent Version in Copilot Studio


You know how sometimes you just want to double-check what’s running under the hood? I’ve got this little habit of creating a “Technical details” topic in my agent. It’s like my personal backstage pass – the place where all the nerdy stuff lives. Whenever I need to peek at the environment or confirm what version I’m working with, that’s where I head first.

Now, today we’re not going to dive into every single detail (though trust me, there’s plenty in there). Instead, let’s keep it simple and focus on version information.



Preparation

Open Copilot Studio and go to the environment where your agent is located.
- Navigate to the Solutions page.
- Select Default Solution → Tables → Copilot.
- Expand the Copilot table so you can see the columns Application Manifest Information and Bot.
- If you look closely, one column contains the agent’s version number and the other the agent’s ID.
Copy the agent ID (Bot column code for the agent you want) for later use.




Create a Topic

- Go to the agent’s Topic menu and create a new Topic. Give a name: Technical Details.

- Keep the default trigger and add a description, for example:

“This topic begins when a user wants to ask about technical details, environments, or version information related to this agent.”

- Save the Topic



Build an Agent Flow inside the Topic

- Click Add Tool → New Agent Flow (you’ll be redirected to the flow editor).

- Select Save a draft.

- Go to Overview → Details (Edit) and name the agent flow Get Agent Version.

- Return to the Designer view.

- Add a Dataverse connector: Get row by ID:Choose the Copilot table.

- Enter the row ID (the Bot column value you saved earlier).

- Click Publish in the top-right corner, then select testTest.

- In the test view:Pick the Get row by ID connector and click Show raw Outputs.

- Copy the entire code snippet that appears.

- Click Edit to return to the Agent Flow editor.

- Add a Parse JSON connector and choose Use sample payload to generate schema.

- Paste the code snippet you just copied; the designer will create the schema for you.

- Add a Compose connector with this expression:

- body('Parse_JSON')?['Teams']?['version']

- Add a Respond to agent connector:Add a Text output and name it Version.

- Use the output from the previous Compose step.

- Save and publish.



Finalise the Topic

Go back to the Technical Details topic you created earlier.
- The agent flow now returns the version number.
- Add a new Message node to the topic: 
Write:Your agent version is: {Version}




You can now ask, “What is the version of this agent?” and it should be able to answer you.

Quite simple, but still a lot of steps!

Popular posts from this blog

Multilingual support for Copilot Studio agent