/flask-twilio-deepl

Implementation of a chat application with real-time text translations using Flask, Twilio Conversations, and DeepL AI

Primary LanguageHTML

Tutorial: Building a Multilingual Chat Application For Customer Support with Flask, Twilio Conversations, and DeepL Translation AI

Screenshot of chat screen

Description:

A dynamic web chat application for real-time message translations based on preset language defaults.

Usage:

Download or clone repo:

git clone https://github.com/nicholasikiroma/flask-twilio-deepl.git

Navigate to cloned directory:

cd flask-twilio-deepl

Create virtual environment and activate it:

virtualenv venv
source venv/bin/activate

Install Python dependencies:

pip install -r requirements.txt

Create a .env file with the contents:

TWILIO_AUTH_TOKEN=<your-twilio-auth-token>
TWILIO_API_KEY_SID=<your-twilio-api-key-sid>
TWILIO_API_KEY_SECRET=<your-twilio-api-key-secret>
FLASK_SECRET_KEY=<your-flask-secret-key>
DEEPL_AUTH_KEY=<your-deepl-auth-key>

Install Node depencencies:

npm install

Run Tailwind:

npm run buid

Run Flask:

flask run --debug