hivelearn_generate_ai_course
Generate a full course with AI and return a job_id to poll with hivelearn_get_ai_job. SPENDS the key creator's AI credits: 1 credit, or 5 for hybrid_chapters (paid plans only). Confirm with the user before calling. Requires the explicit generate:ai_courses scope, which admin:* does NOT include. source_type video_url imports a public YouTube/Vimeo/Loom link; every other type needs a file already uploaded to HiveLearn media storage (external URLs are rejected). Limited to 2 running and 10 per hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_url | Yes | Video link for video_url; otherwise an https URL on the HiveLearn media host | |
| video_mode | No | none/intro_only = 1 credit, hybrid_chapters = 5. Default intro_only; forced to none for video_url | |
| context_url | No | Optional supporting document on the HiveLearn media host | |
| source_type | Yes | ||
| style_preset | No | Thumbnail style preset key; unknown values are ignored | |
| content_depth | No | ||
| brand_intensity | No | ||
| include_quizzes | No | ||
| source_filename | No | Required for every type except video_url | |
| include_intro_video | No | ||
| include_recap_video | No | Opt-in second avatar clip | |
| quiz_questions_per_chapter | No |