# AI-Generated Files

Ask Treasure AI Studio to "create a presentation summarizing last quarter's results" and it produces the actual PPTX, not a description of one. Analysis rarely ends at a query result: stakeholders need decks, reports, and spreadsheets they can review, annotate, and forward, and every hand-off from an analysis tool to a document tool is a place where work stalls. Studio closes that gap by making the deliverable the output of the conversation. This page covers what the AI can generate, how to ask for it, and how the finished file reaches you.

Note
The AI generates files inside a secure server-side sandbox. It writes the file, and Studio makes it available for preview and download. The AI does not access your local filesystem — all file operations happen server-side, and you choose when to download.

## Objective

Request document files from the AI, understand how a generated file is surfaced and where it is stored, and revise it without leaving the conversation.

## Prerequisites

- Signed in to Treasure AI Studio ([Getting Started](/products/ai-studio/getting-started))
- Familiarity with the chat interface ([AI Chat Interface](/products/ai-studio/chat/chat))
- At least one document-generation skill enabled — the pre-installed defaults already cover these formats ([Plugin Marketplace](/products/ai-studio/skills/marketplace))


## Why File Output Matters

Treasure AI Studio turns a conversation into a shareable document without switching applications, which changes what each role can finish in one sitting:

- **For Marketers:** Ask for a campaign performance deck and get a ready-to-present PPTX with charts and key takeaways
- **For Data Analysts:** Export query results to Excel with proper column headers and multiple sheets for different cuts of the data
- **For Solutions Engineers:** Generate a PDF report documenting a client's CDP configuration with segment definitions and journey flows
- **For CDP Project Owners:** Get a written summary of an analysis you can circulate, rather than a chat transcript nobody outside the thread will read


## Supported File Formats

File generation is supplied by [skills](/products/ai-studio/skills/skills), not built into the chat itself. Several pre-installed plugins can write these formats — the defaults cover Excel, Word, PowerPoint, and PDF out of the box, and other plugins add their own document output, such as branded decks or dashboard reports. You do not choose a skill: the AI picks one that fits the request.

| Format  | Extension  | What the AI Generates  | Common Use Cases  |
|  --- | --- | --- | --- |
| **PowerPoint** | `.pptx` | Slide decks with titles, bullet points, native charts, tables, and images | Quarterly reviews, campaign summaries, stakeholder presentations |
| **Word** | `.docx` | Formatted documents with headings, paragraphs, tables, and lists | Analysis reports, project documentation, requirements specs |
| **PDF** | `.pdf` | Portable documents for read-only sharing | Executive summaries, compliance reports, client deliverables |
| **Excel** | `.xlsx` | Workbooks with structured data, multiple sheets, and column headers | Data exports, pivot-ready datasets, financial models |


The AI is not limited to these four. Anything it can write with code in the sandbox — HTML dashboards, Markdown reports, CSV extracts, Mermaid diagrams, images, journey definitions — is also a file you can open and download. See [File Viewers](/products/ai-studio/files/file-viewers) for what Studio can render.

If document generation is unavailable
The plugins that write documents can be disabled per user, and an administrator can change the organization defaults. If the AI describes a deck instead of producing one, open **Settings → Marketplace** and check that the document-generation plugins are enabled. Plugin changes apply to new chats, not to one already open. See [Plugin Marketplace](/products/ai-studio/skills/marketplace).

## Requesting a File

Ask the AI in natural language. Be specific about format when it matters:

| Request  | What You Get  |
|  --- | --- |
| "Create a presentation on Q1 results" | PPTX with slides for each key metric, charts, and a summary |
| "Write a report on our segment strategy" | DOCX with headings, analysis sections, and recommendations |
| "Export this query result to Excel" | XLSX with the data in a named sheet and typed columns |
| "Generate a PDF summary of this conversation" | PDF with formatted text, tables, and any charts referenced |


Pro Tip
Guide the output by being specific: "Create a 5-slide deck with one slide per region, include a bar chart on each slide, and add speaker notes." Structure in the request produces structure in the file. Naming the file — "save it as `q1-review.pptx` in the `reports` folder" — also puts it where you want it instead of at the folder root.

## How a File Reaches You

Generating a file and showing it to you are two separate steps, which is why files sometimes exist without appearing in the chat.

1. **Planning** — The AI determines the file's structure (slides, sections, sheets) from your request and the data available
2. **Writing** — The AI writes the file into the sandbox, usually by generating and running code, inside the work folder the chat belongs to
3. **Surfacing** — The AI calls a tool to present the file, and a **file card** appears in the chat stream showing the category icon with the extension, the file name, and the file type — with the size prepended once it is known (for example, "248.6 KB · PowerPoint")
4. **Opening** — Select the card to open the file in a [viewer](/products/ai-studio/files/file-viewers) tab, or use the card's download button to save it directly


