---
title: "Document Indexing and AI Room Generation"
lang: en
canonical_url: https://www.peony.ink/docs/features/ai/ai-auto-indexing
description: "How Peony's Index documents setting adds numbered prefixes and how AI room generation builds a folder structure from a prompt. Data Room plan and above."
---

Peony gives you two related tools for keeping a room tidy: **Index documents**, which adds numbered prefixes so long rooms stay easy to scan, and **AI room generation**, which builds a folder structure from a prompt in an empty room. Both are Data Room plan features and above.

Neither of these two tools moves files. Indexing only numbers what is already there; AI room generation proposes a folder skeleton before you upload. Sorting uploaded files into folders is a separate step, handled by Peony's auto-organize.

## Index documents (numbered prefixes)

The **Index documents** setting shows numbered prefixes across your documents so long rooms stay easy to scan and discuss. A viewer and an admin can then say "open 2.3" instead of describing a file by name.

<Video id="dPdZHeVb0hw" title="How to number the documents in a data room" />

The prefixes follow your folder hierarchy and the order of items inside each folder — top-level folders get 1, 2, 3, and items nested inside get 1.1, 1.2, and so on. Reorder or move a file and the prefixes update to match.

Indexing does not classify, rename, or move files. It is a display layer on top of the structure you build.

### Turn it on or off

1. Open the data room.
2. Click the **Settings** tab in the sidebar.
3. Toggle **Index documents** on or off.

There is no separate "AI menu" and no "Re-index" button. The single **Index documents** toggle governs the numbering; turning it off removes the prefixes.

![The data room Settings tab with the Index documents card highlighted](https://www.peony.ink/docs/ai-auto-indexing/index-documents-toggle.png)

With the setting on, the numbers show in both views. In grid view they sit in front of each name:

![Project Falcon in grid view, with numbered folder names such as 01. Commercial Due Diligence, 02. HR Due Diligence and 03. Financial & Tax Due Diligence](https://www.peony.ink/docs/ai-auto-indexing/numbered-grid-view-v2.png)

In list view they get their own **Index** column:

![Project Falcon in list view with an Index column numbering each folder 1., 2., 3.](https://www.peony.ink/docs/ai-auto-indexing/numbered-list-view.png)

Turning it on also adds **Export index** next to the room name, which downloads the numbered index on the **Deal Team** plan. See [Export the document index](https://www.peony.ink/docs/features/ai/export-index).

### Or number files by hand

You don't have to use the setting: you can also number the room by hand with your own prefixes, as described in [Or number files by hand](https://www.peony.ink/docs/features/ai/export-index#or-number-files-by-hand).

### Plan availability

Indexing is a **Data Room** ($52/admin/mo) plan feature and above. New Data Room, Deal Team, and Enterprise rooms are created with **Index documents** already on. On Free and Business plans the toggle is unavailable, so those rooms show no numbered prefixes.

## AI room generation

In an empty data room or folder, Peony can generate a folder structure for you from a short prompt. This is the tool to reach for when you want "the AI to lay out my room" — it proposes the folders, you upload into them.

<Video
  id="8uFJaUaV3uM"
  title="How to let AI build a data room's folder structure"
/>

1. Open an empty data room (or an empty folder) and click **Use template**, next to **Add items**. The **Select Template** dialog opens, with the search field **Search templates or enter an AI prompt** at the top.
2. Pick **Build with AI**.
3. Type what the room is for (for example, "seed fundraising data room" or "manufacturing acquisition diligence") and press Enter.
4. Peony generates a folder structure. Review it, click **Generate** (or **Retry**) if you want a different layout, then click **Add** to apply it to your room.

You can also choose one of the built-in templates instead of generating with AI. Either way, the folders are created empty and you upload your files into them.

### Plan availability and credits

**AI room generation** is a **Data Room** plan feature and above. On Free and Business plans, entering a prompt only filters the built-in templates — it will not generate a new structure.

Generating a room with AI consumes AI credits from your workspace balance, the same shared pool used by AI document Q&A. One generation is a single, small request. See [AI Q&A](https://www.peony.ink/docs/features/ai/ai-qa) for how credits work.

## Common Questions

#### Which plan has indexing and AI features?

Indexing and AI room generation are both **Data Room** plan and above. AI document Q&A is available on **Business** and above, with 5x usage on Data Room. Inside a data room, any control gated to a higher plan shows a purple upgrade flash icon — clicking it walks you through the Data Room upgrade. Data Room also includes unlimited documents.

#### Does indexing sort my files into folders like Financials or Legal?

No. **Index documents** only adds numbered prefixes to the structure you already have. It does not read files, guess their type, or move them. To get a starting folder layout, use **AI room generation** or a built-in template in an empty room or folder (**Use template**), then upload into those folders.

#### How do I re-run indexing after adding files?

You don't need to. Prefixes update automatically as you add, move, or reorder items while **Index documents** is on. There is no re-index button.

#### Can I get a proper index with a custom folder structure?

Yes. Build the structure you want (with **AI room generation**, a template, or by hand), then turn on **Index documents** for numbered prefixes. For a bespoke structure that your team maintains on an ongoing engagement, talk to us on Deal Team or Enterprise.

#### Why don't I see numbered prefixes in my room?

Either the **Index documents** toggle is off in the data room's **Settings** tab, or the room is on Free or Business, where indexing isn't available. Upgrade to Data Room to enable it.

#### Why does a visitor see different numbers than I do?

Numbering follows what each group can see. If a group has no access to some folders, those are skipped, so the numbers they see run in order without gaps. Refer to documents by name as well as number when you work with several groups.

## Privacy Note

AI room generation sends only your short prompt to the model to draft a folder structure — your document contents are not part of that request. Indexing runs entirely inside Peony and touches no external service. Underlying file content stays encrypted in Peony's storage.

If a buyer's security team asks about AI data handling, indexing is a local display feature and room generation only uses the prompt text you type. For how Peony handles AI document Q&A, which does read document text through a production LLM, see [AI Q&A](https://www.peony.ink/docs/features/ai/ai-qa).

## Next Steps

- [Export the Document Index](https://www.peony.ink/docs/features/ai/export-index)
- [AI Q&A: Ask Questions About Your Documents](https://www.peony.ink/docs/features/ai/ai-qa)
- [Quick Start: Your First Data Room in 5 Minutes](https://www.peony.ink/docs/getting-started/quick-start)
- [Upload and Organize Files](https://www.peony.ink/docs/getting-started/upload-and-organize-files)

---

_Markdown version of [https://www.peony.ink/docs/features/ai/ai-auto-indexing](https://www.peony.ink/docs/features/ai/ai-auto-indexing.md) for AI agents and LLMs; canonical HTML: https://www.peony.ink/docs/features/ai/ai-auto-indexing. Every page on peony.ink is available as markdown — append `.md` to the URL or request it with `Accept: text/markdown`. More: [llms.txt](https://www.peony.ink/llms.txt)._
