Copilot Studio and Dynamics
This sample shows how to launch a side pane in Dynamics 365 containing a Microsoft Copilot Studio Agent. This sample will connect to the XRM namespace, pulling information from the form, user, environment, etc. form a JS file. This agent will accept information from the JS file and set global variables through question nodes.
- Imagine having an agent that can monitor sentiment of a customer service interaction and launch when the sentiment is negative.
- Sales agents that can launch when an opportunity is nearing close and offer incentives based on knowledge of previous won opportunities.
- Sales agents helping to build account planning materials without human interaction, i.e. autonomous
- Create a Copilot Studio Agent
- Create a web resource (HTML) using the CopilotChat.html file in this sample.
- Create a web resource (JS) using CopilotDynamics365.js file in this sample.
- Modify the JS file to point to your HTML web resource (publisher prefix, etc.)
- Modify the HTML file to use the endpoint from the Direct Line Integration in the Agent channel.
- Modify the HTML file to modify the payload sent to the agent to include relevant information.
- Build a question node in the Conversation Start topic and map to the property name.