dotnet/src/Agents/Copilot/README.md
This README provides an overview on how to use the CopilotStudioAgent within Semantic Kernel.
This agent allows you to interact with Microsoft Copilot Studio agents through programmatic APIs.
âšī¸ Note: Knowledge sources must be configured within Microsoft Copilot Studio first. Streaming responses are not currently supported.
Microsoft.SemanticKernel.Agents.CopilotStudio package:
dotnet add package Microsoft.SemanticKernel.Agents.CopilotStudio --prerelease
CopilotStudio.Copilots.Invoke API permission assigned.Go to Microsoft Copilot Studio.
Create a new Agent.
Publish your newly created Agent.
In Copilot Studio, navigate to:
Settings â Advanced â Metadata
Save the following values:
Schema Name (maps to agent_identifier)Environment IDThis step requires permissions to create application identities in your Azure tenant.
You will create a Native Client Application Identity (no client secret required).
Open Azure Portal
Navigate to Entra ID
Go to App registrations â New registration
Fill out:
Accounts in this organization directory onlyPublic client/native (mobile & desktop)http://localhostClick Register
From the Overview page, note:
Application (client) IDDirectory (tenant) IDGo to: Manage â API permissions
If it's not listed, see Tip below.
Choose:
CopilotStudioCopilotStudio.Copilots.InvokeClick Add permissions
(Optional) Click Grant admin consent
If you do not see Power Platform API, follow Step 2 in Power Platform API Authentication to add the API to your tenant.