web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :

Using Code Interpreter in Microsoft Copilot Studio for CSV & Excel Analysis

Inogic Profile Picture Inogic 1,265 Moderator

Microsoft Copilot Studio introduces Code Interpreter, a powerful capability that enables agents to generate and execute Python code to analyze structured data.

With this feature, agents can perform tasks such as:

  • Data aggregation
  • Statistical analysis
  • Forecasting
  • Table joins
  • Chart generation

Code Interpreter allows agents to work with structured file formats such as CSV and Excel, enabling users to ask analytical questions in natural language and receive data-driven insights.

This capability significantly enhances Copilot agents by combining AI reasoning with deterministic data processing.

Example Use Case

Imagine a sales operations team that stores lead information in a CSV file.

By enabling Code Interpreter in a Copilot agent, users can ask questions such as:

  • “How many leads were generated from LinkedIn this month?”
  • “Which lead source generated the highest conversions?”

The agent will generate Python code, analyze the dataset, and return tables or visualizations automatically.

Step-by-Step: Use Code Interpreter with Structured Data

Step 1: Create the Agent

Once your structured data file is ready, create a new agent in Copilot Studio.

  1. Open Microsoft Copilot Studio > Create an Agent
  2. Provide a name for your agent, such as Sales Data Analyzer.
  3. Configure the environment and enable Generative AI capabilities... Read More

Comments