> For the complete documentation index, see [llms.txt](https://subpage.gitbook.io/subpage/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://subpage.gitbook.io/subpage/basics/editor-1.md).

# Generate lead magnets with AI

With Subpage AI you can turn source material into a multi-tab lead magnet in a few minutes.

You need a **Premium** account. Generation uses **AI credits** — if you run out, buy more from Subscription / AI credits checkout, or contact <support@subpage.co>.

## How to start

1. Open **Generate with AI** from the sidebar, or go to [AI Lead Magnets](https://my.subpage.co/ai-lead-magnets).

![AI Lead Magnets list](https://1804161931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnKc0IUnQNkcwYmgcgrpt%2Fuploads%2F6RInARPtYoqkW97t2BPO%2FScreenshot%202024-11-07%20at%2016-54-46%20AI%20Lead%20Magnets%20\(BETA\)%20-%20Subpage.png?alt=media\&token=3d571ac6-9105-4032-b640-5706c6ef3d74)

2. Press **Generate with AI**.

![Generate with AI form](https://1804161931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnKc0IUnQNkcwYmgcgrpt%2Fuploads%2FVUweC4SWxMUqUjq48Ext%2FScreenshot%202024-11-07%20at%2016-55-28%20AI%20Lead%20Magnets%20\(BETA\)%20-%20Subpage.png?alt=media\&token=46fcb6e3-33c4-4546-b158-8e4e8aadd563)

3. Choose a **source**, fill in the fields, then press **Generate Content**.
4. The job runs in the **background**. You can close the page and come back later. Most jobs finish in about **1–3 minutes** (larger files or long videos can take longer).

## Sources

| Source          | What to use                               | Notes                                                                                                                                                                                                                        |
| --------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Files**       | Upload a document or other supported file | Generation reads the file content. If a job fails, use **Retry** before re-uploading the same file.                                                                                                                          |
| **YouTube**     | Public YouTube URL                        | The video **must have captions / a transcript**. If there are no captions, Subpage will show an error — enable captions on YouTube, pick another video, or use **Files** instead. Private or age-restricted videos may fail. |
| **Website URL** | Webpage URL                               | **Temporarily unreliable.** Website import can fail while we fix the scraper. Prefer **Files** or **YouTube** for now. We will restore URL import when that work ships.                                                      |

## After generation

When the job succeeds, a page is created under [My lead magnets](https://my.subpage.co/pages). Open it to edit, brand, and set your lead gate.

If a job stays pending longer than expected, wait a few minutes, then use **Retry** on that job.

## Troubleshooting

* **YouTube: no captions** — Turn on captions for that video on YouTube, or switch to **Files**.
* **Out of AI credits** — Buy more AI credits from Subscription, then retry.
* **Job failed** — Retry once. If it still fails, email <support@subpage.co> and include the job or page link.
* **Website URL fails** — Expected for now; use Files or YouTube until URL import is restored.
