DEV Community

Karthikeyan
Karthikeyan

Posted on

Twilio challenge - Environmental Bot

This is a submission for Twilio Challenge v24.06.12

What I Built

This project provides an AI-driven air quality alert system using Twilio and OpenAI. Users can send their location via WhatsApp and receive alerts based on the current air quality index (AQI) along with AI-based safety advice. This system helps individuals stay informed about air quality and take necessary precautions.

Demo

Github link: https://github.com/skarthikeyan96/envrionmental-bot

Sandbox link:

sandbox

Screenshots:

Demo

demo

Steps to try

  1. Join the WhatsApp sandbox (details in the screenshot).
  2. Send your location via WhatsApp.
  3. Receive AI-generated analysis and safety measures.

Twilio and AI

We used Twilio's WhatsApp API to receive user location data and send back real-time air quality alerts. OpenAI analyzes the air quality index from OpenWeatherMap and generates personalized safety advice. This advice is then sent to the user via Twilio, providing immediate and actionable information.

Additional Prize Categories

Impactful Innovator: Our AI-driven system leverages Twilio and OpenAI to provide real-time air quality alerts and safety advice via WhatsApp. This tool addresses environmental and health concerns by keeping individuals and communities informed about air quality, promoting healthier and safer living conditions.

Thank you

Top comments (0)