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"
]
}
}

Flow generate-question presets

KeyTypeDescription
subjectstringThe subject of the question. Plain text.
studentLevelstringThe difficulty level of the question. Expects a student level ID from /student-levels.
languagestringThe language code for the question (e.g. "en" for English). Defaults to the user's locale.
contextstringAdditional context or instructions for the question generation. Plain text.
sourceMaterialIdsstring[]An array of source material IDs to pre-select for the question.
questionTypestringSpecify the ID of a question type to generate. Will hide the question type selector in the UI.
hideSubjectbooleanWhether to hide the subject field in the question generation UI. Defaults to false.
hideStudentLevelbooleanWhether to hide the student level field in the question generation UI. Defaults to false.
outputFormatstringSpecify the output format for the generated question. Can be either examplary_json, qti_v2p1, qti_v3p0. Defaults to examplary_json.

Example of all presets specified:

POST /embed-sessions
{
"presets": {
"outputFormat": "qti_v3p0",
"subject": "Mathematics",
"studentLevel": "us_high_school_lower",
"language": "en",
"sourceMaterialIds": ["material_123567890", "material_4564543435443"],
"context": "Focus on algebraic expressions and equations.",
"questionType": "multiple-choice-single-answer",
"hideSubject": false,
"hideStudentLevel": false
}
}

Flow edit-rubric presets

KeyTypeDescription
showDoneButtonbooleanWhether to show a "Done" button in the UI that allows users to indicate they are done editing the rubric. Defaults to true.
rubricobjectAn object representing a rubric to pre-load in the editor. Should follow the same structure as the rubric field in the API response of the rubric editor flow. JSON schema.

Flow mark-answer presets

KeyTypeDescription
examIdstringThe ID of the exam that contains the question to be marked.
sessionIdstringThe ID of the assessment session that contains the answer to be marked.
questionIdstringThe ID of the question that should be marked.
hideScoringCriteriabooleanWhether to hide the scoring criteria in the marking UI. Defaults to false.