Your agent can describe a document but not produce a real .docx; this builds one from structured blocks.
Generate Microsoft Word (.docx) documents from a structured block list, headings, paragraphs (with bold/italic runs), bullets, numbered lists, tables, and page breaks. Returns a short-lived download URL.
Generate a.docx file from a block list. Returns a pre-signed download URL.
Document title. Becomes the docx core property and is rendered as a level-0 heading.
Ordered list of content blocks. Supported types: heading, paragraph, bullets, numbered, table, page_break.
Filename for the generated docx (shown in download URL and storage key).
Seconds the download URL stays valid (default 24h, max 7d).
curl -X POST "https://skill.askfaro.com/skills/document-generator/run" \
-H "Authorization: Bearer faro_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"intent": {
"prompt": "Generate a Word document with a title and three sections summarising my product launch plan"
}
}'askfaro describe document-generator/generate
Install pip install askfaro-cli, then askfaro auth login.
Generate Microsoft Word (.docx) documents programmatically from a structured JSON description. Returns a pre-signed download URL valid for up to 24 hours.
| Name | Type | Default | Description |
|---|---|---|---|
title | string | none | Optional document title (also rendered as a level-0 heading). |
filename | string | document.docx | Filename in the download URL. |
blocks | array | required | Ordered content blocks. See block types below. |
expires_in | integer | 3600 | Download URL TTL in seconds (60 – 86400). |
{ "type": "heading", "text": "Section title", "level": 1 } // level 1-9
{ "type": "paragraph", "text": "plain text" }
{ "type": "paragraph", "runs": [
{ "text": "Key metrics: ", "bold": true },
{ "text": "ARR $24M" }
] }
{ "type": "bullets", "items": ["first", "second"] }
{ "type": "numbered", "items": ["one", "two"] }
{ "type": "table", "header": true, "rows": [["Col A","Col B"], ["r1a","r1b"]] }
{ "type": "page_break" }
Up to 1000 blocks per document.
{
"download_url": "https://…/output/…/<file>.docx",
"key": "output/…",
"size_bytes": 37107,
"mime": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"expires_at": "2026-05-15T12:00:00Z"
}
1 credit per document generated. Flat rate, cost is independent of block count, table size, or document length.