GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI

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 Whats…


This content originally appeared on DEV Community and was authored by Snehal Rajeev Moon

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.

Image description

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.


This content originally appeared on DEV Community and was authored by Snehal Rajeev Moon


Print Share Comment Cite Upload Translate Updates
APA

Snehal Rajeev Moon | Sciencx (2024-06-22T14:38:44+00:00) GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI. Retrieved from https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/

MLA
" » GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI." Snehal Rajeev Moon | Sciencx - Saturday June 22, 2024, https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/
HARVARD
Snehal Rajeev Moon | Sciencx Saturday June 22, 2024 » GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI., viewed ,<https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/>
VANCOUVER
Snehal Rajeev Moon | Sciencx - » GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/
CHICAGO
" » GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI." Snehal Rajeev Moon | Sciencx - Accessed . https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/
IEEE
" » GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI." Snehal Rajeev Moon | Sciencx [Online]. Available: https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/. [Accessed: ]
rf:citation
» GalaxyBot: A Cosmic WhatsApp Chatbot with Laravel, Twilio, and Cloudflare AI | Snehal Rajeev Moon | Sciencx | https://www.scien.cx/2024/06/22/galaxybot-a-cosmic-whatsapp-chatbot-with-laravel-twilio-and-cloudflare-ai/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.