{"id":44364,"date":"2026-04-14T17:51:11","date_gmt":"2026-04-14T12:21:11","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=44364"},"modified":"2026-04-14T17:51:11","modified_gmt":"2026-04-14T12:21:11","slug":"how-to-implement-ai-based-case-suggestions-in-dynamics-365-using-agent-response","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2026\/04\/how-to-implement-ai-based-case-suggestions-in-dynamics-365-using-agent-response\/","title":{"rendered":"How to Implement AI-Based Case Suggestions in Dynamics 365 Using Agent Response"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44365\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response.png\" alt=\"Agent Response component \" width=\"2100\" height=\"1200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response.png 2100w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response-2048x1170.png 2048w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/How-to-Implement-AI-Based-Case-Suggestions-in-Dynamics-365-Using-Agent-Response-660x377.png 660w\" sizes=\"(max-width: 2100px) 100vw, 2100px\" \/>In many Dynamics 365 implementations, case forms primarily capture and display data but don\u2019t actively help resolve issues. Support teams often rely on experience or external tools to determine the next steps.<\/p>\n<p>In this guide, we\u2019ll transform a standard case form into an AI-powered assistant using Agent Response and Copilot Studio. This setup enables real-time suggestions such as case summaries, possible causes, and resolution steps directly within the form.<\/p>\n<h3>How to Add Agent Response in Dynamics 365 Case Form<\/h3>\n<p>To begin with, the first step was to bring the Agent Response component onto the case form.<\/p>\n<p>Inside the form designer, I navigated to the Components panel and selected Agent Response (Preview) under the Artificial Intelligence section. This component is what enables us to display AI-generated suggestions directly within the form.<\/p>\n<p>After adding the component, I placed it in a dedicated section labeled \u201cAI Suggestion\u201d to keep the UI clean and focused.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44366\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-1.jpg\" alt=\"How to Implement AI-Based Case Suggestions in Dynamics 365 Using Agent Response\" width=\"824\" height=\"486\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-1.jpg 824w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-1-300x177.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-1-768x453.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-1-660x389.jpg 660w\" sizes=\"(max-width: 824px) 100vw, 824px\" \/><\/p>\n<h3><strong>How to Configure Agent Response Component (Event Setup)<\/strong><\/h3>\n<p>Once the component was added, the key part was configuring the Event Name.<\/p>\n<p>This event name acts as a bridge between the form and the Copilot agent. Whenever the form is loaded, this event is triggered, and the agent responds with the relevant AI-generated output.<\/p>\n<p>In this case, I configured the event name as:<\/p>\n<p><strong>ai_response<\/strong><\/p>\n<p>It\u2019s important to note that this same event name must be used later while configuring the topic inside Copilot Studio. If the names don\u2019t match, the agent won\u2019t be triggered.<\/p>\n<h3>A Small Note<\/h3>\n<p>While working in the form designer, you might notice a message saying:<\/p>\n<p><em>\u201cAgent Response is only available when you play the app.\u201d<\/em><\/p>\n<p>This is expected behavior. The component doesn\u2019t render inside the designer preview \u2014 it only works when the app is actually running.<\/p>\n<p>With this setup in place, the form is now ready to communicate with the Copilot agent. The next step is to configure the agent and define how it processes the case data to generate meaningful suggestions.<\/p>\n<h3>How to Configure the App-Bound Agent<\/h3>\n<p>After adding the Agent Response component to the form, the next step was to configure the Copilot agent that will actually generate the AI suggestions.<\/p>\n<p>In model-driven apps, agents can be directly associated with the app itself. This makes them context-aware and allows them to interact with the data within that specific app.<\/p>\n<h3>Accessing the Agent<\/h3>\n<p>Inside the app designer, I navigated to the Agents panel. Here, you can see the available agents under the Agent assistance section.<\/p>\n<p>Since the agent is already bound to the app, there\u2019s no need to create everything from scratch again. Instead, you can simply click on:<\/p>\n<p>&#x1f449; <strong>Edit in Copilot Studio<\/strong><\/p>\n<p>This opens the agent in Copilot Studio, where we can define its behavior.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44367\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-2.jpg\" alt=\"How to Implement AI-Based Case Suggestions in Dynamics 365 Using Agent Response\" width=\"740\" height=\"400\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-2.jpg 740w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-2-300x162.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-2-660x357.jpg 660w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/p>\n<h3>Key Takeaway<\/h3>\n<p>At this point, we are not just creating an agent \u2014 we are working with an app-bound interactive agent, which is essential for enabling real-time AI suggestions inside the form.<\/p>\n<p><strong>Creating the Topic and Configuring the Trigger<\/strong><\/p>\n<p>Once the agent is opened in Copilot Studio, the next step is to define how and when the agent should respond. This is done by creating a topic and configuring its trigger.<\/p>\n<p><strong>Creating a New Topic<\/strong><\/p>\n<p>Inside Copilot Studio, I navigated to the Topics section and created a new topic specifically for handling AI suggestions on the case form.<\/p>\n<p><strong>Setting the Trigger Type<\/strong><\/p>\n<p>Instead of using a regular message-based trigger, I selected:<\/p>\n<p>&#x1f449; <strong>\u201cA custom client event occurs\u201d<\/strong><\/p>\n<p>This is a key step.<\/p>\n<p>Since the Agent Response component on the form triggers an event (in our case ai_response), the topic must listen for that exact event. This is what connects the form and the agent.<\/p>\n<p><strong>Configuring the Event Name<\/strong><\/p>\n<p>After selecting the trigger, I configured the <strong>Event Name<\/strong> as:<\/p>\n<p><strong>ai_response<\/strong><\/p>\n<p>This value must match exactly with the event name defined earlier in the Agent Response component on the form.<\/p>\n<p><strong>Fetching Case Data and Generating AI Suggestions<\/strong><\/p>\n<p>Once the trigger is configured, the next step is to fetch the actual case data and pass it to the AI so it can generate meaningful suggestions.<\/p>\n<p><strong>Retrieving the Record using \u201cGet a Row by ID\u201d<\/strong><\/p>\n<p>To access the current case details, I used the <strong>Dataverse action<\/strong>:<\/p>\n<p>&#x1f449; <strong>Get a row by ID from selected environment<\/strong><\/p>\n<p>This step is responsible for retrieving the record that is currently opened in the form.<\/p>\n<p><strong>Passing the Record ID (Important Part)<\/strong><\/p>\n<p>Since the topic is triggered from the form, we need a way to identify which record is being opened.<\/p>\n<p>For that, I used the following:<\/p>\n<p><strong>Global.PA__Copilot_Model_PageContext.pageContextId.guid<\/strong><\/p>\n<p>This value dynamically provides the GUID of the current record from the form context you can get this from the system or global variable.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44368\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-3.jpg\" alt=\"How to Implement AI-Based Case Suggestions in Dynamics 365 Using Agent Response\" width=\"809\" height=\"535\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-3.jpg 809w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-3-300x198.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-3-768x508.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-3-660x436.jpg 660w\" sizes=\"(max-width: 809px) 100vw, 809px\" \/><\/p>\n<p><strong>Important Configuration<\/strong><\/p>\n<p>While setting up this action, make sure to configure:<\/p>\n<p>&#x1f449; <strong>Credentials to use \u2192 Maker-provided credentials<\/strong><\/p>\n<p>This is very important.<\/p>\n<p>If this is not set, the system will prompt users with a permission popup every time the agent runs, which breaks the user experience.<\/p>\n<p><strong>Generating AI-Based Response<\/strong><\/p>\n<p>After fetching the data, the next step is to generate a structured AI response using:<\/p>\n<p>&#x1f449; <strong>Create generative answers<\/strong><\/p>\n<p>Here, instead of relying on generic responses, I provided a well-defined prompt to control the output format.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-44369\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-4.jpg\" alt=\"How to Implement AI-Based Case Suggestions in Dynamics 365 Using Agent Response\" width=\"837\" height=\"576\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-4.jpg 837w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-4-300x206.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-4-768x529.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-4-660x454.jpg 660w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/p>\n<p><strong>Prompt<\/strong> :<\/p>\n<p>You are a professional support engineer.<\/p>\n<p>Analyze the case and present a clean, structured response.<\/p>\n<p>Case:<\/p>\n<p>Title: Topic.title<\/p>\n<p>Description: Topic.description<\/p>\n<p>Instructions:<\/p>\n<p>Use bold headings<\/p>\n<p>Add spacing between sections<\/p>\n<p>Use bullet points for steps<\/p>\n<p>Format EXACTLY like this:<\/p>\n<p>&#x1f537; Summary<\/p>\n<p>&lt;short summary&gt;<\/p>\n<p>&#x1f536; Possible Cause<\/p>\n<p>&lt;cause&gt;<\/p>\n<p>&#x1f6e0; Resolution Steps<\/p>\n<p>Step 1<\/p>\n<p>Step 2<\/p>\n<p>Step 3<\/p>\n<p>&#x1f4a1; Recommendation<\/p>\n<p>&lt;optional tip&gt;<\/p>\n<h3>Using Dynamic Values<\/h3>\n<p>Here, instead of hardcoding values, I used dynamic fields:<\/p>\n<ul>\n<li>Topic.title \u2192 Case Title<\/li>\n<li>Topic.description \u2192 Case Description<\/li>\n<\/ul>\n<p>These values are populated automatically from the Dataverse record retrieved in the previous step<\/p>\n<p><strong>Final Output: AI Suggestions in Action<\/strong><\/p>\n<p>After completing all the configurations, the final step is to make everything live and see how it works in a real scenario.<\/p>\n<p><strong>Final Steps Before Testing<\/strong><\/p>\n<p>Before testing the solution, make sure to:<\/p>\n<ul>\n<li>&#x2714;&#xfe0f; <strong>Save and Publish the form<\/strong> after adding the Agent Response component<\/li>\n<li>&#x2714;&#xfe0f; <strong>Publish the Copilot agent<\/strong> from Copilot Studio<\/li>\n<\/ul>\n<p>These two steps are important. If the agent is not published, the event won\u2019t trigger and no response will be shown on the form.<\/p>\n<p><strong>Viewing the AI Suggestion<\/strong><\/p>\n<p>Once everything is published, open the model-driven app and navigate to any case record.<\/p>\n<p>As soon as the form loads:<\/p>\n<ul>\n<li>The <strong>Agent Response component triggers the event<\/strong><\/li>\n<li>The agent processes the case data<\/li>\n<li>The AI generates a structured response<\/li>\n<li>And the suggestion is displayed directly inside the form you can Also use <strong>Adaptive Card <\/strong>to show a modern UI<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44370\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-5.jpg\" alt=\"How to Implement AI-Based Case Suggestions in Dynamics 365 Using Agent Response\" width=\"980\" height=\"633\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-5.jpg 980w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-5-300x194.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-5-768x496.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/04\/Agent-Response-component-5-660x426.jpg 660w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/p>\n<h3>Conclusion<\/h3>\n<p>By combining Agent Response with Copilot Studio, you can transform a standard Dynamics 365 case form into an intelligent support assistant.<\/p>\n<p>This approach improves resolution speed, reduces dependency on manual expertise, and enhances user productivity.<\/p>\n<p>As AI adoption in Dynamics 365 continues to grow, implementing features like Agent Response can significantly improve both support efficiency and customer experience.<\/p>\n<h3>FAQs<\/h3>\n<p><strong>Do I need Copilot Studio to use Agent Response?<\/strong><\/p>\n<p>Yes, Copilot Studio is required to configure the logic behind Agent Response. It allows you to create topics, define triggers, fetch Dataverse data, and generate AI-driven responses based on the context of the record.<\/p>\n<p><strong>Can Agent Response be used in model-driven apps?<\/strong><\/p>\n<p>Yes, Agent Response is specifically designed for model-driven apps in Dynamics 365. It can be embedded into forms and triggered using custom events to provide real-time AI assistance to users.<\/p>\n<p><strong>How does Agent Response get data from the case form?<\/strong><\/p>\n<p>Agent Response retrieves data by triggering a Copilot topic, which uses Dataverse actions like \u201cGet a row by ID.\u201d The current record\u2019s GUID is passed dynamically using the page context, allowing the agent to process real-time case data.<\/p>\n<p><strong>Can I customize the AI response format?<\/strong><\/p>\n<p>Yes, the AI response can be fully customized using structured prompts in the \u201cCreate generative answers\u201d step. You can control formatting, tone, and output structure, including summaries, bullet points, and recommendations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In many Dynamics 365 implementations, case forms primarily capture and display data but don\u2019t actively help resolve issues. Support teams often rely on experience or external tools to determine the next steps. In this guide, we\u2019ll transform a standard case form into an AI-powered assistant using Agent Response and Copilot Studio. This setup enables real-time\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2026\/04\/how-to-implement-ai-based-case-suggestions-in-dynamics-365-using-agent-response\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2576,2361],"tags":[3343],"class_list":["post-44364","post","type-post","status-publish","format-standard","hentry","category-model-driven-app","category-technical","tag-agent-response-component"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/44364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=44364"}],"version-history":[{"count":1,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/44364\/revisions"}],"predecessor-version":[{"id":44371,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/44364\/revisions\/44371"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=44364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=44364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=44364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}