AI Sales Assistant (Joe) - Hackathon Project Summary

Inspiration

Suveer Dhawan was a client service associate and project lead at AlphaSights, working both client-side and customer-side, with lived experience of the pain points sales associates face every day. Part of the reason he left his job and moved to Melbourne was the redundant, repetitive work and expectation to always be online and respond to clients.

The daily grind of manually crafting cold emails, following up with prospects, and managing lead pipelines became overwhelming. Hours were wasted writing similar emails with slight variations, tracking responses manually, and losing potential deals due to missed follow-ups. The sales process was broken - too much human time spent on tasks that could be automated, leaving little time for actual relationship building.

This inspired him and the team to create Joe, your AI-powered sales assistant - a platform that eliminates the manual grunt work of cold outreach and transforms Google Sheet leads into booked meetings through intelligent automation.

What it does

Joe is a complete AI-powered SaaS platform that automates the entire sales outreach process from lead import to meeting booking:

🎯 Core Functionality

  • Google Sheets Integration: Import lead lists with one click using OAuth authentication
  • AI Email Generation: Creates completely unique, personalized emails for each lead using Google's Gemini AI - no templates, every email crafted from scratch
  • Intelligent Lead Scoring: Automatically classifies leads as Hot/Warm/Cold based on job titles, companies, and AI analysis
  • Automated Follow-up Sequences: Smart workflows that send contextual follow-ups based on responses and engagement
  • Response Monitoring: AI analyzes email replies and classifies them as Interested/Not Interested/Neutral/Out of Office
  • Calendly Integration: Seamlessly embeds meeting booking links in personalized emails
  • Analytics Dashboard: Beautiful interface showing campaign performance, response rates, and conversion metrics

🚀 Key Differentiators

  • Zero Templates: Every email is generated uniquely by AI, analyzing the recipient's role, company, and industry
  • True Personalization: AI identifies specific pain points for each lead's job title and industry
  • End-to-End Automation: From Google Sheets to booked meetings with minimal human intervention
  • Production-Ready Architecture: 8-file microservice design with proper error handling and logging

How I built it

The platform was built using a modern AI-first development approach:

🛠️ Development Stack

  • Frontend: Streamlit with modern gradient-based UI design
  • AI Engine: Google Gemini 2.0 Flash Exp for email generation and response analysis
  • Backend: Python with asynchronous operations and proper error handling
  • Database: Firebase Firestore for scalable data persistence
  • APIs: Gmail API, Google Sheets API, OAuth 2.0 integration
  • Hosting: Streamlit Cloud for deployment

🤖 AI-Powered Development

  • Cursor + Claude: Used AI-assisted development throughout the entire process, inspired by Dario Amodei's vision of AI-human collaboration
  • Iterative Problem Solving: Leveraged every ounce of technical knowledge to debug complex OAuth flows, API integrations, and async operations
  • Microservice Architecture: Designed 8-file structure for maintainable, scalable code

🏗️ Technical Implementation

ai-sales-assistant/
├── app.py              # Complete Streamlit UI (400+ lines)
├── integrations.py     # All API integrations (300+ lines)  
├── ai_engine.py        # AI email generation (200+ lines)
├── automation.py       # Workflow orchestration (250+ lines)
├── database.py         # Firebase operations (150+ lines)
├── auth.py             # OAuth management (100+ lines)
├── config.py           # Configuration (50+ lines)
└── requirements.txt    # Dependencies

Challenges I ran into

🤒 Team Challenges

  • Lead Developer Emergency: Our lead developer got food poisoning on day one and never showed up, leaving us to figure out complex integrations ourselves
  • First-Time Everything: This was everyone's first hackathon and first software product we designed from scratch

🔧 Technical Challenges

  • OAuth Token Confusion: Gmail and Google Sheets tokens were mixing, causing authentication failures
  • AI Response Parsing: Gemini API returned raw JSON that needed proper parsing for display
  • Rate Limiting Issues: Initial model (gemini-pro) had severe rate limits, switched to gemini-2.0-flash-exp
  • Circular Import Dependencies: Complex module relationships required careful refactoring
  • Firebase Authentication: Setting up proper service account credentials and Firestore indexes
  • Email MIME Handling: Complex email composition with proper headers and formatting
  • Async Operation Management: Coordinating multiple API calls without blocking the UI

