{"id":44765,"date":"2026-05-30T16:03:38","date_gmt":"2026-05-30T10:33:38","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=44765"},"modified":"2026-05-29T17:34:51","modified_gmt":"2026-05-29T12:04:51","slug":"dynamics-365-ai-dashboards-excel-reporting-code-interpreter-in-copilot-agents","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2026\/05\/dynamics-365-ai-dashboards-excel-reporting-code-interpreter-in-copilot-agents\/","title":{"rendered":"Dynamics 365 AI Dashboards and Excel Reporting with Code Interpreter in Copilot Agents"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44786\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents.png\" alt=\"Copilot Agents\" width=\"2100\" height=\"1200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents.png 2100w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-2048x1170.png 2048w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-660x377.png 660w\" sizes=\"(max-width: 2100px) 100vw, 2100px\" \/>In customer service operations, teams often struggle to get a clear understanding of case performance and SLA compliance in real time. Users usually need to open multiple records, review reports manually, and switch across screens just to identify which cases require immediate attention.<\/p>\n<p>This process becomes time-consuming and makes quick decision-making difficult, especially when dealing with high-priority or escalated cases.<\/p>\n<p>To simplify this, we built an AI-powered Copilot solution using Code Interpreter in Copilot Studio. The solution can analyze live case data, generate SLA dashboards, create visual insights, and even produce downloadable Excel reports directly from conversational queries.<\/p>\n<p>Instead of manually preparing reports, users can now simply ask questions like \u201cGenerate SLA performance dashboard\u201d or \u201cExport critical cases into Excel\u201d and instantly receive visual dashboards and reports within Copilot itself.<\/p>\n<p>In this blog, we will walk through how we implemented this solution using Copilot Studio, Dataverse MCP, Code Interpreter, and Power Automate and Custom Prompt.<\/p>\n<h3><strong>Step By Step Implementation of Agent :<\/strong><\/h3>\n<p><strong>Step 1: Prepare Sample Case and SLA Data in Dynamics 365<\/strong><\/p>\n<p>To demonstrate the complete SLA analytics scenario, we first prepared sample customer service case data inside Dynamics 365 Customer Service Hub. The data includes cases with different priorities such as Critical, High, Normal, and Low, along with various statuses like Active and Resolved.<\/p>\n<p>We also configured SLA KPIs for the cases so that some records would intentionally move into breached and nearing-breach states. This helped us simulate a realistic customer service environment where managers need quick visibility into SLA performance and escalated cases.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44787 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1.jpg\" alt=\"Copilot Agents\" width=\"1301\" height=\"479\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1.jpg 1301w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1-300x110.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1-1024x377.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1-768x283.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-1-660x243.jpg 660w\" sizes=\"(max-width: 1301px) 100vw, 1301px\" \/><\/p>\n<p><strong>Step 2: Create the Customer Service Bot and Configure Agent Instructions<\/strong><\/p>\n<p>After preparing the case and SLA data, we created a Customer Service Bot in Copilot Studio and configured detailed agent instructions. The agent was designed to understand customer service-related queries, retrieve real-time case data, identify SLA breaches, and provide operational insights dynamically.<\/p>\n<p>Also configured custom topic routing within the instructions so that whenever a user requests visual dashboards or Excel reports, the agent automatically triggers the appropriate topic and processes the data accordingly.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44788 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-2.jpg\" alt=\"Copilot Agents\" width=\"861\" height=\"622\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-2.jpg 861w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-2-300x217.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-2-768x555.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-2-660x477.jpg 660w\" sizes=\"(max-width: 861px) 100vw, 861px\" \/><\/p>\n<p><strong>Step 3: Configure the Microsoft Dataverse MCP Server<\/strong><\/p>\n<p>To connect the Copilot agent with Dynamics 365 data, we added and configured the Microsoft Dataverse MCP Server. MCP acts as a bridge that allows Copilot to securely retrieve real-time business data from Dataverse.<\/p>\n<p>To Enable : T<strong>ool -&gt; Dataverse -&gt; Microsoft Dataverse MCP Server<\/strong><\/p>\n<p>For this implementation, we enabled only read-based operations such as querying and retrieving records, ensuring that the agent can analyze data safely without creating, updating, or deleting any records.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44789 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-3.jpg\" alt=\"Copilot Agents\" width=\"837\" height=\"584\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-3.jpg 837w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-3-300x209.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-3-768x536.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-3-660x461.jpg 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-3-200x140.jpg 200w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/p>\n<p><strong>Step 4: Enable Code Interpreter and Deep Reasoning<\/strong><\/p>\n<p>Next, we enabled Code Interpreter and Deep Reasoning from the agent settings in Copilot Studio. Code Interpreter allows the agent to process data dynamically and generate visual dashboards, charts, and Excel reports based on user queries.<\/p>\n<p>We also enabled Deep Reasoning to help the agent better understand the context of the request and generate more accurate analytical insights from the retrieved case and SLA data.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44790 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-4.jpg\" alt=\"Copilot Agents\" width=\"1140\" height=\"251\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-4.jpg 1140w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-4-300x66.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-4-1024x225.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-4-768x169.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-4-660x145.jpg 660w\" sizes=\"(max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44791 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-5.jpg\" alt=\"Copilot Agents\" width=\"796\" height=\"162\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-5.jpg 796w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-5-300x61.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-5-768x156.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-5-660x134.jpg 660w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/p>\n<p><strong>Step 5: Create a Custom Topic for Dashboard Requests<\/strong><\/p>\n<p>After configuring the agent, we created a custom topic in Copilot Studio to handle visual dashboard requests. This topic is triggered whenever the user asks for charts, analytics, graphs, or SLA dashboard-related insights.<\/p>\n<p>Inside the topic, we added input variables to capture the user request and the case data retrieved from Dataverse. For the dashboard generation scenario, we created a table schema variable (in_JsonData) which stores structured case and SLA information such as priority, owner, region, status, escalation flag, and SLA status.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44792 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-6.jpg\" alt=\"Copilot Agents\" width=\"859\" height=\"575\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-6.jpg 859w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-6-300x201.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-6-768x514.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-6-660x442.jpg 660w\" sizes=\"(max-width: 859px) 100vw, 859px\" \/><\/p>\n<p>This structured data is then passed further into the dashboard generation process for analysis and visualization.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44793 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-7.jpg\" alt=\"Copilot Agents\" width=\"682\" height=\"368\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-7.jpg 682w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-7-300x162.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-7-660x356.jpg 660w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/p>\n<p>Next, we created Custom Prompt , To create <strong>go to make.powerapps.com -&gt; Ai Hub -&gt; Prompt <\/strong>that uses the Code Interpreter capability enabled in the agent settings. This prompt is responsible for analyzing the incoming case and SLA data and generating visual outputs dynamically based on the user\u2019s request.<\/p>\n<p>Inside the prompt instructions, we defined the dashboard requirements such as generating pie charts, bar charts, SLA summaries, and other visual insights also <strong>enable Code interpreter in setting<\/strong> of custom prompt. We also configured the output type as \u201cDocuments\/Images\u201d so that the generated dashboards are returned as image files directly within Copilot.<\/p>\n<p>This custom prompt will later be integrated into the Power Automate flow to process data and generate the final visual dashboard output automatically.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44794 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-8.jpg\" alt=\"Copilot Agents\" width=\"1334\" height=\"550\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-8.jpg 1334w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-8-300x124.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-8-1024x422.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-8-768x317.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-8-660x272.jpg 660w\" sizes=\"(max-width: 1334px) 100vw, 1334px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44795 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-9.jpg\" alt=\"Copilot Agents\" width=\"1340\" height=\"647\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-9.jpg 1340w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-9-300x145.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-9-1024x494.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-9-768x371.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-9-660x319.jpg 660w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/p>\n<p><strong>Step 7: Build the Power Automate Flow<\/strong><\/p>\n<p>In the Power Automate flow, we first receive the user question and structured case data from the Copilot topic as input parameters. These inputs are then passed into the \u201cVisual Dashboard Generator\u201d custom prompt, which uses Code Interpreter to analyze the data and generate the required visual dashboard dynamically.<\/p>\n<p>Once the dashboard is generated, the custom prompt returns the output as Base64 encoded image data along with the content type and file name. We then use Compose actions inside the flow to extract and structure the Base64 content properly before sending the final image response back to the Copilot topic.<\/p>\n<p>This allows the generated dashboard image to be displayed directly inside the Copilot chat experience.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44796 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-10.jpg\" alt=\"Copilot Agents\" width=\"976\" height=\"593\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-10.jpg 976w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-10-300x182.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-10-768x467.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-10-660x401.jpg 660w\" sizes=\"(max-width: 976px) 100vw, 976px\" \/><\/p>\n<h3><strong>Step 8: Connect the Copilot Topic to the Power Automate Flow<\/strong><\/h3>\n<p>Inside the Copilot topic, we configured the Power Automate action to pass both the user query and the structured case data into the flow. The LastMessage.Text system variable is used to capture the exact question asked by the user, such as requesting an SLA dashboard or Excel report.<\/p>\n<p>For the case data, we used the JSON(Topic.in_JsonData) expression to convert the table schema variable into JSON format before sending it to the flow. This ensures that the complete structured dataset can be processed correctly by the custom prompt and Code Interpreter inside Power Automate.<\/p>\n<p>The flow then returns the generated file name, content type, and Base64 image content back to the Copilot topic then we use that same in the Message action with type file and provide all 3 options for displaying the dashboard output directly in the chat.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44797 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-11.jpg\" alt=\"Copilot Agents\" width=\"817\" height=\"610\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-11.jpg 817w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-11-300x224.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-11-768x573.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-11-660x493.jpg 660w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44798 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-12.jpg\" alt=\"Copilot Agents\" width=\"844\" height=\"513\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-12.jpg 844w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-12-300x182.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-12-768x467.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-12-660x401.jpg 660w\" sizes=\"(max-width: 844px) 100vw, 844px\" \/><\/p>\n<h3><strong>Step 9: Integrate with Microsoft Teams and Publish<\/strong><\/h3>\n<p>Finally, we integrated the Copilot agent with Microsoft Teams, allowing users to access dashboards, reports, and SLA insights directly within the Teams interface.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44799 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-13.jpg\" alt=\"Copilot Agents\" width=\"1322\" height=\"619\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-13.jpg 1322w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-13-300x140.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-13-1024x479.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-13-768x360.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-13-660x309.jpg 660w\" sizes=\"(max-width: 1322px) 100vw, 1322px\" \/><\/p>\n<p>Then Publish the agent after configuration and open the agent in Teams Chat and start asking question:<\/p>\n<p>As shown below, the Copilot agent successfully generated a real-time SLA Performance Dashboard directly within the chat interface based on the user query. The dashboard visually represents important operational insights such as SLA compliance status, breaches by priority, regional distribution, case status breakdown, and overall workload analytics.<\/p>\n<p>Along with the visual dashboard, the agent also provided a summarized analytical view of the data, helping users quickly identify critical SLA breaches and operational trends without manually analyzing records or reports.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44800 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-14.jpg\" alt=\"Copilot Agents\" width=\"1040\" height=\"558\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-14.jpg 1040w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-14-300x161.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-14-1024x549.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-14-768x412.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-14-660x354.jpg 660w\" sizes=\"(max-width: 1040px) 100vw, 1040px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44801 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-15.jpg\" alt=\"Copilot Agents\" width=\"737\" height=\"408\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-15.jpg 737w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-15-300x166.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-15-660x365.jpg 660w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/p>\n<h3><strong>Step 10: Implement Excel Report Generation<\/strong><\/h3>\n<p>Similar to the Visual Dashboard generation process, we also implemented an AI-powered Excel Report generation feature using the same topic-flow architecture and custom prompt approach. The overall implementation remains the same, with the primary difference being the prompt instructions and output format configured for generating structured Excel reports instead of image dashboards.<\/p>\n<p>Based on the user query, the Copilot agent analyzes the retrieved case and SLA data and automatically generates a formatted Excel report containing operational summaries and detailed case-level insights.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44802 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-16.jpg\" alt=\"Copilot Agents\" width=\"551\" height=\"513\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-16.jpg 551w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-16-300x279.jpg 300w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/p>\n<p>As shown below, the generated Excel report includes multiple analytical sections such as overall case overview, SLA performance metrics, priority-wise case analysis, escalation details, and detailed case records. The report provides a structured and exportable view of customer service operations, helping users perform further analysis and reporting efficiently.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44803 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-17.jpg\" alt=\"Copilot Agents\" width=\"922\" height=\"581\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-17.jpg 922w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-17-300x189.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-17-768x484.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-17-660x416.jpg 660w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-44804 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-18.jpg\" alt=\"Copilot Agents\" width=\"1150\" height=\"544\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-18.jpg 1150w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-18-300x142.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-18-1024x484.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-18-768x363.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/05\/Dynamics-365-AI-Dashboards-and-Excel-Reporting-with-Code-Interpreter-in-Copilot-Agents-18-660x312.jpg 660w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/p>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>In this blog, we implemented an AI-powered customer service analytics solution using Copilot Studio, Code Interpreter, and Dataverse MCP Server. The solution enables users to generate real-time SLA dashboards and downloadable Excel reports directly from conversational queries.<\/p>\n<p>By automating reporting and visual analytics, the solution helps reduce manual effort and provides faster operational insights for customer service teams.<\/p>\n<h3><strong>FAQs<\/strong><\/h3>\n<p><strong>What is Dynamics 365 AI Dashboard with Code Interpreter in Copilot Agents?<\/strong><\/p>\n<p>It is an AI-powered solution built using Microsoft Copilot Studio that allows customer service teams to generate real-time SLA dashboards, visual analytics, and downloadable Excel reports directly through conversational queries \u2014 without manually preparing reports.<\/p>\n<p><strong>What problem does this Copilot solution solve?<\/strong><\/p>\n<p>It eliminates the need for customer service managers to manually open multiple records, switch screens, and prepare reports to track SLA compliance. Users can simply ask questions like &#8220;Generate SLA performance dashboard&#8221; and instantly receive visual insights inside Copilot.<\/p>\n<p><strong>What is Code Interpreter in Copilot Studio?<\/strong><\/p>\n<p>Code Interpreter is a capability in Copilot Studio that allows the agent to dynamically process data, generate charts, create visual dashboards, and produce Excel reports based on user queries \u2014 all within the conversational interface.<\/p>\n<p><strong>What is Deep Reasoning in Copilot Studio and why is it enabled?<\/strong><\/p>\n<p>Deep Reasoning is an agent setting that helps the Copilot understand the full context of a user request and generate more accurate, relevant analytical insights from the retrieved case and SLA data.<\/p>\n<p><strong>Where can users access this Copilot solution?<\/strong><\/p>\n<p>The agent is integrated with Microsoft Teams, allowing users to access SLA dashboards, Excel reports, and case analytics directly within the Teams chat interface.<br \/>\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"What is Dynamics 365 AI Dashboard with Code Interpreter in Copilot Agents?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"It is an AI-powered solution built using Microsoft Copilot Studio that allows customer service teams to generate real-time SLA dashboards, visual analytics, and downloadable Excel reports directly through conversational queries \u2014 without manually preparing reports.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What problem does this Copilot solution solve?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"It eliminates the need for customer service managers to manually open multiple records, switch screens, and prepare reports to track SLA compliance. Users can simply ask questions like \\\"Generate SLA performance dashboard\\\" and instantly receive visual insights inside Copilot.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is Code Interpreter in Copilot Studio?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Code Interpreter is a capability in Copilot Studio that allows the agent to dynamically process data, generate charts, create visual dashboards, and produce Excel reports based on user queries \u2014 all within the conversational interface.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is Deep Reasoning in Copilot Studio and why is it enabled?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Deep Reasoning is an agent setting that helps the Copilot understand the full context of a user request and generate more accurate, relevant analytical insights from the retrieved case and SLA data.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Where can users access this Copilot solution?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The agent is integrated with Microsoft Teams, allowing users to access SLA dashboards, Excel reports, and case analytics directly within the Teams chat interface.\"\n    }\n  }]\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In customer service operations, teams often struggle to get a clear understanding of case performance and SLA compliance in real time. Users usually need to open multiple records, review reports manually, and switch across screens just to identify which cases require immediate attention. This process becomes time-consuming and makes quick decision-making difficult, especially when dealing\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2026\/05\/dynamics-365-ai-dashboards-excel-reporting-code-interpreter-in-copilot-agents\/\">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":{"footnotes":""},"categories":[2746,16,2361],"tags":[3365],"class_list":["post-44765","post","type-post","status-publish","format-standard","hentry","category-copilot","category-dynamics-365","category-technical","tag-ai-dashboards-and-excel-reporting-with-code-interpreter"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/44765","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=44765"}],"version-history":[{"count":4,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/44765\/revisions"}],"predecessor-version":[{"id":44806,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/44765\/revisions\/44806"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=44765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=44765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=44765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}