A multi-agent CrewAI application that automatically researches technical topics and generates professional PowerPoint presentations and reference manuals.
This project uses a crew of specialized AI agents to:
- Research technical topics using web search and internal knowledge
- Synthesize findings into structured knowledge bases
- Script slide content and detailed reference manuals
- Design visual identities with themed color palettes
- Generate infrastructure diagrams using Python diagrams + Graphviz
- Compile everything into polished
.pptxand.docxfiles
- Automated Research: Deep-dive technical analysis with implementation steps and troubleshooting
- Professional PPT Generation: Themed slides with accent bars, headers, footers, and slide numbers
- Diagram Support: Infrastructure diagrams via
diagramslibrary; automatic fallback to web images - Visual Identity: Default seed schema with Corporate Deep Blue theme; customizable palettes
- Reference Manuals: Detailed technical documents with structured sections
- Multi-Agent Pipeline: 7 specialized agents working sequentially via CrewAI
main.py
├── Librarian Agent # Research synthesis
├── Researcher Agent # Technical deep-dive
├── Scriptwriter Agent # Content scripting
├── Creative Director Agent # Visual identity & theming
├── Visual Architect Agent # Diagram generation
├── Visual Asset Manager # Image fallback & curation
└── Compiler Agent # PPT/DOCX assembly
.
├── main.py # Application entry point
├── models.py # Pydantic data models
├── orchastration.py # Legacy orchestration reference
├── default_seed_schema.md # Default visual theme specification
├── requirements.txt # Python dependencies
├── agents/ # Agent definitions
│ ├── compiler.py
│ ├── creative_director.py
│ ├── librarian.py
│ ├── researcher.py
│ ├── scriptwriter.py
│ ├── visual_architect.py
│ └── visual_asset_manager.py
├── tasks/ # Task definitions
│ ├── compilation_tasks.py
│ ├── design_tasks.py
│ ├── librarian_tasks.py
│ ├── research_tasks.py
│ ├── scripting_tasks.py
│ ├── style_tasks.py
│ └── visual_tasks.py
├── tools/ # Agent tools
│ ├── diagram_tools.py # Diagram generation + validation
│ ├── file_tools.py # PPT/DOCX creation
│ ├── image_tools.py # Image search & preparation
│ ├── schema_loader.py # Seed schema parser
│ └── search_tools.py # Web search
├── output/ # Generated artifacts (gitignored)
└── temp/ # Intermediate assets (gitignored)
- Python 3.10+
- Graphviz (system dependency for
diagrams) - Gemini API key
- Clone the repository
git clone <repo-url>
cd <repo-directory>- Create a virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts�ctivate- Install dependencies
pip install -r requirements.txt- Configure environment variables
Create a .env file in the project root:
GEMINI_API_KEY=your_gemini_api_key_here- Install Graphviz (system dependency)
- Ubuntu/Debian:
sudo apt-get install graphviz - macOS:
brew install graphviz - Windows: Download from graphviz.org
python main.pyThe default configuration generates a training presentation on Hybrid Cloud Security with 10 slides.
python main.py --topic "Zero Trust Architecture" \
--subpoints "Identity,Device Trust,Network Segmentation" \
--slides 15 \
--model ollama/deepseek-v4-pro:cloud \
--fallback-model ollama/glm-5.1| Argument | Default | Description |
|---|---|---|
--topic |
Hybrid Cloud Security |
Topic for the training material |
--subpoints |
IAM Federation,KMS... |
Comma-separated subpoints |
--references |
NIST SP 800-144... |
Reference standards |
--slides |
10 |
Minimum number of slides |
--model |
ollama/deepseek-v4-pro:cloud |
Primary LLM model |
--fallback-model |
ollama/glm-5.1 |
Fallback LLM on rate limit |
--style |
Corporate |
Visual style name |
--colors |
Blue/White |
Color palette hint |
The app supports multiple LLM providers via CrewAI/LiteLLM:
| Provider | Example Model String |
|---|---|
| Ollama (Local) | ollama/llama3.1, ollama/deepseek-r1:14b |
| Ollama (Cloud) | ollama/deepseek-v4-pro:cloud, ollama/glm-5.1 |
| Gemini | gemini/gemini-2.5-flash, gemini/gemini-1.5-pro |
| OpenAI | gpt-4o, gpt-4-turbo |
| Anthropic | claude-3-5-sonnet-20241022 |
Set the model via:
--modelCLI argumentOLLAMA_MODELenvironment variableGEMINI_API_KEYenvironment variable (auto-selects Gemini)
If the primary model returns a 429 RESOURCE_EXHAUSTED or rate-limit error, the app automatically retries with the --fallback-model.
Local Ollama:
- Install Ollama: https://ollama.com/download
- Pull your model:
ollama pull deepseek-v4-pro:cloud
- Ensure Ollama is running:
ollama serve
Ollama Cloud:
Set the cloud endpoint:
export OLLAMA_HOST=https://api.ollama.aiEdit default_seed_schema.md to adjust colors, fonts, and layout rules. The Creative Director agent loads this file automatically.
The default_seed_schema.md file defines the default Corporate Deep Blue theme. You can:
- Change hex color codes in the palette table
- Adjust font sizes and families
- Modify slide layout rules (margins, bar heights, column widths)
- Add new theme sections (e.g., "Healthcare", "Finance")
| Tool | Purpose | File |
|---|---|---|
internet_search |
DuckDuckGo web search | tools/search_tools.py |
generate_infra_diagram |
Run diagrams Python scripts |
tools/diagram_tools.py |
generate_diagram_with_fallback |
Diagrams + image fallback | tools/diagram_tools.py |
validate_diagram_script |
Syntax-check diagram code | tools/diagram_tools.py |
fetch_technical_image |
Search and download images | tools/image_tools.py |
prepare_image_for_slide |
Resize images for slides | tools/image_tools.py |
create_final_ppt |
Generate .pptx |
tools/file_tools.py |
create_reference_doc |
Generate .docx |
tools/file_tools.py |
load_default_schema |
Parse theme from markdown | tools/schema_loader.py |
- Create a new file in
agents/ - Define a
get_<role>()factory function returning acrewai.Agent - Register the agent and its task in
main.py
- Define the function in the appropriate
tools/*.pyfile - Add a docstring (required by CrewAI)
- Decorate with
@tool("tool_name") - Register the tool in the relevant agent
| Issue | Solution |
|---|---|
No GEMINI_API_KEY found |
Create a .env file with your API key |
| Diagram generation fails | Ensure Graphviz is installed and on PATH |
diagrams import error |
Run pip install diagrams |
| Images not appearing | Check temp/ directory permissions |
| PPT styling looks off | Verify default_seed_schema.md is present |
Key packages:
crewai— Agent orchestrationpython-pptx— PowerPoint generationpython-docx— Word document generationdiagrams— Infrastructure diagrammingpydantic— Data validationpython-dotenv— Environment variable loadinglangchain/langchain-community— LLM integrationsduckduckgo-search— Web search
See requirements.txt for the full list.
[Your License Here]
Please read AGENTS.md for repository guidelines before contributing.