> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyquiz.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Generator

> Automatically create quizzes using artificial intelligence

## What is the AI Generator?

**AI Generator** allows you to automatically create quizzes based on:

* A topic provided as text
* An uploaded document (PDF, DOC, PPT)
* Existing educational materials

<Info>
  AI generates questions, answers, and marks correct options - you just review and customize.
</Info>

## How to use the generator

<Steps>
  <Step title="Open generator">
    Go to **My quizzes** → **Create quiz** → **AI Generator**.
  </Step>

  <Step title="Choose source">
    * **Topic** - type quiz topic
    * **Document** - upload a file
  </Step>

  <Step title="Configure parameters">
    Number of questions, question types, difficulty level.
  </Step>

  <Step title="Generate">
    Click **"Generate"** and wait for results.
  </Step>

  <Step title="Review and edit">
    Check generated questions, fix if needed.
  </Step>
</Steps>

## Generating from topic

Enter a topic, e.g.:

* "20th century Polish history"
* "Python programming basics"
* "Social media marketing"

### Parameters

| Parameter               | Description                        |
| ----------------------- | ---------------------------------- |
| **Number of questions** | 5-50 questions                     |
| **Question types**      | Single, multiple, true/false, etc. |
| **Difficulty level**    | Easy, medium, hard                 |
| **Language**            | Polish or English                  |

<Tip>
  The more specific the topic, the better the questions. Instead of "history" write "causes of World War II".
</Tip>

## Generating from document

Upload a document and AI will extract questions from it:

### Supported formats

| Format       | Description    |
| ------------ | -------------- |
| **PDF**      | Text documents |
| **DOC/DOCX** | Microsoft Word |
| **PPT/PPTX** | PowerPoint     |

### File limits

* Maximum size: **10 MB**
* Maximum pages: **50**

<Info>
  AI analyzes text from the document - images and charts are not processed.
</Info>

## Supported question types

Generator can create:

<Check>
  * Single choice
  * Multiple choice
  * True/False
  * Fill in blank
  * Match
  * Ordering
</Check>

<Warning>
  "Raise hand", "Poll" and "Open-ended" questions are not automatically generated.
</Warning>

## Quality of generated questions

### What AI does well

* Creating factual questions
* Differentiating answers
* Maintaining language consistency

### What requires checking

* Factual accuracy (especially dates, numbers)
* Answer clarity
* Difficulty level

<Warning>
  **Always check generated questions!** AI can make factual errors.
</Warning>

## Editing after generation

After generation you can:

* ✏️ Edit question content
* ➕ Add/remove answers
* ✅ Change correct answers
* ⏱️ Adjust time and points
* 🗑️ Delete unnecessary questions

## Costs and limits

AI generation consumes tokens. Check your limits in **Settings** → **AI**.

| Element       | Description                     |
| ------------- | ------------------------------- |
| Token usage   | Depends on text/document length |
| Monthly limit | Set by administrator            |
| Own API key   | Option to use your own budget   |

## Next steps

<CardGroup cols={2}>
  <Card title="From document" icon="file-import" href="/en/ai/from-document">
    Details on generating from files
  </Card>

  <Card title="AI Settings" icon="gear" href="/en/ai/settings">
    AI configuration and limits
  </Card>
</CardGroup>
