{"id":42880,"date":"2025-11-21T14:35:48","date_gmt":"2025-11-21T09:05:48","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=42880"},"modified":"2025-11-21T14:35:48","modified_gmt":"2025-11-21T09:05:48","slug":"visualize-dataverse-insights-using-code-interpreter-in-microsoft-copilot-studio","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2025\/11\/visualize-dataverse-insights-using-code-interpreter-in-microsoft-copilot-studio\/","title":{"rendered":"Visualize Dataverse Insights Using Code Interpreter in Microsoft Copilot Studio"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42892\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Visualize Dataverse Insights Using Code Interpreter in Microsoft Copilot Studio\" width=\"2100\" height=\"1200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio.png 2100w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio-2048x1170.png 2048w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/Visualize-Dataverse-Insights-Using-Code-Interpreter-in-Microsoft-Copilot-Studio-660x377.png 660w\" sizes=\"(max-width: 2100px) 100vw, 2100px\" \/><\/p>\n<p>Microsoft Copilot Studio is rapidly transforming how business users analyze data, automate tasks, and create intelligent solutions. One of its most powerful new capabilities is the Code Interpreter, which allows users to run Python code directly within Copilot, without needing developer expertise.<\/p>\n<p>With this feature, users can perform advanced data analysis, process documents (Word, Excel, PowerPoint, PDF), generate charts and visualizations, and receive summarized insights, all through simple natural language prompts. The combination of Python execution + AI reasoning makes Copilot Studio a powerful tool for business analysts, sales teams, data professionals, and low-code makers.<\/p>\n<p>By integrating this capability directly into the Microsoft ecosystem, organizations can accelerate insights, reduce manual analysis effort, and modernize reporting faster and more efficiently.<\/p>\n<h3><strong>Business Use Case Example<\/strong><\/h3>\n<p>Imagine a sales representative who needs to analyze customer performance across industries. Instead of manually opening Excel, running formulas, or creating charts, they can simply ask Copilot:<\/p>\n<p><strong>\u201cShow annual revenue by industry for my customers.\u201d<\/strong><\/p>\n<p>Copilot instantly:<\/p>\n<ul>\n<li>Pulls customer data from Dataverse<\/li>\n<li>Runs Python code in the Code Interpreter<\/li>\n<li>Generates a bar chart showing revenue trends<\/li>\n<li>Provides a written summary highlighting top-performing sectors<\/li>\n<\/ul>\n<p>This removes repetitive data tasks from the sales process and enables quick, data-backed decisions by helping teams prioritize high-value opportunities more effectively.<\/p>\n<p><strong>Implementation<\/strong><\/p>\n<p>Before using the Code Interpreter within prompts or agent flows, it must be enabled in your environment.<\/p>\n<ul>\n<li>Go to <a href=\"https:\/\/admin.powerplatform.microsoft.com\" target=\"_blank\" rel=\"noopener\">Power Platform admin center<\/a><\/li>\n<li>Select <strong>Copilot \u2192 Settings \u2192 Code generation and execution in Copilot Studio<\/strong>.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42881\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/1Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<ul>\n<li>A pane with list of environments opens. Select the environment and click on Add.<\/li>\n<li>Select On to turn on code generation and execution in Copilot Studio and save.<\/li>\n<\/ul>\n<p><strong> <img decoding=\"async\" class=\"alignnone size-full wp-image-42882\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/2Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/strong><\/p>\n<h2>Building a Code Interpreter Prompt for Dataverse Visualizations<\/h2>\n<h3><strong>1. Create the Prompt<\/strong><\/h3>\n<ul>\n<li>Go to Microsoft Copilot Studio \u2192 <em>Tools<\/em> \u2192 <em>New Tool<\/em> \u2192 <em>Prompt<\/em>.<\/li>\n<li>First, ensure the Code Interpreter is enabled:\n<ul>\n<li>Go to Settings \u2192 Enable code interpreter.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42883\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/3Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42884\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/4Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<ul>\n<li>Add your natural-language instructions.<\/li>\n<\/ul>\n<ul>\n<li>Link the prompt to the Dataverse tables you want to analyze.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42885\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/5Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p><strong>Integrate the prompt into an agent flow in Copilot Studio<\/strong><\/p>\n<ol start=\"2\">\n<li>Add the Prompt to an Agent Flow<\/li>\n<\/ol>\n<ul>\n<li>Go to Tools &gt; Add a tool &gt; New tool &gt; Agent flow.<\/li>\n<li>In the agent flow designer, select When an agent calls as the flow trigger.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42886\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/6Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<ul>\n<li>Now add a new Run a prompt action and select the name of the prompt to be used for this flow.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42887\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/7Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3><strong>3. Pass Outputs Back to the Agent<\/strong><\/h3>\n<ul>\n<li>Next, open the Respond to the agent node editor to select parameters to pass back to the agent as outputs.\n<ul>\n<li>Add an output of Text type and use the Insert Expression option to set its value as \u201coutputs(&#8216;Run_a_prompt&#8217;)?[&#8216;body\/responsev2\/predictionOutput\/text&#8217;]\u201d. This is the string containing the summary that is returned by the prompt.<\/li>\n<li>Add a second output of Text type and set its value as \u201cfirst(outputs(&#8216;Run_a_prompt&#8217;)?[&#8216;body\/responsev2\/predictionOutput\/files&#8217;])?[&#8216;base64_content&#8217;]\u201d. This is the string containing the base64-encoded image of the graph.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42888\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/8Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h2>Publishing the Flow and Displaying Results<\/h2>\n<h3><strong>4. Publish &amp; Connect<\/strong><\/h3>\n<ul>\n<li>Save and publish the flow and add it to the agent by going on the Tools page in the agent and selecting the flow.<\/li>\n<li>Now, under the Completion tab, set the After running action to Send an adaptive card (specify below).<\/li>\n<\/ul>\n<h3><strong>5. Add This Adaptive Card Formula<\/strong><\/h3>\n<p>Under Adaptive card to display using a PowerFx formula, select <strong>Formula <\/strong>and enter this formula:<\/p>\n<pre class=\"lang:css gutter:true start:1\">{\r\n\r\ntype: \"AdaptiveCard\",\r\n\r\n'$schema': \"<a href=\"http:\/\/adaptivecards.io\/schemas\/adaptive-card.json\">http:\/\/adaptivecards.io\/schemas\/adaptive-card.json<\/a>\",\r\n\r\nversion: \"1.0\",\r\n\r\nbody: [\r\n\r\n{\r\n\r\ntype: \"Image\",\r\n\r\nurl: \"data:image\/png;base64,\" &amp; Topic.Output.image,\r\n\r\naltText : \"Generated graph\"\r\n\r\n},\r\n\r\n{\r\n\r\ntype: \"TextBlock\",\r\n\r\ntext: Topic.Output.summary,\r\n\r\nwrap: \"true\"\r\n\r\n}\r\n\r\n]\r\n\r\n}<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42889\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/9Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>When the user enters a prompt asking for an analysis of annual revenue data, this flow will be executed, returning a box plot. This box plot showcases the median value of annual revenue for each industry and displays the quartiles in the data. This helps visualize the variation in Annual Revenue data with respect to each industry, making it a useful tool for low-code makers to generate insights using AI.<\/p>\n<p><strong> <img decoding=\"async\" class=\"alignnone size-full wp-image-42890\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio.png\" alt=\"Code Interpreter in Microsoft Copilot Studio\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio.png 1920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio-1024x576.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio-768x432.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio-1536x864.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/11\/10Code-Interpreter-in-Microsoft-Copilot-Studio-660x371.png 660w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/strong><\/p>\n<p><strong>FAQs <\/strong><\/p>\n<h3><strong>1. What is the Code Interpreter in Microsoft Copilot Studio?<\/strong><\/h3>\n<p>The Code Interpreter in Microsoft Copilot Studio is a built-in feature that allows users to run Python code directly inside Copilot. It enables advanced tasks like data analysis, document processing, visualization generation, and automated insights using natural language prompts, without switching tools.<\/p>\n<h3><strong>2. How does the Code Interpreter help analyze Dataverse data?<\/strong><\/h3>\n<p>With the Code Interpreter enabled, users can analyze Dataverse tables by typing simple prompts. Copilot processes the data using Python, generates visual summaries such as charts or graphs, and returns a clear natural-language explanation for faster decision-making.<\/p>\n<h3><strong>3. How do I enable the Code Interpreter in Copilot Studio?<\/strong><\/h3>\n<p>You can turn on the Code Interpreter through the Power Platform admin center by navigating to <strong>Copilot \u2192 Settings \u2192 Code generation and execution<\/strong>, selecting your environment, and switching it <strong>On<\/strong>.<\/p>\n<h3><strong>4. Can I generate visualizations from Dataverse using natural language?<\/strong><\/h3>\n<p>Yes. By creating a prompt and linking Dataverse tables, Copilot can generate visual insights such as bar charts, box plots, or trend visuals using Python by automatically converting them into images you can return using adaptive cards.<\/p>\n<h3><strong>5. How do agent flows work with Code Interpreter prompts?<\/strong><\/h3>\n<p>Agent flows allow your Copilot agent to call the Code Interpreter prompt automatically. You simply add a <strong>Run a prompt<\/strong> action, return the text insights and base64 image, and display them through an adaptive card in the agent\u2019s response.<\/p>\n<h3><strong>6. What business scenarios can benefit from the Code Interpreter?<\/strong><\/h3>\n<p>Any role that needs fast, AI-powered data analysis can benefit\u2014such as sales teams analyzing revenue trends, business analysts exploring customer segments, or data professionals automating insights without manual Excel work.<\/p>\n<h3><strong>7. What kind of documents can the Code Interpreter process?<\/strong><\/h3>\n<p>According to the blog, it can intelligently process content across <strong>Word, Excel, PowerPoint, and PDF<\/strong>, enabling extraction, summarization, and automation workflows within Copilot Studio.<\/p>\n<h3><strong>8. Does Copilot provide human-readable insights along with the visuals?<\/strong><\/h3>\n<p>Yes. Copilot combines Python-generated outputs with AI reasoning to deliver <strong>clear, human-friendly summaries<\/strong>, making it easier for non-technical users to interpret complex data.<\/p>\n<h3><strong>9. How does the Code Interpreter improve productivity?<\/strong><\/h3>\n<p>It reduces manual analysis, eliminates context-switching between tools, automates repetitive tasks, and turns natural language instructions into ready-to-use data insights by accelerating workflows for low-code makers and business users.<\/p>\n<h3><strong>10. What types of charts or visuals can be generated?<\/strong><\/h3>\n<p>The blog example showcases a <strong>box plot<\/strong> displaying median revenue and quartile distribution by industry. Similar prompts can generate other visual summaries depending on available data and instructions.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>The Code Interpreter in Microsoft Copilot Studio bridges the gap between advanced data analytics and conversational AI. By combining Python\u2019s analytical power with Copilot\u2019s natural language understanding, users can generate instant insights, automate complex analysis, and present data visually, all within a single platform.<\/p>\n<p>Whether you&#8217;re analyzing sales data, generating reports, or building smart automations, this feature empowers teams to move faster and make better, data-driven decisions with minimal manual effort.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Copilot Studio is rapidly transforming how business users analyze data, automate tasks, and create intelligent solutions. One of its most powerful new capabilities is the Code Interpreter, which allows users to run Python code directly within Copilot, without needing developer expertise. With this feature, users can perform advanced data analysis, process documents (Word, Excel,\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2025\/11\/visualize-dataverse-insights-using-code-interpreter-in-microsoft-copilot-studio\/\">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":[2746,2354],"tags":[2171,2904],"class_list":["post-42880","post","type-post","status-publish","format-standard","hentry","category-copilot","category-dataverse","tag-dataverse","tag-microsoft-copilot-studio"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/42880","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=42880"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/42880\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=42880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=42880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=42880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}