# Chapter 20 Project Practice: Intelligent Data Analysis Agent

> Data analysis with natural language — from "help me analyze last month's sales" to a complete analysis report.

---

## Chapter Overview

Data analysis is one of the most practical application scenarios for Agents. This chapter builds an intelligent data analysis Agent that lets users describe analysis requirements in natural language, and the Agent automatically completes SQL queries, statistical analysis, chart generation, and report output.

## Chapter Goals

- ✅ Implement safe conversion from natural language to SQL
- ✅ Build automated data analysis and visualization
- ✅ Extract insights from data using LLM
- ✅ Automatically generate structured analysis reports
- ✅ Integrate everything into a complete data analysis Agent

## Chapter Structure

| Section | Content | Difficulty |
|---------|---------|-----------|
| 20.1 Requirements Analysis and Architecture Design | Feature planning and architecture | ⭐⭐ |
| 20.2 Data Connection and Querying | Text-to-SQL, secure access | ⭐⭐⭐ |
| 20.3 Automated Analysis and Visualization | Statistical analysis, chart generation | ⭐⭐⭐ |
| 20.4 Report Generation and Export | Markdown reports | ⭐⭐ |
| 20.5 Full Project Implementation | Integrating all components | ⭐⭐⭐⭐ |

## 🔗 Learning Path

> **Core Prerequisites**: [Chapter 4: Tool Calling](../chapter_tools/README.md), [Chapter 6: Planning and Reasoning](../chapter_planning/README.md), [Chapter 12: LangGraph](../chapter_langgraph/README.md)
> Recommended but not required: [Chapters 16–18: Production Series](../chapter_evaluation/README.md)
>
> **Related Projects**:
> - 🔨 [Chapter 19: AI Coding Assistant](../chapter_coding_agent/README.md)
> - 🎨 [Chapter 21: Multimodal Agent](../chapter_multimodal/README.md)

---

*Next: [20.1 Requirements Analysis and Architecture Design](./01_requirements.md)*
