Automate your entire outbound pipeline with AI.
Find leads, analyze companies, and send personalized cold emails — automatically.
Lead Generation → Company Analysis → Email Discovery → AI Email Writing → Sending → Logging
-
Lead Generation
- Finds companies via Apollo API
- Uses Google (SerpAPI) as a fallback source
-
Website Analysis
- Scrapes company websites
- Filters for small businesses
-
AI Analysis
-
Extracts:
- Industry
- Pain points
- Language/tone
-
-
Offer Selection
-
Dynamically selects the best offer:
- Feedback system
- Chatbot
- Dashboard
-
-
Email Discovery
- Finds decision-makers (CEO, HR, etc.)
- Includes generic emails (info@)
- Uses multiple sources + verification
-
Personalized Email Generation
- Generates a unique AI email for each contact
-
Sending & Tracking
- Sends emails
- Adds tracking ID
- Logs results into Google Sheets
AI_Sales_Bot/
│
├── main.py # Main orchestrator
│
├── lead_generation/
│ └── scraper.py # Apollo + Google lead generation
│
├── enrichment/
│ └── email_finder.py # Email discovery & verification
│
├── ai/
│ ├── analyzer.py # Company analysis
│ ├── offer_selector.py # Offer selection
│ └── email_writer.py # Email generation
│
├── mailer/
│ └── sender.py # Email sending
│
├── database/
│ └── sheets.py # Google Sheets integration
│
├── config.py
└── .env
git clone https://github.com/yourusername/AI_Sales_Bot.git
cd AI_Sales_Botpip install -r requirements.txtOPENAI_API_KEY=
APOLLO_API_KEY=
SERPAPI_KEY=
HUNTER_API_KEY=
SNOV_API_KEY=
ABSTRACT_API_KEY=
EMAIL_HOST=
EMAIL_PORT=
EMAIL_USER=
EMAIL_PASS=python main.pyOnce started, the bot will:
- Discover companies
- Analyze them
- Generate and send emails
- Log everything into Google Sheets
- Company analysis (LLM-based)
- Dynamic offer selection
- Personalized email generation
- Apollo API integration
- Google fallback (SerpAPI)
- Multi-source email discovery
- Email verification (Hunter + Abstract)
- Scoring system
- Google Sheets logging
- Duplicate prevention
- Unique tracking IDs
- Daily sending limits
- Random delays (anti-spam)
Adjust settings via config.py:
APOLLO_KEYWORDS = [...]
GOOGLE_KEYWORDS = [...]
DAILY_LIMIT = 50
MIN_DELAY = 10
MAX_DELAY = 30- Built-in rate limiting
- Duplicate email prevention
- API fallback mechanisms
- Optimized for free-tier API usage
- 📩 Email open & reply tracking
- 🌍 Multi-language support
- 🧠 CRM integrations
- 📊 Analytics dashboard
- 🔁 Automated follow-ups
This project is ideal for:
- SaaS founders
- Growth hackers
- Agencies
Looking to scale outbound sales 10x faster with AI.
Pull requests and contributions are welcome.
MIT License

