Docs
arrow_back Embeddables

AI Course Creator Scale and above

The AI Course Creator embeds Coassemble's create-course agent directly in your product — without the builder chrome. Your users describe a course (or upload documents), answer a few intake questions, and the agent builds a full course. It's the same intake experience as the Coassemble app, headless.

By default, once the brief is confirmed the embed emits a course-created event carrying the new course id and a signed builder embed URL — swap your iframe to that URL to let the build animate in the Builder (this is how the app behaves). If the iframe still shows this embed after 15 seconds, it emits handoff-timeout and shows a waiting message; it never loads the builder itself. Set build: 'inline' to build the course headlessly inside this embed instead and receive only the finished course id.

API Endpoint

POST/v1/headless/embed/agent

Body parameters

FieldTypeExampleDescriptionDemo Value
modestringcreate——
buildhandoffinlinehandoffhandoff (default) emits a signed builder-embed URL to continue the build in a Builder surface; inline builds the course headlessly inside this embed.
identifierstringyour-user-id——
clientIdentifierstringyour-tenant-id——
namestringJane DoeDisplay name for presence avatars and comment authors. Optional. An empty or blank name is treated as not given. When not given, a colour-and-animal name such as Green Turtle is generated from identifier and stays the same for that identifier. Max 512 characters; longer values return HTTP 400 (`name max=512, asked for N`).
avatarstringhttps://example.com/avatar.jpgImage URL for presence avatars and comment authors. Optional. An empty or blank avatar is treated as not given: no avatar is shown, and it does not generate a name. Otherwise it must be an http(s) URL. Max 2048 characters; longer values return HTTP 400 (`avatar max=2048, asked for N`). Other schemes also return 400.
themeIdnumberCustom theme ID to apply to the created course.
options.aibooleantrueForwarded to the course builder on handoff. When false, AI features in the builder (generate, agent panel, refine) are hidden. Does not disable this create-agent embed itself.
options.languagestringenDefault language for the created course.
options.brandVoicebooleanfalseApply the workspace brand voice during authoring.
options.googleDrivebooleantrueEnable Google Drive document import.
options.oneDrivebooleantrueEnable OneDrive document import.
options.modalbooleantrueDefault true. False strips modal framing and the close control.
options.expiresInstring3hLink opening lifetime, "30s" to "3h" (e.g. "5m"). Invalid values return 400. The builder link handed over after creation gets the same lifetime.
TypeEventDescriptionNotes
agentcourse-createdFires when the course is created. Payload includes { mode, courseId, sessionId, builderEmbedUrl? }. For handoff, load builderEmbedUrl next to continue the build in the Builder.
agenthandoff-timeoutFires once in handoff mode if the iframe is still showing this embed 15 seconds after course-created. Payload matches the handoff course-created event: { mode: "handoff", courseId, sessionId, builderEmbedUrl }. The embed then shows "Course created. Waiting for the host page to open the builder." and never loads the builder itself. Use this event to log or diagnose a missing course-created handler.
agentbuild-startedFires (inline build only) when the headless build begins.
agentcloseFires when the user closes the agent.
sessionerrorFires when an error occurs.
sessionexpiredFires when the session expires.

Live Demo