Overview
The Google agent performs web searches to discover social media profiles, company affiliations, news mentions, and personal websites. It uses browser-use Agent to extract structured data from Google search results.Implementation
backend/agents/google_agent.py
Architecture Decision
backend/agents/google_agent.py
- No API key costs (SerpAPI is $50/month minimum)
- Can extract rich snippets and knowledge panels
- Handles Google’s anti-bot measures
- Fast for single queries (5-10s)
- Cost prohibitive for high-volume usage
- Limited free tier (100 searches/month)
- Browser Use gives richer context from visual layout
Implementation Details
Search Execution
backend/agents/google_agent.py
Search Strategy
Query Building
backend/agents/browser_agent.py
- Person only:
"Elon Musk" - Person + company:
"Satya Nadella Microsoft" - Person + context:
"Tim Cook Apple CEO"
Extraction Focus
The agent is instructed to extract specific types of information:- Social Media Links: LinkedIn, Twitter/X, Instagram, GitHub, Facebook
- Professional Info: Company affiliations, job titles
- Media Mentions: News articles, press releases
- Personal Sites: Blogs, portfolio sites, personal domains
Speed Optimization
The agent is optimized for speed:backend/agents/google_agent.py
Extracted Data
The Google agent discovers:- Social Profiles: Platform-specific profile URLs
- Company Affiliations: Current and past employers
- Job Titles: Current and notable past positions
- News Mentions: Articles featuring the person
- Personal Websites: Blogs, portfolios, personal domains
- Knowledge Panel: Google’s structured data (if available)
Usage Example
Performance
- Duration: 5-10s typical
- Cost: Browser Use API usage only
- Success Rate: ~95% (Google always returns something)
- Data Quality: High for discovery, medium for details
Integration with Other Agents
The Google agent serves as a discovery layer:Advanced Query Patterns
Site-Specific Search
Excluding Domains
Time-Based Search
Troubleshooting
No Results Found
Browser Use Not Configured
Extraction Quality
Rate Limiting
Best Practices
1. Use as Discovery Layer
2. Combine with Exa
3. Filter Noise
Comparison: Google vs Exa
| Feature | Google Agent | Exa API |
|---|---|---|
| Speed | 5-10s | 1-3s |
| Cost | Browser Use usage | Free/paid tiers |
| Results | 10-20 links | 10 curated hits |
| Quality | Noisy | Pre-filtered |
| Use Case | Discovery | Deep search |
Next Steps
LinkedIn Agent
Extract detailed LinkedIn profiles
Twitter Agent
Scrape Twitter/X profiles and tweets
Deep Researcher
Multi-phase pipeline using all agents
Agent Overview
Full agent system architecture