Generate comprehensive AI strategy deliverables for any company in minutes, not weeks.
Quick Start • Features • How It Works • Deliverables • Installation • Usage
Enter a company name → Get a complete AI strategy package:
| Output | Description |
|---|---|
| 15 Strategic Documents | Tech inventory, pain points, roadmaps, ROI analysis |
| Architecture Diagrams | Auto-generated Mermaid visualizations |
| Executive Presentations | PowerPoint decks ready for stakeholders |
| Implementation Reports | Detailed Word documents with recommendations |
Cost per analysis: ~$0.05-0.50 using Perplexity + Gemini APIs
Click here if you're new to coding or feeling intimidated
This tool is like having a consulting firm in a box. You type in a company name (like "Nike" or "your local bakery"), and it automatically:
- Researches the company using AI (like having a research assistant)
- Writes 15 professional strategy documents (like having a consultant)
- Creates PowerPoint presentations and Word docs (like having an analyst)
That's it. You don't need to understand the code. You just need to run it.
| What | Why | How Long to Get |
|---|---|---|
| A computer | Windows, Mac, or Linux all work | You probably have this |
| Python installed | The programming language this runs on | 5 minutes |
| Two free API keys | To use Perplexity and Gemini AI | 10 minutes |
| Claude Code (optional) | Makes everything 10x easier | 2 minutes |
If you have Claude Code installed, you literally just need to say:
Clone the repo at https://github.com/promptadvisers/ai-strategy-factory and help me set it up and run it
Claude Code will:
- Download all the files
- Install everything needed
- Help you get API keys
- Run the app for you
That's the whole process if you use Claude Code.
On Mac:
- Open Terminal (search "Terminal" in Spotlight)
- Type:
python3 --version - If you see a version number, you're done!
- If not, go to python.org/downloads and download
On Windows:
- Go to python.org/downloads
- Download and run the installer
- IMPORTANT: Check the box that says "Add Python to PATH"
- Click Install
You need two free API keys:
Perplexity API Key:
- Go to perplexity.ai
- Create an account (free)
- Go to Settings → API
- Click "Generate API Key"
- Copy it somewhere safe (looks like
pplx-abc123...)
Gemini API Key:
- Go to aistudio.google.com/apikey
- Sign in with Google
- Click "Create API Key"
- Copy it somewhere safe (looks like
AIzaSy...)
Option A - Download ZIP (easiest):
- Click the green "Code" button at the top of this page
- Click "Download ZIP"
- Unzip the folder somewhere you can find it (like Desktop)
Option B - Use Git:
git clone https://github.com/promptadvisers/ai-strategy-factory.git-
Open Terminal (Mac) or Command Prompt (Windows)
-
Navigate to the folder:
cd Desktop/ai-strategy-factory # or wherever you put it
-
Run the setup:
python setup.py # On Windows python3 setup.py # On Mac
-
Add your API keys:
- Open the
.envfile in any text editor - Replace the placeholder text with your actual keys
- Save the file
- Open the
python -m strategy_factory.webapp # Windows
python3 -m strategy_factory.webapp # MacYour browser will open to http://localhost:8888
Type in any company name and click "Start Analysis"!
Once you have the project set up, here are things you can ask Claude Code to do:
"Run an AI strategy analysis for Tesla"
"Generate a comprehensive strategy report for my company [describe your company]"
"Start the web interface so I can analyze multiple companies"
"What companies have I already analyzed?"
"Help me understand the ROI calculator output for Stripe"
"Python not found"
- Make sure Python is installed (Step 1)
- On Windows, make sure you checked "Add Python to PATH" during install
- Try restarting your terminal/command prompt
"API key error"
- Double-check your
.envfile has the right keys - Make sure there are no extra spaces
- Make sure the keys are on their own lines
"Module not found"
- Run
pip install -r requirements.txtagain - Make sure you're in the right folder
Still stuck?
- Open an issue on GitHub
- Or ask Claude Code: "I'm getting this error: [paste error]. Help me fix it."
Seriously, the hardest part is getting the API keys. Once those are set up, it's just clicking buttons. And if you have Claude Code, it can literally do all of this for you.
If you have Claude Code:
Just say: "Clone and run the AI Strategy Factory for me"
# Clone the repository
git clone https://github.com/promptadvisers/ai-strategy-factory.git
cd ai-strategy-factory
# Run the setup script (works on Windows, macOS, Linux)
python setup.py
# Add your API keys to .env file
# Then run the web app
python -m strategy_factory.webappOpen http://localhost:8888 and enter a company name!
- Perplexity AI for real-time company intelligence
- 9-18 targeted queries per analysis
- Automatic source aggregation
- Google Gemini 2.5 Flash for document generation
- 15 specialized deliverable templates
- Consistent consulting-quality output
- Markdown documents
- PowerPoint presentations (PPTX)
- Word reports (DOCX)
- Architecture diagrams (PNG)
- Beautiful web interface
- Real-time progress tracking
- Resume interrupted analyses
- Cross-platform support
┌─────────────────────────────────────────────────────────────────────┐
│ USER INPUT │
│ "Analyze Stripe" │
└─────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────┐
│ PHASE 1: RESEARCH │
│ │
│ Perplexity AI queries: │
│ • Company overview & business model │
│ • Technology stack & infrastructure │
│ • Industry landscape & competitors │
│ • AI/ML current initiatives │
│ • Pain points & challenges │
│ • Strategic priorities │
│ │
│ Output: Comprehensive research JSON │
└─────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────┐
│ PHASE 2: SYNTHESIS │
│ │
│ Google Gemini generates: │
│ • 15 markdown deliverables │
│ • Mermaid diagram code │
│ • Structured recommendations │
│ │
│ Output: Strategy documents │
└─────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────┐
│ PHASE 3: GENERATION │
│ │
│ Final outputs: │
│ • 2 PowerPoint presentations │
│ • 2 Word documents │
│ • 5+ architecture diagrams │
│ │
│ Output: Executive-ready deliverables │
└─────────────────────────────────────────────────────────────────────┘
| # | Document | Description |
|---|---|---|
| 1 | Tech Inventory | Current technology stack assessment |
| 2 | Pain Points | Department-by-department analysis |
| 3 | Maturity Assessment | AI readiness scoring (1-5 scale) |
| 4 | Mermaid Diagrams | Current & future state architecture |
| # | Document | Description |
|---|---|---|
| 5 | Roadmap | 30/60/90/180/360 day implementation plan |
| 6 | Quick Wins | Low-effort, high-impact opportunities |
| 7 | Vendor Comparison | Build vs buy framework |
| 8 | License Consolidation | Software optimization recommendations |
| 9 | ROI Calculator | Cost-benefit analysis with projections |
| # | Document | Description |
|---|---|---|
| 10 | AI Policy | Acceptable use policy template |
| 11 | Data Governance | Data management framework |
| 12 | Change Management | Training and adoption playbook |
| # | Document | Description |
|---|---|---|
| 13 | Prompt Library | Starter prompts by department |
| 14 | Use Case Library | Department-specific AI applications |
| 15 | Glossary | AI terms explained for stakeholders |
| Type | File | Description |
|---|---|---|
| PPTX | Executive Summary | Board-ready presentation |
| PPTX | Full Findings | Detailed analysis deck |
| DOCX | Strategy Report | Comprehensive written report |
| DOCX | Statement of Work | Implementation proposal |
| Requirement | How to Get |
|---|---|
| Python 3.9+ | python.org |
| Perplexity API Key | perplexity.ai/settings/api |
| Gemini API Key | aistudio.google.com/apikey |
# 1. Clone the repository
git clone https://github.com/promptadvisers/ai-strategy-factory.git
cd ai-strategy-factory
# 2. Create virtual environment
python3 -m venv venv
# 3. Activate it
source venv/bin/activate # macOS/Linux
# OR
.\venv\Scripts\activate # Windows
# 4. Install dependencies
pip install -r requirements.txt
# 5. Set up environment
cp .env.example .envEdit .env with your keys:
PERPLEXITY_API_KEY=pplx-xxxxxxxxxxxxxxxxxxxx
GEMINI_API_KEY=AIzaSyxxxxxxxxxxxxxxxxxxxxxxxxxpython -m strategy_factory.webappThen open http://localhost:8888
# Quick analysis (~$0.05, 2-3 minutes)
python -m strategy_factory.main run "Stripe"
# With context
python -m strategy_factory.main run "Stripe" --context "B2B payments, fintech"
# Comprehensive analysis (~$0.50, 5-10 minutes)
python -m strategy_factory.main run "Stripe" --mode comprehensive
# Check status
python -m strategy_factory.main status "Stripe"
# Resume interrupted analysis
python -m strategy_factory.main resume "Stripe"
# List all analyses
python -m strategy_factory.main listai-strategy-factory/
├── strategy_factory/ # Main package
│ ├── webapp.py # Flask web application
│ ├── main.py # CLI entry point
│ ├── config.py # Configuration
│ ├── models.py # Data models
│ ├── progress_tracker.py # State management
│ │
│ ├── research/ # Phase 1: Research
│ │ ├── orchestrator.py
│ │ ├── perplexity_client.py
│ │ └── query_templates.py
│ │
│ ├── synthesis/ # Phase 2: Synthesis
│ │ ├── orchestrator.py
│ │ ├── gemini_client.py
│ │ └── prompts/ # 15 deliverable prompts
│ │
│ └── generation/ # Phase 3: Generation
│ ├── orchestrator.py
│ ├── pptx_generator.py
│ ├── docx_generator.py
│ └── mermaid_renderer.py
│
├── output/ # Generated deliverables
├── docs/ # Documentation
├── requirements.txt
├── setup.py
└── README.md
| API | Model | Cost | Use Case |
|---|---|---|---|
| Perplexity | sonar | $0.001/1K tokens | Quick research |
| Perplexity | sonar-pro | $0.003/1K tokens | Deep research |
| Gemini | 2.5-flash | $0.075/1M input | Document synthesis |
Typical costs:
- Quick mode: $0.02-0.05 per company
- Comprehensive mode: $0.30-0.80 per company
Port already in use
The app automatically finds an available port. Or specify one:
python -m strategy_factory.webapp --port 9000API key errors
- Ensure
.envfile exists in project root - Check keys are correct (no extra spaces)
- Verify API accounts have credits
Module not found
# Make sure you're in the virtual environment
source venv/bin/activate # macOS/Linux
.\venv\Scripts\activate # Windows
# Reinstall dependencies
pip install -r requirements.txtWindows-specific issues
- Use PowerShell or Command Prompt (not Git Bash)
- May need to run as Administrator
- Use
pythoninstead ofpython3
macOS-specific issues
- Port 5000 is used by AirPlay Receiver (we use 8888 by default)
- Install Xcode tools:
xcode-select --install
Contributions are welcome! See CONTRIBUTING.md for guidelines.
- Additional LLM providers (OpenAI, Anthropic)
- PDF export option
- Industry-specific templates
- Caching for repeated queries
- Batch processing multiple companies
MIT License - see LICENSE for details.
- Perplexity AI - Research capabilities
- Google Gemini - Document synthesis
- python-pptx - PowerPoint generation
- python-docx - Word document generation
Built with Claude Code
The AI-powered development assistant