Use case
Language tutor
A tutor that talks with you in the language you are learning, corrects mistakes and follows its own lesson notes.
What it does
- Lesson notes in Markdown are indexed and retrieved while you talk (RAG).
- Spoken replies and a text transcript on the same session.
- Change the language or level by editing the prompt.
How it's built
This is the llm-language-tutor template. "Deploy this" creates a project with exactly these files, and you can edit them from there.
import { defineAgent } from "@voicethere/agent";
import { createLlmAgent } from "@voicethere/agent/llm";
import { openai } from "@voicethere/agent/llm/openai";
import config from "./voicethere.llm.json";
import systemPrompt from "./prompt.md";
import lessons from "./knowledge/lessons.md";
// Needs Project Redis enabled (the lessons are indexed there at start) and the
// project secret AGENT_OPENROUTER_API_KEY, which serves both the chat model
// and the embeddings. To teach another language, change prompt.md and the
// project's voice language (see /docs/spoken-language), then replace the
// lessons in knowledge/lessons.md.
defineAgent(
createLlmAgent({
config,
systemPrompt,
providers: [openai],
knowledge: {
documents: [{ id: "lessons", title: "Lessons", text: lessons }],
},
}),
);
What it costs
11 credits per minute on VoiceThere, plus less than $0.001 per minute to the model vendor.
Measured on 2026-11-08 from a real demo session. See pricing.