> For AI agents: the complete documentation index is available at https://docs.flashnerd.com/llms.txt, the full documentation bundle is available at https://docs.flashnerd.com/llms-full.txt.

# Generate cards with AI

Turn a prompt, study notes, photos, or supported audio files into draft cards for an existing deck. You review the results before adding them to your collection.

## Before you start

You need a signed-in account, an internet connection, available AI allowance, and a deck with a valid template. Generation follows that template, so choose fields that suit your material before starting. For example, a vocabulary deck might have a Japanese field on the front and an English meaning on the back.

Submitted study content is sent through Flashnerd's service to an external AI provider. Only submit material you intend to use with that service.

## Create your first draft

1. Open the destination deck from **Home**.
2. Tap **Add Card**, then **Generate with AI**.
3. Enter a prompt in **Add a prompt to create cards**. Specify the subject, level, and the kind of questions you want.
4. Optionally use the camera, photo, or file buttons to add source material. A prompt, attachments, or both can provide the material.
5. Tap the send arrow. While **Generating…** is displayed, the send control becomes **Stop** and the prompt and attachment controls are unavailable.
6. Wait for completion, then tap **Review cards**. If the conversation has several generated sets, choose the relevant **Version**.
7. Check and edit the draft cards, then tap **Add Cards** with the displayed count.

<figure>
  <img width="1206" height="2622" loading="eager" decoding="async" className="app-screenshot" src="https://docs.flashnerd.com/screenshots/ai-composer.png" alt="AI generation composer with a sample prompt requesting cards about capital cities" />
  <figcaption>Describe the cards you want before sending the request. Generated cards still need review and an explicit save.</figcaption>
</figure>

The cards are saved to the destination deck only after **Add Cards** succeeds. A generated count in the conversation does not mean the cards have already been saved.

## Write a useful prompt

Give the AI a clear subject and an achievable result. For example:

```text
Create 12 beginner Japanese vocabulary cards about food.
Use one word per card. Put the Japanese word in Front and its
English meaning in Back. Avoid duplicate meanings.
```

For a source-based task:

```text
Use the attached notes to create 15 short question-and-answer cards.
Focus on definitions and contrasts. Use only facts in the notes.
```

The field names in your prompt should match your deck. You can request a number of cards or let AI choose; each generation supports up to **100 cards**. Source quality and the amount of distinct material affect what can be generated. Always check the resulting facts and answers yourself.

## Stop or leave a generation

Tap **Stop** to end the current operation. Cards already received remain available to review, edit, and save, even if the full request did not finish. Use the send arrow again when you are ready to try another request.

Opening AI settings or reviewing a generated card stays within the current generation flow. Backgrounding the app alone does not discard the conversation. If you leave the flow and confirm **Discard this generation?**, the conversation and cards that have not been added are lost. Choose **Keep editing** to return and save the cards first.

Stopping a request does not necessarily restore its AI allowance: work already sent to the provider may still count toward usage.

## Next steps

- [Review and refine generated cards](https://docs.flashnerd.com/guide/ai/review-and-refine.md)
- [Reuse an instruction preset](https://docs.flashnerd.com/guide/ai/instruction-presets.md)
- [Supported sources, limits, and AI allowance](https://docs.flashnerd.com/guide/ai/limits-and-sources.md)
