Skip to main content

Presets

Presets allow you to pre-configure certain options for the embed session, so that when your users open the embed, they see a tailored experience.

None of these fields are required. If you do not provide any presets, the user will see the default options when they open the embed session.

Flow generate-exam presets

KeyTypeDescription
namestringThe name of the exam. Plain text.
subjectstringThe subject of the exam. Plain text.
studentLevelstringThe difficulty level of the exam. Expects a student level ID from /student-levels.
intendedDurationintegerThe intended duration of the exam in minutes (in 15 minute increments).
taxonomyIdstringThe ID of the taxonomy to use for the exam, from /taxonomies.
languagestringThe language code for the exam (e.g. "en" for English). Defaults to the user's locale.
sourceMaterialIdsstring[]An array of source material IDs to pre-select for the exam.
allowedGenerationQuestionTypesstring[]An array of question type IDs to limit the question generation options to.
contextstringAdditional context or instructions for the exam generation. Plain text.

Example of all presets specified:

POST /embed-sessions
{
"presets": {
"name": "Midterm Exam - Algebra",
"subject": "Mathematics",
"studentLevel": "us_high_school_lower",
"intendedDuration": 60,
"taxonomyId": "taxonomy_bloom_revised",
"language": "en",
"sourceMaterialIds": ["material_123567890", "material_4564543435443"],
"context": "Focus on algebraic expressions and equations.",
"allowedGenerationQuestionTypes": [
"multiple-choice-single-answer",
"single-line-text"
]
}
}