clarification.mp4
A business-first development tool that validates your project idea before you write any code. This Streamlit application provides an interactive interface for the complete business analysis workflow.
- Interactive form for project description and target customer input
- Automated business viability scoring (1-10 scale)
- Validation gates that prevent development of unviable projects
- Automated web research using Crawl4AI
- Competitive analysis and market trend identification
- Research data integration into business planning
- Feature specification generation with user stories
- Impact vs Effort matrix visualization using Plotly
- Priority-based feature organization (Core, Important, Future)
- Distribution channel identification
- Pricing strategy development
- Launch timeline with milestones
- Success metrics definition
- Persistent state management across sessions
- Session save/load functionality
- Backward compatibility for data model changes
pip install -r requirements.txt
export OPENAI_API_KEY="your-api-key-here"
# Using the startup script (recommended)
python run_app.py
# Or directly with Streamlit
streamlit run app.py
Open your browser to http://localhost:8501
- API Key: Enter your OpenAI API key in the sidebar or set the
OPENAI_API_KEY
environment variable - Model Selection: Choose your preferred language model (GPT-4, GPT-3.5, Claude, etc.)
- System Status: Verify all components are initialized correctly
- Describe Your Project: Enter a detailed description of your project idea
- Target Customer: Specify your target customer segment
- Additional Context: Optionally provide market size, existing solutions, and unique advantages
- Submit for Analysis: Click "Validate Business Opportunity" to start the workflow
- Validation Score: Review the business viability score (must be β₯7 to proceed)
- Business Model: Examine the generated value proposition and revenue streams
- Feature Matrix: Use the impact/effort visualization to prioritize features
- GTM Strategy: Review distribution channels, pricing, and launch timeline
- Product Roadmap: Follow the 3-phase development plan
- Save Session: Preserve your analysis for future reference
- Load Session: Resume previous analysis sessions
- Clear Session: Start fresh with a new project
app.py
: Main Streamlit application with workflow orchestrationorchestrator.py
: LangGraph-based multi-agent workflow engineui/product_strategy_ui.py
: Reusable UI components and visualizationsmemory/graph_memory.py
: Persistent session state management
- User input β Business validation form
- Form submission β Workflow execution
- Multi-agent analysis β State updates
- Results generation β UI display
- Session persistence β Memory storage
OPENAI_API_KEY
: Your OpenAI API key (required)DEBUG
: Set to "true" for detailed error informationSTREAMLIT_SERVER_PORT
: Custom port (default: 8501)
openai/gpt-4o-mini
(default, cost-effective)openai/gpt-4o
(most capable)openai/gpt-3.5-turbo
(fast and affordable)anthropic/claude-3-haiku
(alternative provider)anthropic/claude-3-sonnet
(high-quality alternative)
"API Key required" warning
- Set your OpenAI API key in the sidebar or environment variable
- Verify the key is valid and has sufficient credits
"System not initialized" error
- Check that all dependencies are installed correctly
- Verify the API key is configured properly
- Review the system status in the sidebar
Workflow execution fails
- Check your internet connection for web research
- Verify API key has sufficient credits
- Review error messages in the application
Session loading fails
- Check if the session file exists and is readable
- Try clearing the session and starting fresh
- Review memory statistics in the sidebar
- Use GPT-4o-mini for faster, cost-effective analysis
- Save sessions regularly to preserve work
- Clear old sessions periodically to reduce memory usage
export DEBUG=true
streamlit run app.py --server.runOnSave true
# Test syntax
python -m py_compile app.py
# Test dependencies
python run_app.py --check-only
This application implements the following requirements:
- 6.1: Business validation section with problem statement input and target customer fields
- 6.4: GTM strategy display with metrics, channels, and pricing in structured layout
- 8.1: Unique session ID creation and ProductState initialization
- 8.3: Complete state restoration including business model, features, and research data
For issues or questions:
- Check the troubleshooting section above
- Review the application logs for detailed error information
- Verify all dependencies are correctly installed
- Ensure your API key is valid and has sufficient credits