# Draft a course with Pie

> Let Pie write a first draft of a course: choose the settings, build from your own document, watch progress and retry lessons that failed.

Source: https://docs.personacart.com/commerce/course-pie-draft

In short: {"Let Pie write a first draft of a course: choose the settings, build from your own document, watch progress and retry lessons that failed."}

Pie can write the structure and the first text of a course for you. You read and fix everything. Nothing is shown to students until you publish.

1. Open **Commerce → Curriculum** and press **Start a course**.
2. Type the course name, choose **Let Pie write a first draft**, then press **Next: Pie’s questions**.
3. Fill in the three steps (**Next** between them) and press **Generate Curriculum**.
4. Read every lesson, then publish when you are happy.

## Where to find it

Sidebar → COMMERCE → Curriculum → **Start a course**.

1. Type the course name under **What is your course called?**
2. Under **How do you want to begin?** choose **Let Pie write a first draft**. The other choices are **Start empty** and **Start from a template**.
3. Press **Next: Pie’s questions**.

The next panel already has your course name, so you do not type it twice. Nothing is saved until you press **Generate Curriculum**; **Cancel** or **Back** lose nothing.

## The three steps

The dialog has three steps along the top: **About the course**, **What Pie writes** and **Check and start**.

### Step 1: About the course

| Field | What it is |
|---|---|
| **Curriculum Name** | At least 2 characters. Parents and students see it. |
| **Topic / Subject** | At least 2 characters. What the course teaches, for example "Digital Marketing". |
| **Description** | Optional. A short description (up to 1000 characters). |
| **Course shape** | **Blank**, **Course** (3-module structure), **Certification** (study plus exam), **Bootcamp** (intensive, project-based), **Workshop** (hands-on practice), **Masterclass** (expert deep dive) or **Tutorial Series** (step-by-step guides). Each shows the arc Pie follows, for example Foundation → Core Skills → Project Lab → Capstone. It sets a starting setup you can change on the next step. |
| **Generate with AI** | On for a Pie draft. Off creates an empty course from the shape. |
| **Build from your own material** | Optional. Upload a document and Pie uses what is in it. |

#### Build from your own material

Upload a **PDF, Word (.docx), Markdown (.md) or plain text (.txt)** file, up to 20 MB. Pie reads the text. Scanned pages and images are not read, so a photographed PDF will not work. If the document is long, Pie uses the first part and the screen says "first part used". Then choose how Pie uses it:

- **Read it for help**: Pie takes help from your document but builds the course its own way. Some things may come from outside your document.
- **Build the course on this document**: Pie builds the course only from what is in your document. Anything not in it will not appear.

### Step 2: What Pie writes

| Group | Setting | Options |
|---|---|---|
| **Structure** | **Number of Modules** | 3 to 10 (starts at 8) |
| | **Lessons per Module** | 2 to 10 (starts at 4) |
| | **Words per Lesson** | 500, 1000, 1500 or 2000 (starts at 1000) |
| **Audience** | **Difficulty** | Beginner, Intermediate, Advanced |
| | **Age Group** | Kids (5-10), Tweens (11-14), Teens (15-17), Young Adults (18-24), Professionals (25+) |
| | **Language** | English, Spanish, French, German, Portuguese, Italian, Dutch, Russian, Mandarin Chinese, Japanese, Korean, Arabic, Hindi, Turkish, Polish, Thai, Vietnamese, Indonesian, Malay or Swahili |
| | **Tone** | Academic, Conversational, Hands-on, Storytelling, Motivational |
| **Content Options** | **Include Quizzes** | One quiz per module, with **Questions per Quiz** 3 to 10 (on by default, 3 questions) |
| | **Include Video Scripts** | One script per lesson, **Video Duration** 3, 5 or 10 minutes (off by default) |
| | **Include Certificate** | Creates a certificate design in your Certificate library once the course finishes generating |
| | **Learning Objectives** | What learners should be able to do after the course |

Under the settings the dialog shows an estimate such as "~8 modules x 4 lessons x 1000 words = ~32,000 words, about N min generation time", and how much of your remaining weekly AI budget the draft will use.

### Step 3: Check and start

A summary of everything you chose: title, topic, template, description, structure, audience and content options. Press **Generate Curriculum**. If you go back and forth, the dialog asks before it throws away what you typed.

## What happens next

- The outline takes a few seconds (up to a minute for big courses).
- Then the lesson text is written **in the background**; you can leave the page and come back.
- The course card and the course page show a progress strip with steps **Blueprint**, **Lessons**, **Quizzes**, **Video scripts** and **Certificate**, and live counts such as "12/32 lessons".

When it finishes you see **Your course is ready!** Review your lessons and publish when you are happy.

### If something fails

- **Some lessons failed to generate**: press **Retry all failed**, or **Regenerate** on a single lesson, or write it by hand.
  - **Create empty lessons to edit manually** is the fallback.
  - A small chip on a lesson says how it was recovered (for example **Recovered**, **Chunked retry**, **Backup model**, **Section-by-section**, **Template fallback**, **Placeholder**).
- **Generation appears stuck** (no progress for over 10 minutes): use **Retry all failed**, or refresh the page.
- **Weekly AI budget reached**: the course needs more than what is left of your weekly allowance. Try a smaller course (fewer modules or shorter lessons) or wait for the weekly reset. A retry would hit the same limit, so the button is not offered.
- **Verify your email to use AI generation**: confirm your email address, then generate again.
- **Too large**: more than 100 lessons in total is not accepted. Reduce modules or lessons per module.
- Nothing is created for a failed request, so a retry is safe and does not make a duplicate.

:::note[A draft is a starting point]
- A Pie draft uses your weekly AI allowance. The estimate in step 2 shows the share before you start. See [Plans and limits](/settings/plans-and-limits).
- The draft is a starting point. Read every lesson before students see it.
- Pie does not publish anything and does not tell anyone.
:::

## Questions
