A sophisticated AI-driven tool that analyzes websites for SEO optimization and conversion effectiveness using advanced LLM technology (Groq, OpenAI, Anthropic) and intelligent web scraping.
This tool accepts a website URL and provides comprehensive analysis by:
- Intelligent Web Scraping: Crawls the entire website to find public pages and extract content
- AI-Powered Analysis: Feeds scraped content to advanced LLMs using LangChain
- Supercharged System Prompts: Uses expert-level prompts to analyze SEO and conversion parameters
- Comprehensive Scoring: Provides detailed scores for SEO and conversion optimization
- Actionable Recommendations: Generates prioritized improvement suggestions
- Title Optimization: Meta title effectiveness and keyword targeting
- Meta Description: Meta description quality and click-through potential
- Header Structure: H1, H2, H3 hierarchy and semantic organization
- Content Quality: Content depth, relevance, and value
- Internal Linking: Internal link structure and navigation
- Technical SEO: Core Web Vitals, schema markup, and technical elements
- Headline Effectiveness: Compelling and persuasive headlines
- Value Proposition: Clarity of value and benefits
- CTA Optimization: Call-to-action button effectiveness
- Trust Signals: Testimonials, social proof, and credibility
- Form Optimization: Lead capture form design and UX
- Urgency & Scarcity: Time-sensitive and limited offers
- Multi-LLM Support: Groq (llama-3.3-70b-versatile, llama-3.1-8b-instant), OpenAI GPT-4, Anthropic Claude
- Intelligent Scraping: Respects robots.txt, configurable depth and page limits
- Real-time Analysis: Fast processing with configurable timeouts
- Structured Output: JSON responses formatted for frontend integration
- Smart Fallback: Automatic fallback to basic analysis when AI services unavailable
- Scalable Architecture: Microservices design with API Gateway
-
Clone the repository
git clone <repository-url> cd Magentix
-
Create virtual environment
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set environment variables
export GROQ_API_KEY="your-groq-api-key" export JWT_SECRET="your-jwt-secret" export ENVIRONMENT="development"
python3 -m uvicorn api.main_api:app --host 0.0.0.0 --port 8000 --reloadcurl -X POST "http://localhost:8000/analyze" \
-H "Content-Type: application/json" \
-d '{
"url": "https://technioz.com",
"analysis_type": "comprehensive",
"max_pages": 10,
"include_technical_seo": true,
"include_competitor_insights": true
}'Analysis Types:
"comprehensive"(default): Tries AI analysis first, falls back to basic if no API keys- `"basic": Scraping + basic scoring (no AI processing)
- `"ai": AI analysis only (if API keys available)
Request Parameters:
url: Website URL to analyze (required)analysis_type: Type of analysis to performmax_pages: Maximum pages to scrape (1-50, default: 10)include_technical_seo: Include technical SEO analysis (default: true)include_competitor_insights: Include competitive insights (default: true)
{
"success": true,
"metadata": {
"analysis_id": "uuid",
"requested_url": "https://example.com",
"pages_analyzed": 5,
"analysis_duration": 12.5,
"model_used": "llama-3.3-70b-versatile"
},
"seo_analysis": {
"overall_score": 75,
"title_optimization": 80,
"meta_description": 70,
"header_structure": 85,
"content_quality": 75,
"internal_linking": 65,
"technical_seo": 70
},
"conversion_analysis": {
"overall_score": 68,
"headline_effectiveness": 75,
"value_proposition": 70,
"cta_optimization": 60,
"trust_signals": 80,
"form_optimization": 65,
"urgency_scarcity": 55
},
"recommendations": [
{
"category": "SEO",
"priority": "High",
"issue": "Missing meta descriptions",
"recommendation": "Add compelling meta descriptions to all pages",
"implementation": "Update HTML meta tags with unique descriptions",
"impact_score": 8
}
]
}scraping_config = ScrapingConfig(
max_pages=5, # Maximum pages to scrape
max_depth=3, # Maximum crawl depth
delay_between_requests=1.0, # Delay between requests
respect_robots_txt=True # Respect robots.txt
)llm_config = LLMConfig(
provider=ModelProvider.GROQ_LLAMA, # Groq, OpenAI, or Anthropic
model_name="llama-3.3-70b-versatile", # Model to use
temperature=0.3, # Creativity vs consistency
max_tokens=4000 # Maximum response length
)- API Gateway: FastAPI-based main application
- Scraping Service: Intelligent web scraping with BeautifulSoup
- LLM Analysis Service: LangChain-powered AI analysis with smart fallback
- Security Service: JWT authentication and rate limiting
- Data Layer: Redis caching and PostgreSQL storage (planned)
- API Key: Get from Groq Console
- Models: llama-3.3-70b-versatile, llama-3.1-8b-instant
- Cost: Very affordable, fast inference
- API Key: Get from OpenAI Platform
- Models: GPT-4, GPT-3.5-turbo
- Cost: Higher cost, excellent quality
- API Key: Get from Anthropic Console
- Models: Claude-2, Claude-3
- Cost: Competitive pricing, high quality
-
Set your API key
export GROQ_API_KEY="your-key-here"
-
Start the server
python3 -m uvicorn api.main_api:app --reload
-
Test with a website
curl -X POST "http://localhost:8000/analyze" \ -H "Content-Type: application/json" \ -d '{"url": "https://technioz.com", "analysis_type": "comprehensive"}'
- SEO Audits: Comprehensive website SEO analysis
- Conversion Optimization: Identify conversion barriers and opportunities
- Competitive Analysis: Benchmark against industry standards
- Content Strategy: Identify content gaps and optimization opportunities
- Technical SEO: Find technical issues affecting rankings
- Marketing Agencies: Provide detailed client reports
- Rate Limiting: Built-in request throttling
- Robots.txt Respect: Follows website crawling guidelines
- User Authentication: JWT-based secure access
- Input Validation: Comprehensive URL and input sanitization
- Audit Logging: Track all analysis requests
-
LLM Service Not Available
- Check API key configuration
- Verify model availability
- Check API rate limits
- Note: Service will automatically fall back to basic analysis
-
Scraping Failures
- Verify URL accessibility
- Check robots.txt restrictions
- Increase timeout values
-
Memory Issues
- Reduce max_pages in scraping config
- Lower max_tokens in LLM config
- Use smaller models for large sites
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License.
This tool is for educational and analysis purposes. Always respect websites' terms of service and robots.txt files. Use responsibly and ethically.
Built using FastAPI, LangChain, and Groq LLM
Transform your website analysis with AI-powered insights!