Embed Configuration
Full reference for all parameters available when embedding the Voice Tutor.
Embed URL
https://tutor.evelynlearning.com/embed?token={SESSION_TOKEN}The sandbox uses the same host and engine as production.
Basic Embed
<iframe
src="https://tutor.evelynlearning.com/embed?token=YOUR_SIGNED_TOKEN"
allow="microphone; camera; autoplay; clipboard-write"
allowfullscreen
style="width:100%; height:100vh; border:0"
></iframe>Token claims
The JWT payload, signed HS256 with your partner secret, is the session configuration:
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
partner_id | string | Required | Your partner id (issued with your credentials) | "kanzoo" |
student_id | string | Required | Your stable internal student id. All engine data for the student is keyed on it, scoped to your partner. | "stu_abc123" |
subject | string | Required | math, science, ela, social-studies (also cs, languages) | "math" |
level | string | Required | Grade label | "Grade 6" |
teacher | string | object | Optional | Teacher persona: a ready-made teacher id, or a persona object of your own (name, intro, style, and a voice code as voice). See Voices and Companions. Without it the tutor uses its default teacher. | "ms-priya-nair" |
voice | string | Optional | Voice code from the Voices and Companions page. Wins over the persona's own voice. | "maple" |
student_name | string | Optional | First name; the tutor uses it in conversation | "Ayaan" |
topic | string | Optional | Free text. Without curriculum_module the tutor builds a just-in-time lesson on this topic. | "Ratios and unit rates" |
curriculum_module | string | Optional | A lesson plan id — one returned by POST /plan-generate (your material) or one of ours. Locks the session to that plan. | "plan_8f3a…" |
target_kind | string | Optional | "lessonNode" when curriculum_module is set, otherwise "freestyle" | "lessonNode" |
session_goal | string | Optional | homework-help, practice, concept-review (default), test-prep, catch-up, challenge, general | "homework-help" |
input_mode | string | Optional | "voice" (default) or "text" | "voice" |
tutor_opens | boolean | Optional | Text mode only: the tutor opens the session itself (any session_goal) instead of waiting for the student to type first | true |
max_duration_minutes | number | Optional | Hard cap, 1–120, default 30. The session wraps up gracefully and session_ended carries ended_reason: "time_limit". | 30 |
session_id | string | Optional | Supply your own session id and the engine uses it everywhere (events, /sessions/summary). Otherwise the engine mints one. | "duc-sess-9012" |
resume | boolean | Optional | With the same session_id, continue the session (position, transcript, board restored) instead of starting over. Checkpoints kept 30 days. | true |
progress_digest | object | Optional | Lets the tutor open with a progress line: { unitsCompleted, unitsTotal, percentComplete, weeksElapsed?, paceNote? } | { "unitsCompleted": 3, "unitsTotal": 12, "percentComplete": 25 } |
social_memory | array | Optional | Light personal threads the tutor may reference this session only; never stored by the engine: [{ id, note, kind?, capturedAt }] | [{ "id": "t1", "note": "has a football match Saturday", "capturedAt": "2026-09-10T10:00:00Z" }] |
branding | object | Optional | { primary_color, logo_url, product_name } — accent colour and a header logo/name inside the frame | { "primary_color": "#1E40AF", "product_name": "DUC Tutor" } |
features | object | Optional | { homework_upload, text_mode, voice_mode } booleans | { "homework_upload": false } |
metadata | object | Optional | Arbitrary key-value pairs stored with the session for your own reference | { "class_id": "math-6b" } |
exp | number | Optional | Unix seconds. Recommended 2 hours. A 4-hour grace after exp keeps long sessions alive. | 1789458037 |
iat | number | Optional | Unix seconds | 1789450837 |
Teacher persona and voice
Send a ready-made teacher by its id ("teacher": "ms-priya-nair"), or a persona object of your own as teacher, and choose the voice with a voice code ("voice": "maple"). The persona catalog (teachers.json) holds the ready-made teachers as editable objects. Listen to every voice, and see how to build a themed companion, on Voices and Companions.
Branding Object
The optional branding object customizes the tutor's appearance:
| Parameter | Type | Description |
|---|---|---|
primary_color | string | Hex color for buttons and accents |
logo_url | string | URL to your logo (displayed in tutor header) |
product_name | string | Replaces "Evelyn Voice Tutor" in the UI |
Features Object
Toggle individual features on or off:
| Parameter | Type | Description |
|---|---|---|
homework_upload | boolean | Enable photo upload for homework problems (default: true) |
text_mode | boolean | Allow students to switch to text input (default: true) |
voice_mode | boolean | Allow voice input (default: true) |
Example: Full Token
JWT payload
{
"partner_id": "your_partner_id",
"student_id": "stu_abc123",
"student_name": "Ayaan",
"subject": "math",
"level": "Grade 6",
"topic": "Ratios and unit rates",
"curriculum_module": "plan_8f3a…",
"target_kind": "lessonNode",
"session_goal": "homework-help",
"max_duration_minutes": 30,
"session_id": "sess-9012",
"teacher": "ms-priya-nair",
"voice": "lotus",
"branding": { "primary_color": "#1E40AF", "product_name": "Acme Tutor" },
"features": { "homework_upload": false },
"metadata": { "class_id": "math-6b" },
"iat": 1789450837,
"exp": 1789458037
}