Skip to main content
IAMV Consulting

AI Language Tutor: Multi-Agent Language Tutor on Telegram

AI Agents

Autonomous language tutor available 24/7 with voice, text, and CEFR assessment, without a line of backend.

Practice availability
24/7
CEFR assessment range covered
A1-C2
Debounce window for consolidating messages
15s

Executive summary

The problem
Personalized language teaching does not scale: teachers trade hours for lessons, and the student is left without anyone to talk to exactly between sessions, which is where fluency stalls.
What was done
An autonomous tutor on Telegram with no backend code: an orchestrator agent in n8n delegates to CEFR assessment and conversation tutoring sub- agents, transcribes voice with Whisper and answers by text or voice note.
The result
Practice available 24/7 with a CEFR level from A1 to C2 kept per student across sessions, and a 15-second Redis debounce that removes the duplicate replies caused by burst messages.
Where it applies
Independent teachers and language schools that need to offer practice between lessons without funding a conversational engineering project.

Want to discuss a similar challenge?

Book a free diagnosis to assess the context, constraints, and next step.

Fact sheet

Sector
Language education
Scope
Italy by Brazil
Model
AI Solutions Builder · Per project
Stack
TelegramOpenAI GPT-4o-miniWhisperOpenAI TTSRedisLangChainn8n

Solution Architecture

Message on Telegram
Professor PolyAI
Response to student
Recursos · Professor PolyAI
Model
GPT-4o-mini
LangChain Orchestrator
Sub-agents
CEFR Assessment
Light placement, estimates the range from A1 to C2
Conversation Tutoring
Roleplay with scaffolding and inline correction
Resources
Debounce in Redis
15s window per Telegram ID
Whisper
Transcribes the voice note
OpenAI TTS
Returns the response in audio
An orchestrator delegates to specialist sub-agents, separating level assessment from conversation tutoring, and relies on voice resources and message consolidation.

The challenge

Personalized language teaching does not scale. Independent teachers trade hours for classes and cannot meet the demand for practice between sessions. Language schools need a practice tool available 24 hours, but building a conversational backend with voice, level assessment, and pedagogical correction is an engineering project that most cannot afford. And the student, in the interval between classes, is left without a conversation partner: this is exactly where fluency stalls.

There was also a tricky technical problem: students send messages in bursts. Without treatment, each fragment triggers an AI response, and the conversation becomes noise.

The solution

A fully autonomous language tutor running as an n8n workflow on Telegram, without any line of backend code. The core is Professor PolyAI, a LangChain orchestrator powered by GPT-4o-mini, which interprets the student's intent and delegates to the appropriate specialist sub-agent. The CEFR Assessment Specialist performs a light placement, estimates the student's range (A1 to C2), and stores the result for future turns. The Conversation Tutoring Specialist conducts practice dialogues and roleplay with scaffolding, inline correction, and positive reinforcement.

The orchestrator applies pedagogical formatting rules: short responses of 3 to 8 lines, structured correction templates, and commands like /quiz, /drill, /dialogo, and /nivel. To address the burst message problem, a debounce buffer in Redis stacks each message indexed by the user's Telegram ID, waits 15 seconds, and silently discards exceeded entries. The result is a single coherent response per burst, without duplicates.

How it works

The student sends a message on Telegram, in text or audio. An incoming router detects the type: voice notes are downloaded and transcribed via OpenAI Whisper before entering the main flow; unsupported types are diverted. After the debounce, Professor PolyAI reads the complete context of the conversation, chooses the sub-agent, and generates the pedagogical response.

On output, a conditional node checks if the original input was voice. If it was, the Markdown is removed, the text goes to OpenAI TTS, and the student receives the response as a voice note on Telegram. This completes a fully spoken conversation cycle, essential for practicing listening and pronunciation.

All customization happens through parameters: the variable lingua_ensino defines the target language (English, Spanish, French, or any language supported by GPT-4o-mini and Whisper), and the system prompt controls persona, tone, and commands. New specialist sub-agents, such as a grammar checker or vocabulary trainer, can be added by duplicating the agentTool pattern and connecting to the orchestrator.

Solution Flow

Telegram
Message
n8n Workflow
Incoming Router
Detects the type; voice is transcribed via Whisper
Consolidation
Debounce in Redis
Waits 15s and discards exceeded entries
AI Models
Professor PolyAI
Reads the full context of the conversation, chooses the sub-agent
Specialist sub-agent
CEFR Assessment or Conversation Tutoring
Conditional Output
If the input was voice, the TTS generates the voice note
Response
Telegram
From the message on Telegram to the pedagogical response, with voice transcription, debounce, and delegation to the specialist sub-agent.

Results

  • Tutor available 24/7 on Telegram, with input via voice and text and CEFR level assessment from A1 to C2
  • Zero backend code: all logic resides in n8n nodes, parameters, and system prompts, and can be replicated by non-programmers
  • 15s debounce in Redis eliminates duplicate responses in sequentially sent messages
  • Adaptable to any language and curriculum by changing a configuration variable and the persona prompt
  • CEFR level estimate maintained per student and reused between sessions, personalizing the scaffolding at each turn

The lesson of the project lies in the architecture. The pedagogical gain came from orchestration, not from a larger model: separating level assessment and conversation tutoring into distinct sub-agents is what makes a generic chatbot function as a tutor.

Results

24/7
Practice availability
A1-C2
CEFR assessment range covered
15s
Debounce window for consolidating messages
“All good! I liked the service! Clear communication, timely delivery”
Leonardo Pelizzari (CEO) · Italy for Brazil