{ "success": true, "content": "- Describe the role of chlorophyll...\n- Explain how light intensity...", "structuredContent": { "type": "generate_objectives", "items": [ "Describe the role of chlorophyll in photosynthesis", "Explain how light intensity affects the rate of reaction" ], "metadata": { "generatedAt": "2026-08-21T12:00:00.000Z", "itemCount": 2 } }}
Assist
AI actions
Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.
{ "success": true, "content": "- Describe the role of chlorophyll...\n- Explain how light intensity...", "structuredContent": { "type": "generate_objectives", "items": [ "Describe the role of chlorophyll in photosynthesis", "Explain how light intensity affects the rate of reaction" ], "metadata": { "generatedAt": "2026-08-21T12:00:00.000Z", "itemCount": 2 } }}
Five named, bounded helpers that generate a short list from unit context. Each
call names one actionType; there is no free-form prompt field.
These are not general rewrite operations. There is no shorten, expand or
retone action — the five below are the complete set, and any other value is
rejected with a 400.
Lesson-level context: lessonId, lessonTitle, lessonNumber,
existingObjectives and existingActivities. Supply the existing lists when
you want suggestions that don’t duplicate what the teacher already has.
The same output parsed into a list: type (echoes actionType), items
(string[]), and metadata carrying generatedAt and itemCount.
{ "success": true, "content": "- Describe the role of chlorophyll...\n- Explain how light intensity...", "structuredContent": { "type": "generate_objectives", "items": [ "Describe the role of chlorophyll in photosynthesis", "Explain how light intensity affects the rate of reaction" ], "metadata": { "generatedAt": "2026-08-21T12:00:00.000Z", "itemCount": 2 } }}
items is derived by parsing bullets and numbered lines out of content. When
nothing parses as a list, items falls back to a single element holding the
whole of content — so it is never empty, but it is not always a list. Read
metadata.itemCount to tell the two cases apart: a real list has
itemCount > 0, the fallback reports 0.
Runs on gpt-4o-mini at temperature 0.7, capped at 2000 output tokens —
a different provider from the planning capabilities, which go to the Vertex
agents. Long inputs are not chunked; they are truncated by that cap.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MESO Docs","description":"API reference and integration guides for the MESO educational planning platform.","colors":{"primary":"#B64B00","light":"#FF720F","dark":"#D15600"},"logo":{"light":"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/meso-light.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=0f20c795a69b624ef3f0c4a575470a08","dark":"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/meso-dark.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=1d9fa741f7aa99dd1e47f67e8eb49463","href":"https://www.mesolab.ai"},"favicon":"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/favicon.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=c4320af2e933ad7e7c740b0839692bb6","navbar":{"links":[{"href":"https://www.mesolab.ai","label":"Marketing site"},{"href":"mailto:contact@mesolab.ai","label":"Support"}],"primary":{"type":"button","label":"Open MESO","href":"https://app.mesolab.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/mesolab","x":"https://x.com/mesolab"},"links":[{"header":"Legal","items":[{"label":"Privacy","href":"https://www.mesolab.ai/privacy"},{"label":"Terms","href":"https://www.mesolab.ai/terms"},{"label":"Cookies","href":"https://www.mesolab.ai/cookies"}]}]},"search":{"prompt":"Search MESO docs"},"fonts":{"family":"Geist"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meso-lab","hasAudioNarration":false,"actualSubdomain":"meso-lab","customDomains":["docs.mesolab.ai"],"gitSource":{"type":"github","owner":"mesolab","repo":"meso-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6a8ecb641a367802b31e2e69","collectionId":"caa2c304-bfc1-4b2a-a0c5-fd9d73fe9e6d","liveDeploymentHistoryId":"6a8ecb641a367802b31e2e69","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a8ecb641a367802b31e2e69","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Teachers","count":21},{"language":"default","tag":"Developers","count":20},{"language":"default","tag":"Schools \u0026 publishers","count":7},{"language":"default","tag":"Running MESO","count":7},{"language":"default","tag":"Planning","count":6},{"language":"default","tag":"Assessment","count":5},{"language":"default","tag":"Curriculum","count":5},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Assist","count":3},{"language":"default","tag":"Content","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/assist/ai-actions","slug":"/api-reference/assist/ai-actions","pageMetadata":{"title":"AI actions","api":"POST /ai-actions","description":"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.","icon":"wand-magic-sparkles","href":"/api-reference/assist/ai-actions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Info,Note,ParamField,ResponseField,Table,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Five named, bounded helpers that generate a short list from unit context. Each\ncall names one `,_jsx(_components.code,{children:`actionType`}),`; there is no free-form prompt field.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`These are `,_jsx(_components.strong,{children:`not`}),` general rewrite operations. There is no shorten, expand or\nretone action — the five below are the complete set, and any other value is\nrejected with a 400.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`actions`,children:`Actions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`actionType`})}),_jsx(_components.th,{children:`Produces`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`generate_objectives`})}),_jsx(_components.td,{children:`Learning objectives for a lesson, using Bloom’s taxonomy verbs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`suggest_activities`})}),_jsx(_components.td,{children:`Classroom activities that fit the unit and year group.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`enhance_outcomes`})}),_jsx(_components.td,{children:`Sharper phrasing for existing learning outcomes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`create_rubric`})}),_jsx(_components.td,{children:`Rubric criteria for the unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`generate_questions`})}),_jsx(_components.td,{children:`Assessment questions.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{body:`actionType`,type:`string`,required:true,id:`param-action-type`,children:_jsx(_components.p,{children:`One of the five values above.`})}),`\n`,_jsx(ParamField,{body:`context`,type:`object`,required:true,id:`param-context`,children:_jsx(Expandable,{title:`properties`,children:_jsx(ParamField,{body:`unitData`,type:`object`,id:`param-unit-data`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`subject`}),`, `,_jsx(_components.code,{children:`topic`}),`, `,_jsx(_components.code,{children:`yearGroup`}),` and `,_jsx(_components.code,{children:`learningOutcomes`}),`\n(`,_jsx(_components.code,{children:`string[]`}),`). Every field is optional — the prompt is built from whatever\nis present.`]})})})}),`\n`,_jsx(ParamField,{body:`additionalData`,type:`object`,id:`param-additional-data`,children:_jsxs(_components.p,{children:[`Lesson-level context: `,_jsx(_components.code,{children:`lessonId`}),`, `,_jsx(_components.code,{children:`lessonTitle`}),`, `,_jsx(_components.code,{children:`lessonNumber`}),`,\n`,_jsx(_components.code,{children:`existingObjectives`}),` and `,_jsx(_components.code,{children:`existingActivities`}),`. Supply the existing lists when\nyou want suggestions that don’t duplicate what the teacher already has.`]})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the action ran.`]})}),`\n`,_jsx(ResponseField,{name:`content`,type:`string`,id:`param-content`,children:_jsx(_components.p,{children:`The raw model output, as markdown.`})}),`\n`,_jsx(ResponseField,{name:`structuredContent`,type:`object`,id:`param-structured-content`,children:_jsxs(_components.p,{children:[`The same output parsed into a list: `,_jsx(_components.code,{children:`type`}),` (echoes `,_jsx(_components.code,{children:`actionType`}),`), `,_jsx(_components.code,{children:`items`}),`\n(`,_jsx(_components.code,{children:`string[]`}),`), and `,_jsx(_components.code,{children:`metadata`}),` carrying `,_jsx(_components.code,{children:`generatedAt`}),` and `,_jsx(_components.code,{children:`itemCount`}),`.`]})}),`\n`,`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`items`}),` is derived by parsing bullets and numbered lines out of `,_jsx(_components.code,{children:`content`}),`. When\nnothing parses as a list, `,_jsx(_components.code,{children:`items`}),` falls back to a single element holding the\nwhole of `,_jsx(_components.code,{children:`content`}),` — so it is never empty, but it is not always a list. Read\n`,_jsx(_components.code,{children:`metadata.itemCount`}),` to tell the two cases apart: a real list has\n`,_jsx(_components.code,{children:`itemCount > 0`}),`, the fallback reports `,_jsx(_components.code,{children:`0`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Runs on `,_jsx(_components.code,{children:`gpt-4o-mini`}),` at `,_jsx(_components.code,{children:`temperature`}),` 0.7, capped at 2000 output tokens —\na different provider from the planning capabilities, which go to the Vertex\nagents. Long inputs are not chunked; they are truncated by that cap.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"AI actions","api":"POST /ai-actions","description":"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.","icon":"wand-magic-sparkles","href":"/api-reference/assist/ai-actions"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Five named, bounded helpers that generate a short list from unit context. Each\ncall names one `,_jsx(_components.code,{children:`actionType`}),`; there is no free-form prompt field.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`These are `,_jsx(_components.strong,{children:`not`}),` general rewrite operations. There is no shorten, expand or\nretone action — the five below are the complete set, and any other value is\nrejected with a 400.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`actions`,children:`Actions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`actionType`})}),_jsx(_components.th,{children:`Produces`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`generate_objectives`})}),_jsx(_components.td,{children:`Learning objectives for a lesson, using Bloom’s taxonomy verbs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`suggest_activities`})}),_jsx(_components.td,{children:`Classroom activities that fit the unit and year group.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`enhance_outcomes`})}),_jsx(_components.td,{children:`Sharper phrasing for existing learning outcomes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`create_rubric`})}),_jsx(_components.td,{children:`Rubric criteria for the unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`generate_questions`})}),_jsx(_components.td,{children:`Assessment questions.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{body:`actionType`,type:`string`,required:true,id:`param-action-type`,children:_jsx(_components.p,{children:`One of the five values above.`})}),`\n`,_jsx(ParamField,{body:`context`,type:`object`,required:true,id:`param-context`,children:_jsx(Expandable,{title:`properties`,children:_jsx(ParamField,{body:`unitData`,type:`object`,id:`param-unit-data`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`subject`}),`, `,_jsx(_components.code,{children:`topic`}),`, `,_jsx(_components.code,{children:`yearGroup`}),` and `,_jsx(_components.code,{children:`learningOutcomes`}),`\n(`,_jsx(_components.code,{children:`string[]`}),`). Every field is optional — the prompt is built from whatever\nis present.`]})})})}),`\n`,_jsx(ParamField,{body:`additionalData`,type:`object`,id:`param-additional-data`,children:_jsxs(_components.p,{children:[`Lesson-level context: `,_jsx(_components.code,{children:`lessonId`}),`, `,_jsx(_components.code,{children:`lessonTitle`}),`, `,_jsx(_components.code,{children:`lessonNumber`}),`,\n`,_jsx(_components.code,{children:`existingObjectives`}),` and `,_jsx(_components.code,{children:`existingActivities`}),`. Supply the existing lists when\nyou want suggestions that don’t duplicate what the teacher already has.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/ai-actions\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"actionType\": \"generate_objectives\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"context\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unitData\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subject\": \"Science\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"topic\": \"Photosynthesis\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"yearGroup\": \"2nd Year\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"additionalData\": { \"lessonTitle\": \"Light and chlorophyll\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the action ran.`]})}),`\n`,_jsx(ResponseField,{name:`content`,type:`string`,id:`param-content`,children:_jsx(_components.p,{children:`The raw model output, as markdown.`})}),`\n`,_jsx(ResponseField,{name:`structuredContent`,type:`object`,id:`param-structured-content`,children:_jsxs(_components.p,{children:[`The same output parsed into a list: `,_jsx(_components.code,{children:`type`}),` (echoes `,_jsx(_components.code,{children:`actionType`}),`), `,_jsx(_components.code,{children:`items`}),`\n(`,_jsx(_components.code,{children:`string[]`}),`), and `,_jsx(_components.code,{children:`metadata`}),` carrying `,_jsx(_components.code,{children:`generatedAt`}),` and `,_jsx(_components.code,{children:`itemCount`}),`.`]})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"- Describe the role of chlorophyll...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- Explain how light intensity...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"structuredContent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"generate_objectives\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Describe the role of chlorophyll in photosynthesis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Explain how light intensity affects the rate of reaction\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"generatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-21T12:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"itemCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`items`}),` is derived by parsing bullets and numbered lines out of `,_jsx(_components.code,{children:`content`}),`. When\nnothing parses as a list, `,_jsx(_components.code,{children:`items`}),` falls back to a single element holding the\nwhole of `,_jsx(_components.code,{children:`content`}),` — so it is never empty, but it is not always a list. Read\n`,_jsx(_components.code,{children:`metadata.itemCount`}),` to tell the two cases apart: a real list has\n`,_jsx(_components.code,{children:`itemCount > 0`}),`, the fallback reports `,_jsx(_components.code,{children:`0`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Runs on `,_jsx(_components.code,{children:`gpt-4o-mini`}),` at `,_jsx(_components.code,{children:`temperature`}),` 0.7, capped at 2000 output tokens —\na different provider from the planning capabilities, which go to the Vertex\nagents. Long inputs are not chunked; they are truncated by that cap.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"AI actions","api":"POST /ai-actions","description":"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.","icon":"wand-magic-sparkles","href":"/api-reference/assist/ai-actions"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Actions","slug":"actions","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$BASE_URL\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/ai-actions\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ACCESS_TOKEN\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"actionType\": \"generate_objectives\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"context\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"unitData\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subject\": \"Science\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"topic\": \"Photosynthesis\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"yearGroup\": \"2nd Year\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"additionalData\": { \"lessonTitle\": \"Light and chlorophyll\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"- Describe the role of chlorophyll...\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">- Explain how light intensity...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"structuredContent\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"generate_objectives\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"items\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Describe the role of chlorophyll in photosynthesis\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Explain how light intensity affects the rate of reaction\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"generatedAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-08-21T12:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"itemCount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"AI actions","path":"/ai-actions","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"actionType":[{"type":"string","description":"One of the five values above.","required":true}],"context":[{"type":"object","properties":{"unitData":[{"type":"object","properties":{},"description":"`title` , `subject` , `topic` , `yearGroup` and `learningOutcomes` ( `string[]` ). Every field is optional — the prompt is built from whatever is present."}]},"required":true}],"additionalData":[{"type":"object","properties":{},"description":"Lesson-level context: `lessonId` , `lessonTitle` , `lessonNumber` , `existingObjectives` and `existingActivities` . Supply the existing lists when you want suggestions that don’t duplicate what the teacher already has."}]}}],"examples":{"example":{"value":{"actionType":"\u003cstring>","context":{"unitData":{}},"additionalData":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"`true` when the action ran."}],"content":[{"type":"string","description":"The raw model output, as markdown."}],"structuredContent":[{"type":"object","properties":{},"description":"The same output parsed into a list: `type` (echoes `actionType` ), `items` ( `string[]` ), and `metadata` carrying `generatedAt` and `itemCount` ."}]}}],"examples":{"example":{"value":{"success":true,"content":"\u003cstring>","structuredContent":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"meso-lab","siteName":"MESO Docs","title":"AI actions - MESO Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-21T18:27:01.216Z","originalFileLocation":"api-reference/assist/ai-actions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MESO Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AI actions - MESO Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MESO Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mesolab.ai/api-reference/assist/ai-actions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meso-lab.mintlify.app/_mintlify/api/og/v2?division=Assist\u0026amp;title=AI+actions\u0026amp;description=Five+bounded+generation+helpers+for+objectives%2C+activities%2C+outcomes%2C+rubrics+and+questions.\u0026amp;theme=7df8d1f9585a44d32f08d999\u0026amp;signature=a69f82a17d063a3477b9737c5af703a9cad0b631f0101342c39e105a9e2b1f15\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"AI actions - MESO Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meso-lab.mintlify.app/_mintlify/api/og/v2?division=Assist\u0026amp;title=AI+actions\u0026amp;description=Five+bounded+generation+helpers+for+objectives%2C+activities%2C+outcomes%2C+rubrics+and+questions.\u0026amp;theme=7df8d1f9585a44d32f08d999\u0026amp;signature=a69f82a17d063a3477b9737c5af703a9cad0b631f0101342c39e105a9e2b1f15\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MESO Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#B64B00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mesolab.ai/api-reference/assist/ai-actions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/assist/ai-actions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mesolab.ai/#organization\",\"name\":\"MESO Docs\",\"url\":\"https://docs.mesolab.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/meso-light.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=0f20c795a69b624ef3f0c4a575470a08\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mesolab.ai#website\",\"name\":\"MESO Docs\",\"url\":\"https://docs.mesolab.ai\",\"publisher\":{\"@id\":\"https://docs.mesolab.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions#webpage\",\"url\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions\",\"name\":\"AI actions\",\"description\":\"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.\",\"dateModified\":\"2026-08-21T18:27:01.216Z\",\"isPartOf\":{\"@id\":\"https://docs.mesolab.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Assist\",\"item\":\"https://docs.mesolab.ai/api-reference/assist/chat\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI actions\",\"item\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions#apireference\",\"headline\":\"AI actions\",\"name\":\"AI actions\",\"description\":\"Five bounded generation helpers for objectives, activities, outcomes, rubrics and questions.\",\"url\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mesolab.ai/api-reference/assist/ai-actions#webpage\"},\"dateModified\":\"2026-08-21T18:27:01.216Z\",\"publisher\":{\"@id\":\"https://docs.mesolab.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mesolab.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MESO Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MESO Docs","nav":{"global":null,"tabs":[{"tab":"Teachers","icon":"graduation-cap","pages":[{"title":"Teachers","href":"/teachers/get-started"}]},{"tab":"Schools \u0026 publishers","icon":"building","pages":[{"title":"Schools \u0026 publishers","href":"/schools/rollout"}]},{"tab":"Developers","icon":"code","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Quickstart","icon":"rocket","href":"/quickstart"},{"title":"Authentication","icon":"key","href":"/authentication"}]},{"group":"Concepts","icon":"diagram-project","pages":[{"title":"Architecture","icon":"sitemap","href":"/concepts/architecture"},{"title":"Capabilities","icon":"cubes","href":"/concepts/capabilities"},{"title":"Conventions","icon":"list-check","href":"/concepts/conventions"}]},{"group":"Overview","icon":"circle-info","pages":[{"title":"API reference","icon":"circle-info","href":"/api-reference/introduction"},{"title":"Errors","icon":"triangle-exclamation","href":"/api-reference/errors"}]},{"group":"Planning","icon":"calendar-days","pages":[{"title":"Unit planning","api":"POST /unit-planning","icon":"calendar-days","href":"/api-reference/planning/unit-planning"},{"title":"Lesson planning","api":"POST /lesson-planning","icon":"chalkboard-user","href":"/api-reference/planning/lesson-planning"}]},{"group":"Assessment","icon":"clipboard-check","pages":[{"title":"Rubric","api":"POST /rubric","icon":"table-list","href":"/api-reference/assessment/rubric"},{"title":"Assessment","api":"POST /assessment","icon":"clipboard-check","href":"/api-reference/assessment/assessment"}]},{"group":"Content","icon":"shapes","pages":[{"title":"Resource","api":"POST /resource","icon":"folder-open","href":"/api-reference/content/resource"},{"title":"Slides","api":"POST /slides","icon":"display","href":"/api-reference/content/slides"},{"title":"Hero image","api":"POST /unit-hero-image","icon":"image","href":"/api-reference/content/unit-hero-image"}]},{"group":"Assist","icon":"comments","pages":[{"title":"Chat","api":"POST /chat","description":"The streaming assistant conversation behind MESO Assist.","icon":"comments","href":"/api-reference/assist/chat"},{"title":"AI actions","api":"POST /ai-actions","icon":"wand-magic-sparkles","href":"/api-reference/assist/ai-actions"},{"title":"Transcription","api":"POST /whisper-transcribe","description":"Speech-to-text for voice input.","icon":"microphone","href":"/api-reference/assist/whisper-transcribe"}]},{"group":"Curriculum","icon":"compass","pages":[{"title":"Recommend learning outcomes","api":"POST /recommend-lo","icon":"compass","href":"/api-reference/curriculum/recommend-lo"},{"title":"Recommend assessments","api":"POST /recommend-as","icon":"scale-balanced","href":"/api-reference/curriculum/recommend-as"}]},{"group":"Documents","icon":"file-lines","pages":[{"title":"Document ingestion","api":"POST /ingest-teacher-document","icon":"file-arrow-up","href":"/api-reference/documents/ingest-teacher-document"}]}]}]},"basePath":"","title":"AI actions - MESO Docs","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js"]}