Multi-source AI monitoring pipeline that wakes up every morning, scans news and social for fintech topics, and sends you a summary email. Set it and forget it.
Scheduled Python jobs pull from NewsAPI, Reddit, and Twitter APIs. GPT-4 filters for relevance and generates summaries. Brevo email API delivers formatted daily reports. Deployed on Heroku with scheduled tasks.
- Multi-source data aggregation across news, social media, and forums
- AI-powered relevance filtering reduces noise by 90%+
- Automated daily email delivery via Brevo with structured sections (product launches, industry news, regulatory changes, word on the street)
- Language: Python
- AI: OpenAI GPT-4
- Data Sources: NewsAPI, Reddit API (PRAW), Twitter/X API (Tweepy)
- Email: Brevo (formerly Sendinblue)
- Deployment: Heroku with Heroku Scheduler
- Python 3.9+
- API keys for: NewsAPI, Reddit, Twitter/X, OpenAI, Brevo
-
Clone the repository:
git clone https://github.com/immuneeb/competitive-intel.git cd competitive-intel -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Create your environment file:
cp .env.template .env
-
Add your API keys to
.env:Variable Where to get it NEWSAPI_KEYnewsapi.org REDDIT_CLIENT_IDreddit.com/prefs/apps REDDIT_CLIENT_SECRETSame as above TWITTER_API_KEYdeveloper.twitter.com TWITTER_API_SECRETSame as above TWITTER_ACCESS_TOKENSame as above TWITTER_ACCESS_TOKEN_SECRETSame as above OPENAI_API_KEYplatform.openai.com BREVO_API_KEYbrevo.com BREVO_SENDER_EMAILYour verified Brevo sender address EMAIL_RECIPIENTSComma-separated list of recipient emails
Run the competitive intelligence report manually:
python index.pyRun the interactive market research tool:
python market_research.py- Deploy the app to Heroku
- Set all environment variables via
heroku config:set - Add the Heroku Scheduler add-on
- Create a scheduled job to run
python index.pydaily
Edit TOPICS_OF_INTEREST in index.py to monitor different topics. The default configuration tracks fintech and credit card products.