System Classification: Conversational AI

From Scheduler to Companion

LAFINA started as a closed-domain, task-only dialogue system. It is now a hybrid: a task-oriented core for planning, plus an open-domain companion for conversation and study help.

Two Kinds of Dialogue in One Assistant

1. Task-Oriented Dialogue (the planner core) Offline

For planning, LAFINA behaves like a Task-Oriented Spoken Dialogue System (TOSDS). It understands a specific set of intents (create, update, or delete tasks, reminders, notes, time blocks, and alarms; query schedule; snooze; acknowledge) and fills slots such as title, date, and time. This part works offline with the rule parser and on-device models.

2. Open-Domain Conversation (the companion) Online Mode

With Online Mode, LAFINA can talk about almost anything a student brings up: small talk, trivia, explaining a lesson, study tips, or just chatting after a long day. This is powered by DeepSeek. LAFINA also remembers personal preferences the student shares (Memory), so conversations feel personal.

Offline, LAFINA still handles small talk: greetings, “how are you”, “who made you”, “what can you do”, thanks, and goodbyes. For general-knowledge questions, it tells the student to turn on Online Mode rather than guess.

How the Two Work Together

Every message first goes through intent understanding:

The message is…LAFINA…
A planner change (“add a task…”)Prepares a review card. Nothing is saved until Confirm
A question about the student’s plans (“what’s on today?”)Answers from local data. Nothing is written
Conversation, trivia, or study helpReplies conversationally (DeepSeek online, local reply offline)
A USTP questionAnswers with sources through Ask USTP

A single message can mix them. For example, “I’m a night owl, help me plan my week” saves a memory and starts planning.

Multi-Turn Interaction

LAFINA is multi-turn in several places:

  • Chat: follow-ups like “move it to 4 PM” or “book the first one” refer to earlier messages. The review card can be edited, confirmed, or cancelled by voice or text (“yes”, “make it 5 instead”).
  • Reminder calls: LAFINA starts the call, speaks the reminder, listens, interprets the reply (“give me ten minutes”), and closes the loop.
  • Call LAFINA: a hands-free voice conversation, online (ElevenLabs + DeepSeek) or offline (Whisper + phone TTS).

Intent Evaluation During Calls

During a reminder call, LAFINA must respond quickly. It uses an on-device keyword matcher that understands natural replies such as “okay”, “got it”, “five more minutes”, or “in half an hour” and turns them into acknowledge or snooze for N minutes. It does not require exact words like “Yes” or “Stop”.

For more on the models, see AI Models.