This is a submission for Twilio Challenge v24.06.12
What I Built
I have created a GalaxyBot, an informative WhatsApp chatbot that delivers detailed information about stars and galaxies. The bot uses Laravel for the backend, Twilio for WhatsApp messaging, and Cloudflare's AI for generating responses.
- User Interaction and processing: Users send the bot queries about stars and galaxies.
- AI Integration: The bot passes the query to Cloudflare's AI model, which returns detailed information about the star or galaxy.
- Response Delivery: GalaxyBot sends the information back to the user's WhatsApp via Twilio.
Twilio and AI
I have used Twilio Messaging API to set the communication channel for WhatsApp and the AI model @cf/meta/llama-2-7b-chat-fp16
from Cloudflare Workers AI using REST API.
1. Seamless Messaging: Twilio's WhatsApp API allows to receive user messages and send responses seamlessly, providing a robust messaging platform.
2. Dynamic Responses: Using Cloudflare's AI, the bot generates dynamic and accurate information based on user queries. I am using Cloudflare Workers AI.
3. Efficient Communication: The integration of Twilio with AI ensures that users receive detailed and relevant information promptly, making the bot an effective educational tool.
Demo
This application is currently running in a sandbox environment. To test the application you can send a message alphabet-theory
to the number +14155238886
or scan the QR code from your mobile.
Github Repo
GalaxyBot
GalaxyBot, is a WhatsApp chatbot that provides detailed information about stars and galaxies. The bot uses Laravel for the backend, Twilio for WhatsApp messaging, and Cloudflare's AI for generating responses.
Summary:
-
User Interaction and Processing: When users send a message to the Twilio WhatsApp sandbox number. Users send queries about stars and galaxies to the bot.
-
AI Integration: The bot passes the query to Cloudflare's AI model, which returns detailed information about the star or galaxy.
-
Response Delivery: GalaxyBot sends the information back to the user's WhatsApp via Twilio.
Kudos to the Dev team for organizing an amazing challenge.
Top comments (0)