# m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai architecture

> Architecture diagram of the GitHub repository m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai
- Repository: https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai

## Overview

This repository presents a product-intelligence system for analyzing product sales and producing recommendations, with both a Streamlit demo and a CrewAI analysis implementation. The documented workflow moves from seasonal and trend analysis through product classification to executive synthesis. The analyzer, task definitions, agents, and analysis tools are represented separately; tools.py contains the evidenced computational responsibilities. Evidence is limited to the README and excerpts: imports in main.py and crew_analyzer.py refer to modules not present in the supplied tree, so those links are shown as unverified rather than asserted.

Main entry points: [`tasks.py`](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py) (Task Definitions), [`crew_analyzer.py`](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/crew_analyzer.py) (Crew Analyzer), [`agents.py`](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/agents.py) (Agent Definitions), [`tools.py`](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py) (Seasonality Analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_streamlit["Streamlit Demo<br/>[app.py]"]
  node_analyzer_entry["Analysis Entry<br/>[main.py]"]
end

subgraph group_coordination["Analysis Coordination"]
  node_crew_analyzer["Crew Analyzer<br/>[crew_analyzer.py]"]
  node_agent_definitions["Agent Definitions<br/>[agents.py]"]
  node_task_definitions["Task Definitions<br/>[tasks.py]"]
end

subgraph group_analysis["Product Analysis"]
  node_seasonality["Seasonality Analysis<br/>[tools.py]"]
  node_trend["Trend Analysis<br/>[tools.py]"]
  node_classification["Product Classification<br/>[tools.py]"]
  node_data_file["Product Sales Data"]
end

subgraph group_reporting["Recommendations"]
  node_strategy["Strategic Assessment<br/>[tasks.py]"]
  node_executive_report["Executive Synthesis<br/>[tasks.py]"]
  node_results["Analysis Results"]
end

node_user(("Business User"))

node_user -->|"uploads data"| node_streamlit
node_user -->|"starts analysis"| node_analyzer_entry
node_streamlit -->|"displays demo"| node_results
node_analyzer_entry -.->|"delegates analysis"| node_crew_analyzer
node_crew_analyzer -.->|"selects agents"| node_agent_definitions
node_crew_analyzer -.->|"creates tasks"| node_task_definitions
node_agent_definitions -->|"equips agent"| node_seasonality
node_agent_definitions -->|"equips agent"| node_trend
node_agent_definitions -->|"equips agent"| node_classification
node_task_definitions -->|"provides tool"| node_seasonality
node_task_definitions -->|"provides tool"| node_trend
node_task_definitions -->|"provides tool"| node_classification
node_data_file -->|"analyzed by"| node_seasonality
node_data_file -->|"analyzed by"| node_trend
node_data_file -->|"analyzed by"| node_classification
node_task_definitions -->|"defines assessment"| node_strategy
node_task_definitions -->|"defines synthesis"| node_executive_report
node_strategy -->|"synthesizes findings"| node_executive_report
node_executive_report -->|"produces recommendations"| node_results
node_crew_analyzer -->|"returns analysis"| node_results

click node_streamlit "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/app.py"
click node_analyzer_entry "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/main.py"
click node_crew_analyzer "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/crew_analyzer.py"
click node_agent_definitions "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/agents.py"
click node_task_definitions "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py"
click node_seasonality "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py"
click node_trend "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py"
click node_classification "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py"
click node_strategy "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py"
click node_executive_report "https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_streamlit,node_analyzer_entry,node_user toneBlue
class node_crew_analyzer,node_agent_definitions,node_task_definitions toneAmber
class node_seasonality,node_trend,node_classification,node_data_file toneMint
class node_strategy,node_executive_report,node_results toneRose
```

## Components

### User Interfaces

- [Streamlit Demo](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/app.py): `app.py`
- [Analysis Entry](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/main.py): `main.py`

### Analysis Coordination

- [Crew Analyzer](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/crew_analyzer.py): `crew_analyzer.py`
- [Agent Definitions](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/agents.py): `agents.py`
- [Task Definitions](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py): `tasks.py`

### Product Analysis

- [Seasonality Analysis](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py): `tools.py`
- [Trend Analysis](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py): `tools.py`
- [Product Classification](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tools.py): `tools.py`
- **Product Sales Data**

### Recommendations

- [Strategic Assessment](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py): `tasks.py`
- [Executive Synthesis](https://github.com/m-abul-hassan/ai-multi-agent-business-intelligence-system-using-crewai/blob/main/tasks.py): `tasks.py`
- **Analysis Results**

### Other components

- **Business User**

## Connections

- Business User → Streamlit Demo: uploads data (evidence: `app.py`)
- Business User → Analysis Entry: starts analysis (evidence: `README.md`)
- Streamlit Demo → Analysis Results: displays demo (evidence: `app.py`)
- Analysis Entry → Crew Analyzer: delegates analysis
- Crew Analyzer → Agent Definitions: selects agents
- Crew Analyzer → Task Definitions: creates tasks
- Agent Definitions → Seasonality Analysis: equips agent (evidence: `agents.py`)
- Agent Definitions → Trend Analysis: equips agent (evidence: `agents.py`)
- Agent Definitions → Product Classification: equips agent (evidence: `agents.py`)
- Task Definitions → Seasonality Analysis: provides tool (evidence: `tasks.py`)
- Task Definitions → Trend Analysis: provides tool (evidence: `tasks.py`)
- Task Definitions → Product Classification: provides tool (evidence: `tasks.py`)
- Product Sales Data → Seasonality Analysis: analyzed by (evidence: `README.md`)
- Product Sales Data → Trend Analysis: analyzed by (evidence: `README.md`)
- Product Sales Data → Product Classification: analyzed by (evidence: `README.md`)
- Task Definitions → Strategic Assessment: defines assessment (evidence: `tasks.py`)
- Task Definitions → Executive Synthesis: defines synthesis (evidence: `tasks.py`)
- Strategic Assessment → Executive Synthesis: synthesizes findings (evidence: `README.md`)
- Executive Synthesis → Analysis Results: produces recommendations (evidence: `README.md`)
- Crew Analyzer → Analysis Results: returns analysis (evidence: `crew_analyzer.py`)
