TT Assistant is an intelligent, multilingual customer service chatbot built for Tunisie Telecom. The project was developed during a hackathon focused on creating accessible digital solutions that align with Corporate Social Responsibility (CSR) values.
The chatbot can understand and respond to customer inquiries in multiple languages (French, Arabic, English, and Tunisian dialect) through both text and voice interactions. It improves digital inclusion by removing language barriers and provides fast, reliable answers to common questions.
- 🌐 Multilingual Support: Understands French, Arabic, English, and Tunisian dialect
- 🎤 Voice Recognition: Accepts voice input using Whisper AI model
- 🔄 Text Preprocessing: Handles typos and unclear questions
- 📱 Multi-Platform: Available through web interface and Telegram bot
- 🤖 AI-Powered: Uses OpenAI models for natural language understanding
- 🔍 Knowledge Base: Connected to a comprehensive FAQ database
The system consists of:
- Frontend: Responsive web interface built with HTML, CSS, and JavaScript
- Backend: FastAPI server that processes requests and communicates with the AI models
- n8n Workflow: Orchestrates the AI processing pipeline
- AI Agents: Two-stage processing (preprocessing and answering)
- Knowledge Base: Google Sheets-based FAQ database
- User input comes through web interface or Telegram
- First AI agent preprocesses the input and identifies the language
- Second AI agent finds the relevant answer from the knowledge base
- Response is sent back to the user in the same format and language
Our FAQ database is available in this Google Sheet
- Frontend: HTML, CSS, JavaScript
- Backend:
- Python 3.10+
- FastAPI
- Whisper AI (voice recognition)
- gTTS (text-to-speech)
- AI Processing:
- n8n workflow engine
- OpenAI GPT models
- Data Storage: Google Sheets
- Bot Platform: Telegram Bot API
- Python 3.10 or higher
- n8n installed and configured
- OpenAI API key
- Google Sheets API access
- Clone the repository
git clone https://github.com/yourusername/chatbot-tt.git
cd chatbot-tt/backend- Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Start the FastAPI server
make start # Runs: uvicorn app:app --reload-
Import the
workflow.jsonfile into your n8n instance -
Configure the necessary credentials:
- OpenAI API key
- Google Sheets access
- Telegram bot token (if using the Telegram integration)
-
Activate the workflow
Create a .env file in the backend directory with the following variables:
N8N_URL=http://localhost:5678/webhook/n8n-chatbot
OPENAI_API_KEY=your_openai_api_key
Dans une Tunisie en pleine transition numérique, l'accès équitable à l'information et aux services est un droit fondamental. Pourtant, de nombreux citoyens restent à la marge à cause de barrières linguistiques, géographiques ou culturelles.
Notre réponse : Un chatbot intelligent, vocal et inclusif.
Le développement de notre chatbot s'inscrit pleinement dans la vision d'un service public moderne, accessible et engagé. En facilitant la communication entre Tunisie Telecom et ses usagers, cet outil digital ne se limite pas à un simple support technique : il devient un levier puissant pour renforcer l'image inclusive, sociétale et citoyenne de l'entreprise.
- FIRAS RIDENE
- NOMO PHILIPPE ANDRE
- LOUAI OUNI
- WILFRIED BONE
Read more about our hackathon experience in this LinkedIn post
This project was created as part of a hackathon focused on AI solutions with CSR impact.




