Let me introduce a production-ready, advanced market intelligence platform powered by multi-agent AI workflows, real-time data integration, and interactive dashboards using Streamlit that automate the end-to-end process of data aggregation, insight generation, and decision support for strategic business planning.
- Firecrawl.dev: Advanced web scraping and content extraction
- NewsData.io: Real-time news aggregation and filtering
- Enhanced Search: Intelligent content discovery and processing
- Reader Agent: Data collection and processing
- Analyst Agent: Trend analysis and opportunity identification
- Strategist Agent: Strategic recommendations and planning
- Formatter Agent: Report generation and export
- Plotly Visualizations: Dynamic, interactive charts
- Real-time Updates: Live data refresh and filtering
- Export Options: PDF, DOCX, JSON, and Notion integration
- Groq-Powered: Fast LLaMA3 inference for instant responses
- Context-Aware: Understands your analysis data
- Persistent Memory: Conversation history and learning
- Smart Suggestions: Relevant prompts and actions
| Component | Technology |
|---|---|
| Frontend | Streamlit + Plotly + Custom Components |
| AI Workflow | LangGraph + Multi-Agent Architecture |
| LLMs | Google Gemini 2.0 + Groq LLaMA3 |
| Data Sources | Firecrawl + NewsData.io + Tavily |
| Visualization | Plotly + Matplotlib + Seaborn |
| Export | ReportLab + python-docx + Notion API |
| Database | SQLite + FAISS Vector Store |
```bash git clone cd market_intel_streamlit_app ```
```bash pip install -r requirements.txt ```
```bash cp .env.example .env ```
Edit .env with your API keys:
```env
GOOGLE_API_KEY=your_google_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here
FIRECRAWL_API_KEY=your_firecrawl_api_key_here
NEWSDATA_IO_KEY=your_newsdata_io_key_here
GROQ_API_KEY=your_groq_api_key_here
NOTION_API_KEY=your_notion_api_key_here ```
Google Gemini API
- Visit Google AI Studio
- Create new API key
- Copy to
.envfile
Tavily Search API
- Visit Tavily
- Sign up and get API key
- Copy to
.envfile
Firecrawl API
- Visit Firecrawl.dev
- Sign up for account
- Get API key from dashboard
- Copy to
.envfile
NewsData.io API
- Visit NewsData.io
- Create account
- Get API key
- Copy to
.envfile
Groq API
- Visit Groq
- Sign up for account
- Get API key
- Copy to
.envfile
```bash streamlit run app.py ```
The application will open at http://localhost:8501
- Enhanced Input: Query, market domain, and specific questions
- Advanced Options: Data source selection and analysis depth
- Real-time Progress: Live agent status and workflow tracking
- Quick Actions: Direct navigation to results
- Dynamic Charts: Plotly-powered interactive visualizations
- Filtering: Real-time data filtering and exploration
- Multiple Views: Trends, opportunities, strategy, and timeline
- Export Options: Chart and data export functionality
- Structured Reports: AI-generated markdown reports
- Multiple Formats: PDF, DOCX, and Notion export
- Chart Integration: Embedded visualizations
- Download Options: Complete analysis packages
- Context-Aware: Understands your current analysis
- Fast Responses: Groq-powered instant inference
- Smart Suggestions: Pre-built prompts and actions
- Persistent Memory: Conversation history and learning
- Session Management: Load and manage previous analyses
- Bulk Operations: Export and delete multiple analyses
- Search & Filter: Find specific analyses quickly
- Analytics: Usage statistics and insights
``` Input → Reader Agent → Analyst Agent → Strategist Agent → Formatter Agent → Output ↓ ↓ ↓ ↓ Data Collection Analysis Strategy Planning Report Generation - Web Scraping - Trends - Recommendations - Charts - News APIs - Opportunities - Action Plans - Exports - Content Filter - Competitive - Risk Assessment - Dashboards ```
- Collection: Reader Agent gathers data from multiple sources
- Analysis: Analyst Agent processes data and extracts insights
- Strategy: Strategist Agent generates recommendations and plans
- Formatting: Formatter Agent creates reports and visualizations
- Interaction: Assistant provides ongoing support and Q&A
- Enter query: "AI trends in healthcare"
- Select domain: "Healthcare"
- Click "Run Multi-Agent Analysis"
- Explore results in Dashboard and Report tabs
- Complete basic analysis
- Go to Assistant tab
- Ask: "What are the key risks in my analysis?"
- Follow up: "How can I validate these opportunities?"
- Navigate to Report tab
- Choose export format (PDF/DOCX)
- Download comprehensive report
- Share with stakeholders
- Modify agent behavior in
core/agents/ - Adjust analysis depth and focus areas
- Configure data source priorities
- Add new data sources in
core/integrations/ - Implement custom export formats
- Extend chart generation capabilities
- Modify visualizations in
components/ui_dashboard.py - Add new chart types and filters
- Customize metrics and KPIs
API Key Errors
- Verify all required API keys are set in
.env - Check API key validity and quotas
- Ensure proper formatting (no extra spaces)
Import Errors
- Run
pip install -r requirements.txt - Check Python version compatibility (3.8+)
- Verify virtual environment activation
Performance Issues
- Reduce analysis depth for faster results
- Limit data sources for quicker processing
- Check internet connection for API calls
Chart Generation Failures
- Ensure sufficient data for visualization
- Check Plotly and Matplotlib installations
- Verify output directory permissions
Enable debug logging by setting in .env:
```env
LOG_LEVEL=DEBUG
```
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini for advanced language understanding
- Groq for fast inference capabilities
- Firecrawl for intelligent web scraping
- NewsData.io for real-time news aggregation
- Streamlit for the amazing web framework
- Plotly for interactive visualizations
- LangChain for AI workflow orchestration
For support, questions, or feature requests:
- Create an issue on GitHub
- Check the troubleshooting section
- Review the documentation
This project is licensed under the MIT License - see the MIT License file for details.
🚀 Market Intelligence Agent v2.0 - Transforming market research with AI-powered multi-agent workflows. ```