Contribute and Earn With AI Social Campaigns
Tags: devchallenge, twiliochallenge, ai, twilio
Published: 2024-06-24 07:00:00

*This is a submission for [Twilio Challenge v24.06.12](https://dev.to/challenges/twilio)*

## What I Built
I have developed a platform where people can donate money to social campaigns. Additionally, I created an AI-powered WhatsApp bot using Twilio's API that allows users to receive grants by sharing videos of their contributions related to active social campaigns. The AI classifies these videos and rewards users by adding money to their wallets based on their contributions. This system supports individuals, animals, and the environment in critical times by reducing dependency on NGOs and governments. People can sponsor campaigns, and the AI bot will classify and distribute grants from those sponsorships to individuals who actively contribute to the campaign.

## Demo
Step 1 : User signs up on platform , connect his wallet and can fund or sponsor social campaigns. 

![Platform Photo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ennxic7bkkoq8mp7s54.png)
![Platform Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8rj4xo11icuhwoza8b7n.png)

Step 2 : User gets message on whatsapp with all the active campaigns and rewards for contrubting towards it . If the user has contributed has contributed to any campaign then he/ she can share a video of it to our whatsapp bot and the AI model would classify that if the user has contributed or not and based on that he would earn rewards for contributing towards social mission. 

![Bot Conversation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9oswhyp4rj22sqygs8rq.jpg)
![Bot Conversation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73g4vj0oarkg9px3yrk3.jpg)

Demo : 

{% embed https://youtu.be/8q8Mxp7g_pM %}

Github Code : [code](https://github.com/Chirag-Agrawal/twilio)


## Twilio and AI
Twilio Capabilities:
WhatsApp API: Integrated Twilio's WhatsApp API to enable seamless interaction between users and the AI bot for chats and media sharing . 
AI Integration:
Video Classification: Implemented an AI model of gemini to classify user-submitted videos. The model analyzes videos to determine if they showcase meaningful social work aligned with active donation campaigns.
Automated Responses: Leveraged AI-generated responses to notify users of their video submission status and reward eligibility.

Future Vision : 
1. Add more ai capabilities features to recognize and store docs of users receiving rewards for an exceeded limit . along with their submission pattern and show videos uploaded by users on platform to motivate others.
2. Integrate more Twilio api's like current location api , calls api to support more social campaigns especially for geographical locations hit by natural calamities or war zones, etc ! 

## Additional Prize Categories
Impactful Innovators: The project drives positive social impact by encouraging and rewarding community involvement in social work activities tied to donation campaigns and environmental effects. This projects supports more social causes and campaigns by reducing the dependency from NGO's and governments and empowers more individuals to support social campaigns, specially in unpredicted times like disasters ,wars or global crisis.

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- Don't forget to add a cover image (if you want). -->

<!-- Thanks for participating! →