📰 AI-Based News Bot for WhatsApp
AI-Based News Bot for WhatsApp is a smart automation tool that delivers real-time trending news directly to your WhatsApp using Twilio and NewsData.io, helping users stay instantly informed without opening any app or browser.
💡 Inspiration
We live in a fast-paced world where staying updated with the latest news can be overwhelming. Most people don’t have the time to check news apps or browse websites regularly. We wanted to build a hands-free, real-time news delivery system that reaches users on a platform they already use daily—WhatsApp.
⚙️ What it does
The AI-Based News Bot for WhatsApp automatically fetches the latest trending news using the NewsData.io API and sends it directly to your WhatsApp through the Twilio API.
It:
- Delivers real-time or scheduled news updates
- Works globally
- Supports any topic (like tech, sports, world, etc.)
- Sends messages through WhatsApp, no extra apps needed
🛠️ How we built it
- Python for backend scripting
- NewsData.io API to fetch real-time trending headlines
- Twilio API to send WhatsApp messages
- python-dotenv to securely manage API keys in a
.envfile - VSCode + GitHub for development and version control
🚧 Challenges we ran into
- Configuring Twilio WhatsApp sandbox correctly
- Formatting
.envvariables without exposing secrets - Handling empty or missing API responses gracefully
- Keeping the bot modular and beginner-friendly
🏆 Accomplishments that we're proud of
- Built a fully working bot with real-time API integration
- Successfully deployed and tested news updates over WhatsApp
- Made a beginner-friendly project that can scale or be reused easily
- Followed good coding practices (environment variables, clean structure)
📚 What we learned
- Using third-party APIs (Twilio, NewsData.io) effectively
- Handling exceptions and missing data in real-world API responses
- Managing secrets securely using
.envfiles - Real-time automation via WhatsApp with Python
🚀 What's next for AI-Based News Bot for WhatsApp
- Add a topic selector so users can choose their news category
- Schedule updates (e.g., every morning at 8 AM)
- Integrate with voice assistants (like Google Assistant)
- Build a web UI for configuration
- Multi-user support using a Flask backend
Built With
- api
- python
Log in or sign up for Devpost to join the conversation.