No student left behind
Sparsh
Tokai is an immersive, one-on-one AI classroom. You tell the teacher what you want to learn — and it takes over. It speaks to you in a Socratic style, draws diagrams on a live whiteboard in real-time, connects concepts with arrows, and adapts based on what you say and how you react.
You can interrupt with voice questions, circle something confusing on the board, or flash a thumbs-up to say "got it, move on." When the lesson ends, the teacher auto-generates a flashcard quiz and a spoken session summary.
No slides. No passive videos. Just a great teacher, built for you.
Online learning is broken in a fundamental way: it's passive. Lecture videos, slide decks, and static notes all put the student in "receive-only" mode. The best learning happens in conversation — when a teacher draws something out, asks you a question, and adjusts when you're lost.
That kind of teaching doesn't scale. Until now.
Tokai also tackles a gap most edtech ignores: accessibility.
Tokai is wired together across four core services:
Agora's ConvoAI handles the full real-time voice loop:
Our Custom LLM Server sits between Agora and Gemini 3 Flash. It wraps each student message in a Socratic teacher system prompt, injects live context (gesture state, canvas annotations, lesson history), and calls Gemini with whiteboard tool definitions. When Gemini fires a tool call like draw_shapes(...), the server pushes commands to the frontend via Agora RTM.
The frontend is a Next.js 16 / React 19 app. The whiteboard is built on tldraw — an infinite canvas that renders the teacher's shapes and labels in real-time. Students can annotate directly; the frontend detects these shapes, captures a screenshot, and feeds it back to the LLM as visual context so the teacher can "see" what is being pointed at.
A lightweight Python WebSocket server runs MediaPipe hand tracking locally, classifying gestures (thumbs up, open palm, head shake). The state is injected into every prompt so the teacher knows when to slow down or move on.
A StereoPannerNode is applied to the Agora remote audio track. As the teacher draws at different X positions on the canvas, the audio pans to match, giving the whiteboard a physical presence in sound.
Next.js 16 · React 19 · Tailwind v4 · excalidraw · Agora RTC/RTM/ConvoAI · Gemini 3 Flash · Python Flask · MediaPipe · Web Audio API