← back to features
DOCS ap-docs LibreOffice Writer

Technical Documentation
Generator

API specs → AI formats → Export Word/PDF

① Paste API spec / outline ② Agent formats & structures ③ Export DOCX + PDF

// AGENT SESSION LOG

U

"Generate API reference documentation from our OpenAPI spec. Enterprise format, include code examples in Python and JS, add a changelog section, export as DOCX and PDF."

AP

// Parsing OpenAPI spec: 42 endpoints, 18 schemas

  • → Parse openapi.yaml — extract endpoints & schemas
  • → Apply enterprise .dotx template
  • → Generate endpoint sections with params + responses
  • → Insert Python + JS code examples per endpoint
  • → Auto-generate TOC + index + changelog
  • → Export DOCX + PDF
agentputer — ap-docs executor

$ ap-docs new --type api-reference --template enterprise-docs

✓ Document created from enterprise template (company branding applied)

$ ap-docs parse-openapi --input openapi.yaml --sections endpoints,schemas

✓ Parsed: 42 endpoints, 18 request/response schemas

$ ap-docs generate-sections --code-examples python,javascript

✓ 42 endpoint sections generated with dual-language code blocks

$ ap-docs add-section --type changelog --heading "Version History"

✓ Changelog section appended

$ ap-docs export --word --pdf --toc --index

✓ api-reference-v2.docx (84 pages) · api-reference-v2.pdf (84 pages)

elapsed: 54s
📝 api-reference-v2.docx 84 pages · enterprise format

// WHAT THIS SCENARIO SUPPORTS

📋

OpenAPI / Swagger import

Parse YAML or JSON spec files. Auto-generate endpoint sections, params, and response schemas.

💻

Multi-language code examples

Generate curl, Python, JavaScript, Go, Java examples for every endpoint automatically.

📑

Auto TOC + index

Table of contents and full-text index generated from document headings. Click-navigable in PDF.

🏢

Enterprise template support

Apply branded .dotx templates with company logo, headers, footers, and style guidelines.

📄

Multi-format output

Export as DOCX, PDF, ODT, or HTML. Preserve code blocks, tables, and formatting across formats.

🔄

Auto-update from spec changes

Re-run with an updated spec file — docs update incrementally, tracking changes.

// DEPLOY YOUR AGENT

Your API spec. Enterprise docs in under a minute.

No more copy-paste from Notion to Word. AgentPuter generates perfectly formatted documentation directly from your spec.