# Theo · Document Generation > Theo can produce native PDF, DOCX, XLSX, PPTX, and CSV documents from a single conversational prompt. Content is drafted by a reasoning model, then rendered through format-specific pipelines into a downloadable artifact persisted to object storage. Source of truth: https://hitheo.ai. Last updated: 2026-05-24. ## At a glance - Formats: PDF, DOCX, XLSX, PPTX, CSV. - Triggered automatically by the routing engine when an intent classifier detects a document request, or explicitly by passing a "documentFormat" hint. - Renders to a permanent URL on object storage. Streaming clients receive the URL in the final artifact event. - Style guidance: customers can pin a template via skill manifest (cover sheet, header / footer, palette, font stack). ## How a request flows 1. The routing engine inspects the prompt for a document request shape (verb + a format keyword like "report", "spreadsheet", "deck"). 2. The orchestrator dispatches to the document mode pipeline. 3. A reasoning model drafts structured content (title, sections, tables, bullets). 4. A format-specific renderer produces the binary asset (React-PDF for PDF, native DOCX / XLSX / PPTX engines). 5. The artifact is uploaded to object storage and surfaced as a download link. ## API - Endpoint: POST /api/v1/completions with mode "document", or rely on the routing engine to promote a document-shaped prompt. - Body fields: prompt (required), format (one of pdf / docx / xlsx / pptx / csv; optional, auto-detected from prompt), template (optional skill template id), filename (optional). - Response: SSE stream emits a document tool run plus a final artifact event with the persistent URL. ## Skills Document templates can ship as skills. A skill manifest can declare a default template (cover page, header / footer, table styles) so an AI Worker dedicated to invoicing, reporting, or onboarding always produces a branded document. See https://hitheo.ai/llms/skills.txt. ## Related machine-readable files - https://hitheo.ai/llms.txt — full index of every Theo machine-readable file. - https://hitheo.ai/llms-full.txt — long-form knowledge bundle (single fetch). - https://hitheo.ai/humans.txt — team and open-source credits. - https://hitheo.ai/lawyers.txt — trademark notice and legal contact. - https://hitheo.ai/.well-known/security.txt — security disclosure contact.