Back to Help Center

Can AI create a downloadable code or data file?

Reviewed October 23, 2026

With @ai on and Text selected, explicitly request a downloadable file, such as “Save three sample products as inventory.json” or “Create a Python file named example.py.” Ordinary requests to show code remain chat answers.

Answer

JSON, JSONL, YAML, XML, HTML and common source-code extensions are supported. You receive one file and a short explanation. Asking for several files gives one primary file that combines them where possible, such as HTML with inline CSS and JavaScript; archives are not created. A file can be up to about 100 KB, roughly 2,500 lines of code, the size the AI’s output budget allows. If a request is too big, AI sends the most useful complete file that fits and says what it left out, never a cut-off file.

Syntax checks for JSON, JSONL, YAML and XML do not prove that an application is correct. YAML aliases, explicit tags and multiple documents are unsupported, as are XML DTDs and external entities. HTML downloads as source, without an in-message preview. Generated code is never executed.

Use the file tile to save on web, phone browsers, iOS or Android. In groups the file follows normal chat visibility and uses the requester’s Text allowance. There is no separate media-generation or download fee.