# Generate files in chat

Source: https://cicora.ai/en/docs/generated-files

Ask the model to prepare a file and specify its format, structure, and data.
cicora.ai can create XLSX, CSV, TSV, TXT, Markdown, or JSON. For a spreadsheet,
state the columns, sheet order, and required totals up front.

```text
Create an XLSX report named sales.xlsx with Sales and Summary sheets.
The first sheet needs Customer, Date, and Amount columns;
the second should contain the total sales amount.
```

## What happens after the request



### Chat prepares the structure

The model invokes the built-in file-generation tool. Executable code,
macros, and external workbook links are not supported.



### A worker creates and verifies the file

The chat card shows preparation, rendering, verification, and upload phases.
Reloading the page restores the same durable job instead of starting another
generation.



### Download the result

When the job completes, the card shows the filename, format, size, and any
available row or sheet metadata. The download action creates a fresh
short-lived link only after workspace access is checked.



The file remains private and is deleted with its chat thread. The card does not
contain a permanent public object URL; access is checked again on every download.

## Get a predictable result

* State the format and filename.
* List columns and value types for tabular output.
* Name each sheet and describe its contents for multi-sheet workbooks.
* Request aggregates explicitly: sum, average, minimum, maximum, or count.
* Split very large datasets when chat reports that a safety limit was exceeded.

CSV and TSV values that resemble spreadsheet formulas are stored as text. This
prevents a formula from executing when the export is opened.

## Troubleshooting


**The file did not appear in chat**


Wait for the job card to finish and reload the page: its state is restored
from chat history. If the card reports an error, reduce the dataset or split
the result according to the documented [limits](/en/docs/limits).


**The download link expired**


Return to the file card and use the download action again. cicora.ai checks
workspace access and issues a new short-lived link.

## FAQ

### What is cicora.ai?

cicora.ai is a multi-model AI workspace and compatible API for chat, text, images, video, coding tools, and teams. Start with the [overview](/en.md), [documentation](/en/docs.md), or [model catalog](/en/models.md).

### How is usage billed?

Confirmed usage is charged in USD from the active workspace's prepaid balance. Use the live catalog for current model prices and the [usage guide](/en/docs/usage-costs.md) for settlement details.

### Which protocols and integrations are available?

Documentation covers OpenAI-compatible Chat Completions and Responses, Anthropic Messages, image interfaces, Claude Code, OpenCode, and Codex CLI. Compatibility does not imply support for every upstream parameter.

### Which sources are authoritative and current?

For model IDs, availability, capabilities, limits, and prices, use the [live catalog](/en/models.md). For API behavior, use the matching [documentation page](/en/docs.md). Never include API keys, private workspace data, or preview URLs in public documents.