💪 Persistence Pays Off

Despite these setbacks, we never gave up. Each bug became a learning opportunity, and we systematically resolved every issue through AI-assisted debugging and collaborative problem-solving.

Accomplishments that I'm proud of

🏆 Personal Achievements

  • First Hackathon Success: Built a production-ready platform as complete beginners
  • Real Problem Solving: Created a solution that addresses genuine pain points from lived experience
  • Technical Mastery: Overcame complex OAuth flows, AI integrations, and async programming challenges
  • End-to-End Product: Not just a prototype - a complete SaaS platform with beautiful UI and robust architecture

🎯 Product Achievements

  • Production-Ready Platform: All major features working with comprehensive error handling
  • Beautiful Modern UI: Gradient-based design with card layouts and responsive interface
  • Successful AI Integration: Reliable email generation with personalization and quality control
  • Scalable Architecture: Clean 8-file microservice structure ready for future enhancements
  • Complete Automation: From lead import to meeting booking with minimal human intervention

📊 Technical Milestones

  • Multiple OAuth Integrations: Successfully integrated Gmail and Google Sheets APIs
  • AI-Powered Personalization: Each email uniquely generated based on recipient analysis
  • Real-time Response Monitoring: AI classifies and routes email responses automatically
  • Database Operations: Full CRUD functionality with Firebase Firestore
  • Error-Free Production: Resolved all major bugs and implemented comprehensive logging

What I learned

🤖 Power of AI Integration

  • AI-First Development: Using Claude and Cursor transformed our development speed and capability
  • Human-AI Collaboration: The synergy between human creativity and AI execution is remarkable
  • AI in Production: Successfully deployed AI models (Gemini) in a real-world application with proper error handling

🛠️ Technical Skills

  • OAuth 2.0 Mastery: Deep understanding of secure API authentication flows
  • Async Programming: Managing complex asynchronous operations in Python
  • API Integration: Successfully integrated multiple third-party services (Gmail, Sheets, Gemini, Firebase)
  • Modern UI Development: Created beautiful interfaces using Streamlit with custom CSS
  • Database Design: Structured data models for scalable SaaS applications
  • Error Handling: Comprehensive exception management and logging systems

🚀 Product Development

  • MVP to Production: How to take an idea from concept to working software in 48 hours
  • User Experience Design: Creating intuitive interfaces for complex workflows
  • System Architecture: Designing maintainable, scalable code structures
  • Problem Validation: Building solutions based on real pain points creates better products

What's next for Joe (AI Sales Assistant)

🔧 Technical Improvements

  • Lead Developer Onboarding: Bringing in experienced developer to eliminate technical debt and optimize architecture
  • Enhanced API Usage: Upgrading from free tier models to premium APIs for:
    • Faster Response Times: Reduced latency for email generation and analysis
    • Higher Rate Limits: Support for larger campaigns and concurrent users
    • Better Accuracy: More sophisticated AI models for improved personalization
    • Advanced Features: Sentiment analysis, predictive lead scoring, and optimization recommendations

🔗 LinkedIn Integration

  • Developer License: Obtaining LinkedIn API access to enrich lead profiles
  • Profile Analysis: AI-powered analysis of LinkedIn profiles for deeper personalization
  • Social Selling: Integration of social media insights into email generation
  • Network Mapping: Understanding prospect connections and mutual contacts

📈 Platform Enhancements

  • Multi-Channel Outreach: Expanding beyond email to LinkedIn messages, phone calls, and social media
  • Advanced Analytics: Machine learning insights for campaign optimization and predictive analysis
  • CRM Integrations: Salesforce, HubSpot, and Pipedrive connections for seamless workflow
  • Team Collaboration: Multi-user support with role-based permissions and shared campaigns
  • A/B Testing Framework: Systematic testing of subject lines, email content, and sending times
  • Mobile Application: React Native app for on-the-go campaign management

🎯 Business Development

  • Enterprise Features: Advanced security, compliance, and scaling capabilities
  • API Marketplace: Third-party integrations and custom workflow builders
  • White-Label Solutions: Customizable platform for agencies and consultants
  • International Expansion: Multi-language support and regional compliance

Joe represents the future of sales automation - where AI handles the repetitive work, allowing sales professionals to focus on building relationships and closing deals. The hackathon was just the beginning of this journey.

Built With

Share this project:

Updates