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). 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/agentBody parameters
| Field | Type | Example | Description | Demo Value |
|---|---|---|---|---|
mode | string | create | — | — |
build | handoffinline | handoff | handoff (default) emits a signed builder-embed URL to continue the build in a Builder surface; inline builds the course headlessly inside this embed. | |
identifier | string | your-user-id | — | — |
clientIdentifier | string | your-tenant-id | — | — |
themeId | number | | Custom theme ID to apply to the created course. | |
options.ai | boolean | true | Forwarded 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.language | string | en | Default language for the created course. | |
options.brandVoice | boolean | false | Apply the workspace brand voice during authoring. | |
options.googleDrive | boolean | true | Enable Google Drive document import. | |
options.oneDrive | boolean | true | Enable OneDrive document import. |
Emitted Events
How to listen to events| Type | Event | Description | Notes |
|---|---|---|---|
agent | course-created | Fires when the course is created. Payload includes { mode, courseId, sessionId, builderEmbedUrl? }. For handoff, load builderEmbedUrl next to continue the build in the Builder. | |
agent | build-started | Fires (inline build only) when the headless build begins. | |
agent | close | Fires when the user closes the agent. | |
session | error | Fires when an error occurs. | |
session | expired | Fires when the session expires. |