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:

ParameterTypeRequiredDescriptionExample
partner_idstringRequiredYour partner id (issued with your credentials)"kanzoo"
student_idstringRequiredYour stable internal student id. All engine data for the student is keyed on it, scoped to your partner."stu_abc123"
subjectstringRequiredmath, science, ela, social-studies (also cs, languages)"math"
levelstringRequiredGrade label"Grade 6"
teacherstring | objectOptionalTeacher 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"
voicestringOptionalVoice code from the Voices and Companions page. Wins over the persona's own voice."maple"
student_namestringOptionalFirst name; the tutor uses it in conversation"Ayaan"
topicstringOptionalFree text. Without curriculum_module the tutor builds a just-in-time lesson on this topic."Ratios and unit rates"
curriculum_modulestringOptionalA lesson plan id — one returned by POST /plan-generate (your material) or one of ours. Locks the session to that plan."plan_8f3a…"
target_kindstringOptional"lessonNode" when curriculum_module is set, otherwise "freestyle""lessonNode"
session_goalstringOptionalhomework-help, practice, concept-review (default), test-prep, catch-up, challenge, general"homework-help"
input_modestringOptional"voice" (default) or "text""voice"
tutor_opensbooleanOptionalText mode only: the tutor opens the session itself (any session_goal) instead of waiting for the student to type firsttrue
max_duration_minutesnumberOptionalHard cap, 1–120, default 30. The session wraps up gracefully and session_ended carries ended_reason: "time_limit".30
session_idstringOptionalSupply your own session id and the engine uses it everywhere (events, /sessions/summary). Otherwise the engine mints one."duc-sess-9012"
resumebooleanOptionalWith the same session_id, continue the session (position, transcript, board restored) instead of starting over. Checkpoints kept 30 days.true
progress_digestobjectOptionalLets the tutor open with a progress line: { unitsCompleted, unitsTotal, percentComplete, weeksElapsed?, paceNote? }{ "unitsCompleted": 3, "unitsTotal": 12, "percentComplete": 25 }
social_memoryarrayOptionalLight 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" }]
brandingobjectOptional{ primary_color, logo_url, product_name } — accent colour and a header logo/name inside the frame{ "primary_color": "#1E40AF", "product_name": "DUC Tutor" }
featuresobjectOptional{ homework_upload, text_mode, voice_mode } booleans{ "homework_upload": false }
metadataobjectOptionalArbitrary key-value pairs stored with the session for your own reference{ "class_id": "math-6b" }
expnumberOptionalUnix seconds. Recommended 2 hours. A 4-hour grace after exp keeps long sessions alive.1789458037
iatnumberOptionalUnix seconds1789450837

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:

ParameterTypeDescription
primary_colorstringHex color for buttons and accents
logo_urlstringURL to your logo (displayed in tutor header)
product_namestringReplaces "Evelyn Voice Tutor" in the UI

Features Object

Toggle individual features on or off:

ParameterTypeDescription
homework_uploadbooleanEnable photo upload for homework problems (default: true)
text_modebooleanAllow students to switch to text input (default: true)
voice_modebooleanAllow 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
}