# How do I generate Word, Excel and PowerPoint files?

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Models & AI. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/office_generation/

## Is Pro required?

**Generating Word, Excel, and PowerPoint files, saving them locally, and sharing them via the system share sheet do not require Pro.** Files are generated locally on your device, while AI content drafting still uses your selected model and its quota. Adding files to cross-session Shared Files or publishing to the public web are separate Pro features and do not affect regular generation and export.

## Getting started

1. Open a regular chat and select a model that supports **tool calling**.
2. Tap **Tools → Choose Tools** in the input toolbar and turn on **File operations** and **Code Workbench** (already included in the recommended set). You can also set them as defaults for an assistant under **Assistants → Edit assistant → Tools**.
3. Provide your text, data, or attachments, specify the desired filename, purpose, and format, and wait for the generated file card. When editing an existing file, add it to **Conversation files** first—see "PowerPoint and editing existing documents" below. No extra skill needs to be enabled.

## Example prompts

- "Turn the discussion above into a Word weekly project report with this week's progress, an action-item list, and a task table, and generate `weekly-report.docx`."
- "Create Word meeting minutes from these notes, listing decisions, owners, and due dates."
- "Generate `project-budget.xlsx`: Design 3000, Development 12000, Testing 2500. Format currency to two decimal places, add a total formula, and freeze the header row."

## What is supported

- **Word (.docx)**: Headings, body text, lists, tables, images, headers and footers, and page setup. Output files can be edited further in Microsoft Word or WPS Office.
- **Excel (.xlsx)**: Multiple worksheets, values, formulas, merged cells, column widths, number formats, borders, freeze panes, filters, and charts. Legacy `.xls` files can also be read and saved as `.xlsx`.
- **PowerPoint (.pptx)**: Titles, body text, images, tables, and charts. Animations and slide transitions are not supported.
- **PDF**: Merging, splitting, rotating, extracting text, and generating new PDF files directly.

Excel formulas are recalculated when opened in spreadsheet software, so previews after modifying a workbook may display "pending recalculation." If you need totals visible before opening in Excel, ask the AI to compute the values first and write the results as static numbers. IDs, numbers with leading zeros, and long numbers exceeding 15 digits should be stored as text to prevent precision loss.

## PowerPoint and editing existing documents

You can ask: "Create a two-slide project presentation covering this week's progress and next week's plan, and deliver `project-update.pptx`," or "Change cell B2 in `budget.xlsx` to 15000, keep everything else intact, and save a new copy."

**For editing existing documents, adding them to Conversation files works best**: After adding a Word, Excel, or PowerPoint file as an input attachment, a prompt appears above the attachment—tap **Add to Conversation Files** to convert the original into a conversation file, automatically reference it in the input box (shown as `@filename`), and turn on **File operations** and **Code Workbench** for this chat; then simply describe your changes. You can also open **Conversation files → Import file** from the top-right chat menu and type `@` in the input box to pick the file. When referenced this way, only the opening snippet is attached to your message while the AI reads the rest on demand, edits based on the original file, and saves a new copy—making it much easier to preserve formatting, styles, and formulas. Legacy `.xls` files are read and saved as `.xlsx`; legacy `.doc` and `.ppt` files only support reading text—to modify them, save them in a modern format using Office or WPS first. Sending files directly as attachments also works, but the document text is parsed into plain text and sent along with the message—great for reading and summarizing, though less effective than **Conversation files** for modifying the original file.

When modifying an existing file, the original is preserved and the revised copy is delivered upon success. If a PowerPoint slide contains too much text, split it across multiple slides and inspect line wrapping and image layout after generation.

## Where to find generated files

Once the reply finishes, expand the **Generated files** card below the message to open, save, or share via the system share sheet. You can also open the current session's workspace from the chat menu to locate files. Preview support depends on your device; if a file cannot be previewed directly, save it first and open it with Word, Excel, or WPS.

## Turning an existing reply into Word

If the content is already in a reply, you do not need the AI to regenerate it. Open **More → Share** on the message and choose **More → Word** in the share panel to export the reply directly; it supports body text, headings, lists, tables, code, and formulas (converted into native editable Word equations). Use **Code Workbench** when you need a specific template, modifications to an existing file, or a PowerPoint presentation.

## Troubleshooting when no file is generated

- Verify that your model supports tool calling and that **Code Workbench** is enabled in the current chat. Showing text or tables inside the reply does not mean a downloadable file was created—explicitly ask to "generate and deliver a `.docx` / `.xlsx` / `.pptx` file."
- Incognito Chat does not create a persistent workspace; use a regular chat to generate files.
- Phones do not include an Office or WPS engine, so Word and PowerPoint files cannot be converted to PDF; if you need a PDF, ask the AI to generate a PDF directly.
