Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI

This is a submission for Twilio Challenge v24.06.12

What I Built

As an avid translator who often faces challenges with different languages when traveling across different countries. To solve my own problem, I wanted to create a simple chatb…


This content originally appeared on DEV Community and was authored by Aditya Oberai

This is a submission for Twilio Challenge v24.06.12

What I Built

As an avid translator who often faces challenges with different languages when traveling across different countries. To solve my own problem, I wanted to create a simple chatbot that lets me quickly translate text from my preferred language to another, making it so much easier to communicate with other people.

Therefore, I created an AI Language Translator using the WhatsApp Sandbox mode in Twilio Programmable Messaging, Twilio Functions, and OpenAI's GPT-4o API.

Demo

Watch how it works

Here is a demo video of the app:

Steps to try

You can try it out by scanning the QR Code in the image or by texting the code join trail-has to the number +14155238886 on WhatsApp.

Twilio WhatsApp Sandbox

Once that is done, send the message Hello Twilio to begin using the chatbot.

Source code

You can also view the source code of the Twilio Function on GitHub:

GitHub logo adityaoberai / language-translator-twilio-function

Twilio function that translates language using GPT-4o and responds through the Twilio Programmable Messaging on WhatsApp

language-translator-twilio-function

Twilio function that translates language using GPT-4o and responds through the Twilio Programmable Messaging on WhatsApp

Screen_Recording_20240616_155558_WhatsApp.mp4



Twilio and AI

To create this chatbot, I used OpenAI's GPT-4o API in a Twilio Function. This function consumes the text to translate and the target language based on the user's input and returns the translated text.

Additional Prize Categories

  • Twilio Times Two: The project uses Twilio Programmable Messaging (WhatsApp Sandbox) and Twilio Functions.

  • Impactful Innovators: In a far more inter-connected world than ever, a tool that simplifies cross-language communication is going help bring people from different cultures closer and closer.


This content originally appeared on DEV Community and was authored by Aditya Oberai


Print Share Comment Cite Upload Translate Updates
APA

Aditya Oberai | Sciencx (2024-06-16T13:28:03+00:00) Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI. Retrieved from https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/

MLA
" » Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI." Aditya Oberai | Sciencx - Sunday June 16, 2024, https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/
HARVARD
Aditya Oberai | Sciencx Sunday June 16, 2024 » Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI., viewed ,<https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/>
VANCOUVER
Aditya Oberai | Sciencx - » Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/
CHICAGO
" » Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI." Aditya Oberai | Sciencx - Accessed . https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/
IEEE
" » Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI." Aditya Oberai | Sciencx [Online]. Available: https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/. [Accessed: ]
rf:citation
» Twilio Challenge: Language Translator via Twilio Functions, WhatsApp, & OpenAI | Aditya Oberai | Sciencx | https://www.scien.cx/2024/06/16/twilio-challenge-language-translator-via-twilio-functions-whatsapp-openai/ |

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.