# Csv analysis

### Adding CSV Analysis to Your Agent

To enable your agent to analyze CSV and Excel files with advanced data processing capabilities, you can add the CSV Analysis tool during the agent creation process or when editing an existing agent.

<figure><img src="/files/IGziiORsUqc32MnXHiLk" alt=""><figcaption></figcaption></figure>

**During agent creation:**

* In the Tools section (located in the Knowledge & Tools page), you'll find the CSV Analysis option with a magnifying glass icon.
* Check the "CSV analysis" checkbox to give your agent the ability to analyze CSV and Excel files.
* This tool allows your agent to perform complex data analysis, generate insights, and create summaries from spreadsheet data.

**When editing an existing agent:**

* Click the three dots on your agent's card and select "Edit Agent"
* Navigate to the Tools section
* Toggle the CSV Analysis option on or off as needed

**CSV Analysis Capabilities:** Once enabled, your agent will be able to:

* Process and analyze CSV and Excel files uploaded to conversations
* Generate detailed breakdowns and summaries of data
* Create tables showing key metrics and categories
* Perform calculations like counting, filtering, and grouping data
* Provide insights about data patterns and trends
* Show technical details about the dataset including row and column counts

<figure><img src="/files/VNyZd2lk25o8Yi1tJwHX" alt=""><figcaption></figcaption></figure>

The tool provides comprehensive analysis results with both summary tables and detailed technical information, making it perfect for agents that need to work with business data, sales reports, or any structured datasets.

<figure><img src="/files/XYgP62B2AINXSU1L3DpC" alt=""><figcaption></figcaption></figure>

You can view the details of the query made by clicking on the “Sources” field at the end of the assistant response.

<figure><img src="/files/T4TukPFsWhcwhp4yuWn4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.calk-ai.com/agents/tools-you-can-give-to-agent/csv-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
