# AI for Teachers

> Use LearnHouse AI tools to build courses: the AI Course Creator, AI Editor, Magic Blocks, quiz and task generation, images, narrated audio and captions.

These are the AI tools available when you build courses. Each one uses [AI credits](https://docs.learnhouse.app/platform/ai#ai-credits); the cost is listed on the AI overview page.

## Creating a course

The **AI Course Creator** (**New Course** > **Start with AI**) plans a course with you in a chat, using your description and any photos, documents or YouTube videos you attach, then writes each activity. See [AI Course Creator](https://docs.learnhouse.app/platform/courses/ai-course-creator).

When you build a course from a folder of files (**From Existing Content**), **Organize with AI** sorts the files into chapters and activities. See [Import & Export](https://docs.learnhouse.app/platform/courses/import-export#from-existing-content).

## AI Editor

In the page editor, click **AI Editor** to open a chat that edits the page with you. Select a block to work on just that block, or ask about the whole page. Quick actions:

**Improve writing**, **Add examples**, **Simplify**, **Expand**, **Add quiz**, **Translate**, **Add summary**, **Add tip**, **Add definition**.

The changes are written into the page, where you can keep editing them. See [Editor](https://docs.learnhouse.app/platform/editor#ai-editor).

<img src="/img/pages/ai/ai-editor-improved.webp" alt="The AI Editor after Improve writing: the rewritten paragraph in the page and follow-up suggestions in the panel" width={1600} height={900} style={{ borderRadius: 10 }} />

## Blocks that generate content

| Block | What AI does |
| --- | --- |
| **Magic Block** | Builds an interactive element (simulation, chart, game, calculator, timeline) from your description. You can refine it up to 6 times. |
| **Quiz** | **Generate with AI** writes questions from the page content. Choose single-answer or select-all-that-apply questions, preview, regenerate, then insert. |
| **Scenarios** | **Generate with AI** drafts a branching scenario. |
| **Image** | **Generate with AI** creates an image from a prompt. You can refine a previous image, and find past images under **History**. |
| **Audio** | Generates narrated audio. See below. |

AI image generation is also available for course, podcast, community, board and playground thumbnails.

<img src="/img/pages/editor/magic-block.webp" alt="The Magic Block window: a generated refund calculator on the left and the Magic Chat on the right" width={1600} height={900} style={{ borderRadius: 10 }} />

## Audio generation

In an **Audio** block, open the **Generate** tab and pick a mode:

| Mode | What it does |
| --- | --- |
| **Text to speech** | Narrates text you write, in the voice you choose. Up to 11,000 characters. |
| **Podcast (2 voices)** | Enter a topic or paste source material. The AI writes a discussion between two speakers, each with a name and a voice. |
| **Speak** | Enter a subject. The AI writes a single-speaker talk and narrates it. |

For **Podcast (2 voices)** and **Speak** you also choose:

- **Length**: 2, 3, 5 or 10 minutes.
- **Language**: one of 18 languages, or **Auto-detect**.
- **Tone / style**: for example "warm and upbeat".

Click **Generate discussion script** or **Generate talk script** first. The script is fully editable. Then click **Generate audio**. The audio is saved in the block like an uploaded file. A script costs 1 credit and the narration 3 credits.

## Assignments

In an assignment's **Editor** tab, **Generate tasks with AI** drafts up to 10 tasks grounded in the course content. You preview and edit them before adding them. See [Task Types](https://docs.learnhouse.app/platform/assignments/task-types#generating-tasks-with-ai).

## Videos

For uploaded videos, AI can transcribe and translate captions into the languages you choose, and split the video into chapters from those captions. See [AI Video Captions](https://docs.learnhouse.app/platform/courses/video-captions).

## Playgrounds and boards

[Playgrounds](https://docs.learnhouse.app/platform/playgrounds) are interactive pages written by AI from your description, optionally grounded in one of your courses. On [boards](https://docs.learnhouse.app/platform/boards), the **AI Playground** tool does the same on the canvas.

> AI output can be wrong. Review generated content, especially facts, figures and code, before you publish it.
