write_file: generate Word, Excel, PDF and PowerPoint with AI from the chat

Cerewro's write_file tool detects the file extension and auto-formats content: tables for Excel, slides for PowerPoint, paragraphs for Word or PDF. No templates, no editors.

What is write_file in Cerewro?

write_file is Cerewro's tool for creating or overwriting files in your workspace. What makes it special is that it automatically detects the extension and applies the appropriate format: tables for .xlsx, slides for .pptx, paragraphs for .docx, and text for .pdf or .txt.

Cerewro Chat — Generate Excel
Create a sales_2026.xlsx file with columns: Month, Product, Units, Price, Total

Supported formats

ExtensionAutomatic behavior
.xlsxCreates spreadsheet with data table, rows and columns
.docxGenerates Word document with paragraphs, lists and headings
.pptxCreates presentation with slides separated by ---
.pdfGenerates PDF with title and formatted body
.txt / .csvWrites plain text or comma-separated values
.jsonSaves structured data with readable indentation

Practical examples

Generate PowerPoint presentation
Create product_presentation.pptx with 5 slides about the new product X
Generate PDF report
Write a monthly report in march_report.pdf with this month's KPIs
Tip: You can combine write_file with run_command to generate a report and open it automatically: the AI first creates the file, then runs start report.xlsx.