Which file counts as the main output is the AI's judgement: it is instructed to surface one deliverable and to skip intermediate files, configs, and dependencies, so a multi-file output — an HTML report plus its scripts, say — gets a single card for the entry point. That judgement is not always right. A file you consider the deliverable can be treated as a working file and never get a card, and the AI may skip the step entirely on a long task. A missing card says nothing about whether the file exists: browse the work folder in the sidebar file tree or on its page, or ask the AI which files it wrote and where.

File card in the chat stream for a generated file named sale_trends_2026.html, showing the blue document icon labeled .html, the file name, the HTML type label, and a download button
Technical Note
File generation happens server-side in the chat's sandbox. Files written inside the chat's [work folder](/products/ai-studio/concepts/work-folders) persist there after the conversation ends; files the AI writes elsewhere in its environment go away with the chat. See [What Persists After a Chat Ends](/products/ai-studio/security#what-persists-after-a-chat-ends).

## Revising a Generated File

Keep iterating in the same conversation rather than starting over. Ask for the change in plain language — "add a slide for APAC results", "change the title to Q1 Review", "recalculate column D with the updated tax rate" — and the AI rewrites the file in place. The chat already holds the data and decisions behind the first version, so a revision request does not need to restate them.

Two things to know about revising:

- **The viewer is read-only.** No format can be edited inside Studio. Revision happens through the conversation, or by downloading the file and editing it in the application that owns the format.
- **The AI rewrites rather than patches.** Ask for a change to a file you edited outside Studio and re-uploaded, and be explicit about which version to build on — otherwise the AI may regenerate from what it remembers writing.


## Where Generated Files Are Stored

A generated file belongs to the [work folder](/products/ai-studio/concepts/work-folders) the chat is saved in, not to the chat. It stays there after the conversation is deleted or expires, and every other chat in that folder can read it.

Browse and organize generated files exactly like any others — from the sidebar file tree or the work folder page, where you can rename, move, download, and delete them. See [Organizing Files in a Work Folder](/products/ai-studio/files/file-upload-download#organizing-files-in-a-work-folder).

A chat started with **no** work folder is the exception: its files are deleted with the chat. Download anything you need, or ask the AI to write it into a work folder instead. See [File Retention & Deletion](/products/ai-studio/files/file-upload-download#file-retention--deletion).

## Verification

After reading this guide, you can:

- [ ] Request the AI to generate a PPTX, DOCX, PDF, or XLSX file
- [ ] Recognize the file card in the chat stream and open the file in a viewer
- [ ] Download the file for sharing or further editing
- [ ] Find a generated file the AI did not surface, in the work folder's file tree
- [ ] Ask the AI to revise a generated file within the same conversation


## Troubleshooting

| Issue  | Solution  |
|  --- | --- |
| The AI described a document instead of creating one | Check **Settings → Marketplace** that the document-generation plugins are enabled, then start a new chat — plugin changes do not apply to an open conversation. Re-asking with an explicit format ("produce a .pptx file") also helps |
| No file card appeared, but the AI says it wrote the file | The AI decides which file to surface, and it does not always recognize yours as the deliverable — a file it treats as intermediate gets no card even though it was written. Look for it in the work folder's sidebar file tree or on the work folder page, or ask the AI for the path it wrote to and to open that file |
| A generated file is missing after the chat ended | Only files written inside the work folder persist. If the chat still exists, reopen it and ask the AI to save the file into the work folder. See [What Persists After a Chat Ends](/products/ai-studio/security#what-persists-after-a-chat-ends) |
| The rendered deck or document differs from the original | Studio's viewers render a faithful approximation, not a pixel-perfect one. Download the file and open it in PowerPoint, Word, or Excel for the authoritative rendering |
| The file preview is blank or shows a parsing error | Large files take a moment to render. If the error persists, the file may be malformed — ask the AI to regenerate it, or download it and open it locally. See [Viewer Errors](/products/ai-studio/files/file-viewers#viewer-errors) |


## Next Steps

- [File Viewers](/products/ai-studio/files/file-viewers) — How Studio renders each format, and what each viewer can and cannot do
- [File Upload & Download](/products/ai-studio/files/file-upload-download) — Uploading source data and organizing a work folder's files
- [Plugin Marketplace](/products/ai-studio/skills/marketplace) — Enabling and disabling the plugins that supply document generation
- [Charting a Result](/products/ai-studio/query/query-results#charting-a-result) — Asking for a chart rather than a document
- [Reading Query Results](/products/ai-studio/query/query-results) — Tabular data you can ask the AI to export to Excel