Inspiration
I watched sales teams waste hours on repetitive work - researching leads, writing emails, updating spreadsheets. Meanwhile, deals fell through the cracks because reps had no time to actually sell.
The problem? Sales teams spend 60% of their time on manual tasks instead of building relationships and closing deals. With Google's Agent Development Kit and Gemini AI, I saw an opportunity to change this.
Why not build AI agents that handle the busy work, letting humans focus on what they do best - connecting with customers?
What it does
DealFlow AI is your AI-powered sales team that works 24/7. Three specialized agents handle the entire pipeline:
🔍 Prospecting Agent Analyzes company data instantly using Gemini AI. Identifies pain points, calculates lead quality scores, and determines product fit. What takes a human 30 minutes happens in 5 seconds.
💌 Nurturing Agent
Writes personalized outreach emails with Gemini's natural language generation. Automatically creates deals in your pipeline, schedules follow-ups, and tracks every interaction. 15 minutes of work → 5 seconds.
📊 Intelligence Agent Predicts which deals will close using AI analysis. Identifies at-risk opportunities, provides actionable recommendations, and generates pipeline insights. Replaces 2 hours of manual analysis with instant results.
All three agents work together through MongoDB MCP Server, sharing context and coordinating actions seamlessly.
How we built it
Architecture:
- Google ADK for agent orchestration and tool integration
- Gemini 2.0 Flash for AI reasoning and content generation
- MongoDB MCP Server for protocol-based data operations
- MongoDB Atlas as the cloud database
- Python + FastAPI for the REST API backend
Each agent is built with Google ADK and equipped with MCP tools (find, aggregate, update-many, insert-many) to interact with MongoDB without direct database drivers. This protocol-based approach ensures security and standardization.
The agents use Gemini AI to understand context, make decisions, and generate human-quality content. They coordinate through shared MongoDB collections, creating a true multi-agent system where each agent's output becomes the next agent's input.
I kept the stack simple but powerful - no unnecessary complexity, just clean Python code that solves a real problem.
Challenges we ran into
DNS Resolution for MongoDB Atlas My ISP was blocking MongoDB SRV DNS records, making it impossible to connect despite having valid credentials and proper configuration. After hours of debugging, I discovered the root cause and explored multiple solutions including VPN routing and alternative connection methods.
Agent Coordination Complexity Getting three agents to work together smoothly was tricky. I had to design a data flow where each agent's output triggers the next agent correctly. The solution was using MongoDB as the shared state, with clear status fields that agents watch for.
MCP Tool Integration The MongoDB MCP Server was new technology, so documentation was limited. I learned through experimentation - testing different tool calls, understanding the protocol format, and building proper error handling.
Gemini API Iterations Early on, I used the wrong model name and old SDK versions. The learning curve taught me to always check official docs first and test with simple examples before building complex features.
Accomplishments that we're proud of
- Built a complete multi-agent system that actually works in production
- Achieved 99%+ time savings compared to manual processes (measurable ROI)
- Successfully integrated MongoDB MCP Server using the protocol approach
- Created agents that generate genuinely useful, human-quality content with Gemini
- Designed a scalable architecture that handles 10 or 10,000 leads equally fast
- Made complex AI accessible through simple REST APIs anyone can use
- Solved a real $10B+ market problem with clear business impact
The biggest accomplishment? This isn't a prototype. It's production-ready code that sales teams could deploy today and see immediate results.
What we learned
Technical Learnings:
- Google ADK's agent framework is incredibly powerful for building autonomous systems
- Gemini 2.0 Flash produces consistently high-quality results with proper prompting
- MongoDB MCP Server's protocol approach is cleaner than traditional database drivers
- Multi-agent coordination requires careful state management and clear data contracts
Development Insights:
- Start simple, add complexity only when needed
- Test each component independently before integration
- Error handling and logging are not optional - they save hours of debugging
- Documentation matters - future me (and others) will thank present me
Real-World Impact:
- Automation only works if it produces accurate results - quality over speed
- Sales teams need transparency - they want to see what the AI is doing
- ROI must be measurable - vague "AI benefits" don't convince anyone
- The best technology is invisible - users just see results, not architecture
What's next for DealFlow AI - B2B Sales Intelligence Agents
Short Term (Next Month):
- Build a React dashboard for visual pipeline management
- Add real email integration with Gmail and Outlook
- Implement webhook support for CRM systems like Salesforce
Medium Term (3-6 Months):
- Train custom ML models for deal scoring specific to industries
- Add voice agent capabilities for phone call analysis
- Multi-language support for global sales teams
- Advanced analytics with predictive forecasting
Long Term (Future):
- Team collaboration features with role-based permissions
- Mobile app for on-the-go access
- Integration marketplace for connecting to more tools
- White-label version for sales platforms
The ultimate goal? Make DealFlow AI the operating system for B2B sales teams worldwide - where AI handles the repetitive work and humans focus on building relationships.
Built With
- agent-development-kit
- ai-agents
- automation
- b2b-sales
- cloud-native
- fastapi
- gemini-2.0-flash
- gemini-ai
- google-adk
- google-cloud
- machine-learning
- mongodb
- mongodb-atlas
- mongodb-mcp
- multi-agent-system
- pydantic
- pymongo
- python
- rest-api
- sales-automation
Log in or sign up for Devpost to join the conversation.