|
| 1 | +# Smart Product Launch Agent |
| 2 | + |
| 3 | +A powerful AI-powered competitive intelligence tool that analyzes competitor product launches, market sentiment, and launch metrics to help founders make data-driven launch decisions. This application uses multi-agent AI architecture with Memori for persistent context, Bright Data for real-time web scraping, and OpenAI GPT-4o for intelligent analysis. |
| 4 | + |
| 5 | +## Features ✨ |
| 6 | + |
| 7 | +🚀 **Product Launch Analysis**: Deep evaluation of competitor positioning, launch tactics, strengths, and weaknesses |
| 8 | +💬 **Market Sentiment Analysis**: Real-time social media sentiment tracking and customer feedback analysis |
| 9 | +📈 **Launch Metrics Analysis**: Track competitor KPIs, adoption rates, press coverage, and performance indicators |
| 10 | +🤖 **Multi-Agent AI System**: Specialized AI agents coordinating for comprehensive competitive intelligence |
| 11 | +💾 **Memory Integration**: Stores conversation context using Memori with MongoDB for long-term learning |
| 12 | +🔍 **Real-Time Web Scraping**: Uses Bright Data to extract current competitor data from the web |
| 13 | +🎯 **Competitor Relevance Validation**: Automatically verifies competitor relevance before analysis |
| 14 | +📱 **Conversational Interface**: Natural chat experience with follow-up question support |
| 15 | +🔄 **Context-Aware Responses**: Searches memori before answering for accurate, consistent insights |
| 16 | +⚙️ **Easy Configuration**: Simple setup with API keys via intuitive sidebar |
| 17 | +🔒 **Evidence-Based Analysis**: Only includes real URLs and sources from actual web research |
| 18 | + |
| 19 | +## Prerequisites 🛠️ |
| 20 | + |
| 21 | +- Python 3.10+ |
| 22 | +- OpenAI API key (GPT-4o access) |
| 23 | +- Bright Data API credentials |
| 24 | +- MongoDB (local or cloud instance) |
| 25 | +- MongoDB Compass (optional, for database visualization) |
| 26 | + |
| 27 | +## Installation 📥 |
| 28 | + |
| 29 | +1. **Clone the repository:** |
| 30 | +```bash |
| 31 | +git clone https://github.com/GibsonAI/memori.git |
| 32 | +cd demo/product_launch_agent |
| 33 | +``` |
| 34 | + |
| 35 | +2. **Install the required dependencies:** |
| 36 | +```bash |
| 37 | +pip install -r requirements.txt |
| 38 | +``` |
| 39 | + |
| 40 | +3. **Set up MongoDB:** |
| 41 | + - Install MongoDB locally or use MongoDB Atlas |
| 42 | + - Default connection: `mongodb://localhost:27017/` or use your mongoDB connection sting |
| 43 | + - The database `memori` will be created automatically on first run |
| 44 | + |
| 45 | +4. **Create a `.env` file in the project root and add your API credentials:** |
| 46 | +```env |
| 47 | +# OpenAI Configuration |
| 48 | +OPENAI_API_KEY=your_openai_api_key |
| 49 | +
|
| 50 | +# Bright Data Configuration |
| 51 | +BRIGHTDATA_API_KEY=your_brightdata_api_key |
| 52 | +BRIGHT_DATA_SERP_ZONE=sdk_serp |
| 53 | +BRIGHT_DATA_UNLOCKER_ZONE=unlocker |
| 54 | +``` |
| 55 | + |
| 56 | +## Usage 🚀 |
| 57 | + |
| 58 | +1. **Start MongoDB** (if running locally): |
| 59 | +```bash |
| 60 | +# MongoDB should be running on localhost:27017 |
| 61 | +mongod |
| 62 | +``` |
| 63 | + |
| 64 | +2. **Start the Streamlit application:** |
| 65 | +```bash |
| 66 | +streamlit run chat_app.py |
| 67 | +``` |
| 68 | + |
| 69 | +3. **Open your web browser** and navigate to the provided local URL (typically `http://localhost:8501`) |
| 70 | + |
| 71 | +4. **Configure your API keys** in the sidebar: |
| 72 | + - Bright Data API Key |
| 73 | + - OpenAI API Key |
| 74 | + - Click "Save API Keys" |
| 75 | + |
| 76 | +## How It Works 🔄 |
| 77 | + |
| 78 | +### 1. Product Intelligence Team (Multi-Agent System) |
| 79 | + |
| 80 | +The application uses three specialized AI agents that coordinate to provide comprehensive competitive intelligence: |
| 81 | + |
| 82 | +#### **Product Launch Analyst** |
| 83 | +- Evaluates competitor positioning and Go-To-Market strategy |
| 84 | +- Identifies launch tactics that drove success |
| 85 | +- Pinpoints execution weaknesses and gaps |
| 86 | +- Provides actionable strategic insights |
| 87 | + |
| 88 | +#### **Market Sentiment Specialist** |
| 89 | +- Analyzes social media sentiment (Twitter/X, Reddit, Product Hunt) |
| 90 | +- Tracks customer reviews and feedback patterns |
| 91 | +- Monitors brand perception across platforms |
| 92 | +- Identifies positive and negative sentiment drivers |
| 93 | + |
| 94 | +#### **Launch Metrics Specialist** |
| 95 | +- Tracks user adoption and engagement metrics |
| 96 | +- Analyzes press coverage and media attention |
| 97 | +- Measures market penetration and growth rates |
| 98 | +- Benchmarks performance against industry standards |
| 99 | + |
| 100 | +### 2. Conversation Flow |
| 101 | + |
| 102 | +**Step 1: Introduction** |
| 103 | +- System asks about your company and product |
| 104 | +- Stores your context for personalized analysis |
| 105 | + |
| 106 | +**Step 2: Analysis Selection** |
| 107 | +- Choose from three analysis types: |
| 108 | + 1. Product Launch Analysis |
| 109 | + 2. Market Sentiment Analysis |
| 110 | + 3. Launch Metrics Analysis |
| 111 | +- Specify the competitor you want to analyze |
| 112 | + |
| 113 | +**Step 3: AI Research** |
| 114 | +- Multi-agent system performs real-time web research using Bright Data |
| 115 | +- Scrapes competitor websites, news, reviews, and social media |
| 116 | +- Analyzes data and generates comprehensive report |
| 117 | +- All findings stored in Memori for future reference |
| 118 | + |
| 119 | +**Step 4: Follow-Up & Deep Dive** |
| 120 | +- Ask follow-up questions about the analysis |
| 121 | +- Request additional competitor analyses |
| 122 | +- System searches Memori before answering for consistency |
| 123 | +- All conversations tracked for context-aware responses |
| 124 | + |
| 125 | +## Example Workflow 🔄 |
| 126 | + |
| 127 | +1. **Launch App**: Open the application and enter your API keys |
| 128 | +2. **Introduce Product**: "I'm building a project management tool for remote teams" |
| 129 | +3. **Request Analysis**: "I want a Product Launch Analysis for Monday.com" |
| 130 | +4. **AI Research**: System scrapes web data and analyzes Monday.com's launch |
| 131 | +5. **Review Report**: Receive detailed analysis with positioning, strengths, weaknesses, and insights |
| 132 | +6. **Follow-Up**: Ask questions like "What were their main marketing channels?" |
| 133 | +7. **Next Analysis**: Request analysis of another competitor or different analysis type |
| 134 | + |
| 135 | +## Competitor Analysis 📊 |
| 136 | + |
| 137 | +The AI agents analyze competitors across multiple dimensions: |
| 138 | + |
| 139 | +### Product Launch Analysis |
| 140 | +🎯 **Market Positioning**: How competitor positions in the market |
| 141 | +🚀 **Launch Tactics**: Strategies and channels used for launch |
| 142 | +💪 **Strengths**: What worked well and drove success |
| 143 | +⚠️ **Weaknesses**: Execution gaps and missed opportunities |
| 144 | +📚 **Actionable Insights**: What you can learn and apply |
| 145 | + |
| 146 | +### Market Sentiment Analysis |
| 147 | +😊 **Positive Sentiment**: What customers love |
| 148 | +😞 **Negative Sentiment**: Pain points and complaints |
| 149 | +🌐 **Platform Analysis**: Twitter/X, Reddit, G2, Trustpilot, Product Hunt |
| 150 | +📈 **Trend Tracking**: Sentiment changes over time |
| 151 | +💡 **Perception Insights**: Brand reputation and customer loyalty |
| 152 | + |
| 153 | +### Launch Metrics Analysis |
| 154 | +👥 **User Adoption**: Growth rates and user acquisition |
| 155 | +💰 **Revenue Metrics**: Pricing, funding, and financial performance |
| 156 | +📰 **Press Coverage**: Media mentions and PR reach |
| 157 | +🔄 **Engagement**: Social media traction and virality |
| 158 | +📊 **Market Share**: Competitive positioning and penetration |
| 159 | + |
| 160 | +## API Configuration 🔑 |
| 161 | + |
| 162 | +### OpenAI |
| 163 | +- **Model**: GPT-4o |
| 164 | +- **Purpose**: Multi-agent intelligence and conversation handling |
| 165 | +- **Temperature**: Configured per agent for optimal results |
| 166 | + |
| 167 | +### Bright Data |
| 168 | +- **SERP Zone**: `sdk_serp` (for web searches) |
| 169 | +- **Web Unlocker Zone**: `unlocker` (for scraping) |
| 170 | +- **Purpose**: Real-time web data extraction |
| 171 | +- **Scope**: Competitor websites, news, reviews, social media |
| 172 | + |
| 173 | +### Memori with MongoDB |
| 174 | +- **Database**: MongoDB (local or Atlas) |
| 175 | +- **Connection**: `mongodb://localhost:27017/memori` |
| 176 | +- **Purpose**: Persistent conversation memory and context storage |
| 177 | +- **Features**: Automatic context search, conversation tracking |
| 178 | + |
| 179 | +## Architecture 🏗️ |
| 180 | + |
| 181 | +### Modular Design |
| 182 | +- **UI Layer** (`chat_app.py`): Streamlit interface and conversation flow |
| 183 | +- **Agent Layer** (`agent.py`): Multi-agent AI system and coordination |
| 184 | +- **Memory Layer**: Memori integration for context persistence |
| 185 | +- **Scraping Layer**: Bright Data tools for web research |
| 186 | + |
| 187 | +### Key Components |
| 188 | +1. **Conversation Manager**: Handles user interaction and flow states |
| 189 | +2. **Multi-Agent Team**: Coordinates specialized AI agents |
| 190 | +3. **Web Research Engine**: Bright Data integration for real-time scraping |
| 191 | +4. **Memory System**: Memori for context storage and retrieval |
| 192 | +5. **Context Search**: Automatic memory search before responding |
| 193 | + |
| 194 | +## Intelligence Features 📱 |
| 195 | + |
| 196 | +### Competitor Validation ✅ |
| 197 | +- Verifies competitor relevance before analysis |
| 198 | +- Rejects irrelevant comparisons (e.g., Spotify vs Google) |
| 199 | +- Suggests relevant alternatives in the same market |
| 200 | +- Ensures high-quality, actionable insights |
| 201 | + |
| 202 | +### Source Verification ✅ |
| 203 | +- Only includes exact URLs actually crawled |
| 204 | +- Never fabricates or adds placeholder sources |
| 205 | +- No Twitter/X links unless data actually obtained from Twitter |
| 206 | +- Complete transparency in research sources |
| 207 | + |
| 208 | +### Memory-First Approach ✅ |
| 209 | +- Always searches Memori before answering |
| 210 | +- Maintains conversation context across sessions |
| 211 | +- Provides consistent insights over time |
| 212 | +- Learns from all previous analyses |
| 213 | + |
| 214 | +## Example Use Cases 💡 |
| 215 | + |
| 216 | +### Pre-Launch Research |
| 217 | +- "Analyze how Notion launched their product" |
| 218 | +- "What sentiment does Figma have among designers?" |
| 219 | +- "Show me Airtable's launch metrics and growth" |
| 220 | + |
| 221 | +### Competitive Intelligence |
| 222 | +- "Compare Slack's launch strategy to our approach" |
| 223 | +- "What are users saying about Linear on Product Hunt?" |
| 224 | +- "How did Superhuman achieve their early traction?" |
| 225 | + |
| 226 | +### Strategy Refinement |
| 227 | +- "What weaknesses did Zoom have at launch that we can avoid?" |
| 228 | +- "Which launch tactics worked best for Calendly?" |
| 229 | +- "How should we position against Miro based on their reception?" |
| 230 | + |
| 231 | +### Follow-Up Analysis |
| 232 | +- "Tell me more about their pricing strategy" |
| 233 | +- "What were their main distribution channels?" |
| 234 | +- "How did they handle negative feedback?" |
| 235 | + |
| 236 | +### MongoDB Connection Issues |
| 237 | +- Ensure MongoDB is running: `mongod` or check MongoDB Compass |
| 238 | +- Verify connection string: `mongodb://localhost:27017/` |
| 239 | +- Database `memori` will be created automatically |
| 240 | + |
| 241 | +### API Key Errors |
| 242 | +- Check API keys are correctly entered in sidebar |
| 243 | +- Verify environment variables in `.env` file |
| 244 | +- Ensure both OpenAI and Bright Data keys are valid |
| 245 | + |
| 246 | +### Memori Initialization |
| 247 | +- MongoDB must be running before starting the app |
| 248 | +- Check MongoDB connection in Compass |
| 249 | +- Database and collections created automatically on first use |
| 250 | + |
| 251 | +### Agent Performance |
| 252 | +- First analysis may take 2-5 minutes (web research) |
| 253 | +- Ensure Bright Data has sufficient credits |
| 254 | +- Check internet connection for web scraping |
| 255 | + |
| 256 | +## License 📄 |
| 257 | + |
| 258 | +This project is licensed under the MIT License - see the LICENSE file for details. |
| 259 | + |
| 260 | + |
0 commit comments