Powered by Gemma 4 (local) — Zero API costs. Fully private.
Qualifies sales leads using Google's Gemma 4 model running locally on your machine. No cloud API. No data leaves your laptop.
Send a lead's details to Telegram → get a qualification score + personalized outreach message instantly.
- Open Telegram → search your bot
- Send /start
- Fill in lead details step by step
- Get score + outreach message in seconds
- Google Gemma 4 E2B (local inference)
- Ollama (model runner)
- Python
- python-telegram-bot
- Runs 100% offline after setup
Download from https://ollama.com and install.
ollama pull gemma4:e2bgit clone https://github.com/25Devmaker/local-lead-qualifier
cd local-lead-qualifierpip install python-telegram-bot ollamaOpen app.py and replace:
TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"Create a bot via @BotFather on Telegram to get your token.
python app.pylocal-lead-qualifier/
├── app.py # Telegram bot entry point
├── qualifier.py # Gemma 4 qualification logic
├── loader.py # CSV lead loader
├── exporter.py # Excel export
├── leads.csv # Sample leads (bring your own)
└── requirements.txt # Dependencies
- User sends /start → bot asks for lead details
- Each field is captured step by step
- Gemma 4 analyzes the lead locally
- Returns score (1-10), reason, outreach message
- Results displayed in Telegram + saved to Excel
- 100% local — no cloud APIs
- Zero API costs
- Fully private — data never leaves your laptop
- Fast — Gemma 4 runs on consumer hardware
- Simple Telegram interface
- Clean Excel output
- Qualifying leads from LinkedIn scraping
- Internal sales qualification
- Automated lead scoring
- Quick outreach message generation
- Change Telegram token in app.py
- Modify scoring logic in qualifier.py
- Add more lead fields if needed
- Change Excel output path in exporter.py
- Ensure Ollama is running:
ollama list - Check model is pulled:
ollama pull gemma4:e2b - Verify token in app.py
- Check Python dependencies installed
- 8GB RAM minimum
- 2GB free disk space
- Python 3.10+
- Ollama installed
Hari Kishan Reddy H G (25Devmaker)
- Portfolio: https://25devmaker.vercel.app/
- LinkedIn: https://www.linkedin.com/in/hari-kishan-devmaker
- Fiverr: https://www.fiverr.com/s/BRYYlwd
This is Project 08 in my public AI build series. Check my LinkedIn for the full journey.
MIT
25Devmaker