create_template_from_docx
Fetch a DOCX file from a URL, extract {{placeholder}} variables, and save as a reusable template for document generation.
Instructions
Create a reusable document template by providing a URL to an existing DOCX file. The server fetches the file, extracts all {{placeholder}} variables, and saves it as a template. Returns a templateId ready for use with generate_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docxUrl | Yes | Public URL to a DOCX file containing {{placeholder}} variables (e.g. a file on Google Drive, Dropbox, or any direct download link) | |
| templateName | No | Name for the saved template. Defaults to the filename. | |
| agentEmail | No | Agent email for tracking purposes. | |
| customerName | No | Customer name for the generated organization. | |
| organizationName | No | Organization name for the generated account. |