Capstone Project - AI Agents Intensive Course (Nov 2025)
Track: Enterprise Agents
Author: Harshith
The Smart Sales Intelligence Agent is an enterprise multi-agent system that automates sales research and outreach, saving sales teams 10+ hours per week per prospect. By simply providing a company name, the system researches the company, identifies business challenges, finds decision-makers, and generates personalized outreach emailsβall automatically.
Sales teams waste countless hours manually researching prospects, analyzing their business needs, finding the right contacts, and crafting personalized outreach. This manual process is:
- β° Time-intensive: 2-3 hours per prospect
- π Inconsistent: Quality varies by researcher
- π Repetitive: Same research done multiple times
- π° Expensive: High-value sales time spent on research
An intelligent multi-agent system that automates the entire sales intelligence workflow through coordinated AI agents, each specialized in a specific task.
- β‘ 10+ hours saved per prospect researched
- π― Higher quality insights through AI analysis
- π Scalable to hundreds of prospects
- πΌ Consistent output quality every time
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USER INPUT β
β "Company Name: Acme Corp" β
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ORCHESTRATOR AGENT β
β β’ Coordinates all agents β
β β’ Manages memory & state β
β β’ Handles errors & logging β
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββ΄ββββββββββββββ
β SEQUENTIAL AGENT FLOW β
βββββββββββββββ¬βββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 1οΈβ£ RESEARCH AGENT β
β β’ Gathers company info β
β β’ Tools: Google Search β
β β’ Output: Company overview + news β
βββββββββββββββ¬ββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 2οΈβ£ ANALYSIS AGENT β
β β’ Analyzes business challenges β
β β’ Tools: Gemini LLM β
β β’ Output: Challenges + opportunities β
βββββββββββββββ¬ββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 3οΈβ£ CONTACT AGENT β
β β’ Finds decision makers β
β β’ Tools: Search + Custom logic β
β β’ Output: Prioritized contact list β
βββββββββββββββ¬ββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β 4οΈβ£ OUTREACH AGENT β
β β’ Generates personalized emails β
β β’ Tools: Gemini LLM β
β β’ Output: Ready-to-send emails β
βββββββββββββββ¬ββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β FINAL OUTPUT β
β π Complete Intelligence Report β
β β’ Company analysis β
β β’ Key challenges β
β β’ Decision maker contacts β
β β’ Personalized email drafts β
ββββββββββββββββββββββββββββββββββββββββββββ
- Memory Bank: Caches research to avoid redundant searches
- Session State: Maintains context across agent executions
- Observability: Comprehensive logging and tracing
- Error Handling: Graceful failure recovery
This project demonstrates 6 out of 3 required capstone features:
- β Multi-Agent System - Sequential agent pipeline with 4 specialized agents
- β Tools - Google Search tool + custom business logic tools
- β Long-Term Memory - Memory Bank stores and retrieves past research
- β Session & State Management - SessionState maintains execution context
- β Observability - Comprehensive logging system with file and console output
- β Uses Gemini (Bonus!) - Analysis and Outreach agents powered by Gemini 2.0
- Python 3.8 or higher
- Google AI Studio API key (Get one here)
- Clone the repository
git clone <your-repo-url>
cd sales-intelligence-agent- Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Mac/Linux
# OR
venv\Scripts\activate # On Windows- Install dependencies
pip install -r requirements.txt- Configure environment variables
# Copy the example env file
cp .env.example .env
# Edit .env and add your API key
GOOGLE_API_KEY=your_api_key_hereBasic usage:
python main.pyThe system will prompt you for a company name, then automatically:
- Research the company
- Analyze their business challenges
- Find decision-makers
- Generate personalized emails
- Save a complete report
Output:
- Console: Real-time progress and summary
reports/: JSON files with complete intelligence reportslogs/: Detailed execution logsmemory_bank.json: Cached research data
sales-intelligence-agent/
βββ main.py # Main orchestrator
βββ requirements.txt # Python dependencies
βββ .env # API keys (not committed)
βββ .gitignore # Git ignore rules
βββ README.md # This file
β
βββ agents/ # Agent implementations
β βββ __init__.py
β βββ research_agent.py # Gathers company data
β βββ analysis_agent.py # Analyzes challenges (Gemini)
β βββ contact_agent.py # Finds decision makers
β βββ outreach_agent.py # Generates emails (Gemini)
β
βββ tools/ # Custom tools
β βββ __init__.py
β βββ search_tool.py # Google Search wrapper
β
βββ utils/ # Utilities
β βββ __init__.py
β βββ memory.py # Memory Bank & Session State
β βββ logger.py # Logging & observability
β
βββ reports/ # Generated reports (created at runtime)
βββ logs/ # Execution logs (created at runtime)
βββ memory_bank.json # Research cache (created at runtime)
Enter company name: Acme Corporation
π SALES INTELLIGENCE REPORT: Acme Corporation
================================================================
π’ Company Overview:
Industry: Technology/SaaS
Size: 100-500 employees
Location: San Francisco, CA
π― Key Challenges (3):
1. Scaling infrastructure while maintaining performance
2. Managing technical debt from rapid growth
3. Integrating disparate systems and data sources
π₯ Priority Contacts (3):
β’ John Smith - Chief Technology Officer
β’ Sarah Johnson - VP of Engineering
β’ Michael Chen - Director of Product
π§ Outreach Emails Generated: 3
To: John Smith (Chief Technology Officer)
Subject: Helping Acme Corporation with Scaling infrastructure...
Hi John,
I noticed Acme Corporation has been experiencing rapid growth,
which is fantasticβbut I imagine it's also creating some
infrastructure challenges...
[Personalized content based on analysis]
Would you be open to a brief conversation about how we've
helped similar companies scale efficiently?
Best regards,
[Your name]
# Required
GOOGLE_API_KEY=your_api_key_here
# Optional (defaults provided)
MODEL_NAME=gemini-2.0-flash-exp
MAX_RETRIES=3
TIMEOUT_SECONDS=30Change the Gemini model:
Edit .env:
MODEL_NAME=gemini-2.0-flash-exp # or gemini-pro, etc.Adjust number of contacts:
Edit agents/outreach_agent.py, line 45:
for contact in contacts[:3]: # Change 3 to desired numberModify analysis depth:
Edit agents/analysis_agent.py, _create_analysis_prompt() method
Each agent builds on the previous agent's output:
- Research β provides data for Analysis
- Analysis β informs Contact prioritization
- Contacts + Analysis β enable personalized Outreach
This sequential flow ensures each agent has the context it needs.
- Avoids redundant API calls (saves time & money)
- Instant results for previously researched companies
- Persistent across sessions
Every agent action is logged with:
- Timestamp
- Agent name
- Input parameters
- Success/failure status
- Execution time
Logs are saved to logs/agent_YYYYMMDD.log
python main.py
# Enter: "Salesforce"
# Enter: "HubSpot"
# Enter: "Zoom"# First run - will do full research
python main.py
# Enter: "TestCo"
# Second run - should use cache
python main.py
# Enter: "TestCo"
# Should see: "Found cached research for TestCo"Phase 2 Features:
- Real Google Custom Search API integration
- LinkedIn API for actual contact data
- Email sending capability (SendGrid/Gmail API)
- Web UI for easier interaction
- Multi-company batch processing
- CRM integration (Salesforce, HubSpot)
- A/B testing for email effectiveness
Deployment:
- Deploy to Google Cloud Run
- Add authentication
- Rate limiting for API calls
- Webhook support for automation
- Sequential agent architecture - each agent has clear responsibility
- Memory caching - dramatically improves performance on repeat queries
- Gemini integration - produces high-quality, contextual analysis and emails
- Coordinating state between agents
- Error handling across the pipeline
- Balancing detail vs. conciseness in emails
- Why sequential vs parallel? - Each agent needs previous agent's output
- Why file-based memory? - Simple, portable, no database required for demo
- Why Gemini 2.0? - Fast, cost-effective, excellent at analysis & generation
This is a capstone project, but feedback is welcome!
To suggest improvements:
- Open an issue describing the enhancement
- Fork the repo
- Create a feature branch
- Submit a pull request
MIT License - Feel free to use this project as a starting point for your own agents.
Created for the Google AI Agents Intensive Course (Nov 2025)
Track: Enterprise Agents
Features: 6/3 required + bonus features
- GitHub: [your-github]
- LinkedIn: [your-linkedin]
- Email: [your-email]
- Google AI & Kaggle for the excellent course
- Anthropic for ADK inspiration
- The AI Agents community for support
β If this project helped you, please star the repo!