What's new
- Company letterhead: set
letterhead: "Filename.docx"in frontmatter (aliases:sample,base_docx) - Accepts
.docxand.dotx(templates are converted in memory for python-docx) - Resolves the file from chat attachments first, then from
/mnt/uploadsand the Open WebUI upload dir - Matches uuid-prefixed upload names (
<uuid>_Filename.dotx) - Optional valve
letterhead_dirsto override the scan paths - Keeps header, footer and page margins; rewrites only the body
- Example + smoke tests in
examples/letterhead.mdandexamples/test_letterhead.py
Notes
- Do not set a programmatic
covertogether with a letterhead - Prefer calling
generate_documentwithletterheadset instead of reading the template viaexecute_code - Open WebUI RAG may dump
.dotxas binary text in context; putting the file under/mnt/uploadsis a reliable path
Install
Paste generate_documents.py into Workspace → Tools, or replace your existing copy with this release.