Skip to content

Document Templates

Upload your organisation's own Word, Excel or PDF template; the agent fills it in and the document comes out exactly in the template's layout: letterhead, fonts, table borders, logos and page setup stay as they are, only the places that should change are filled. Ask "prepare the monthly market report with our template" and a file in the template's own format (.docx, .xlsx or .pdf) appears under the conversation.

This is a different path from Presentations and Reports: there, Whiskers builds the layout; here the layout is your file and is not touched.

How it works

Layout comes from the template, content from the model.

Each place to be filled in a template is called a slot (e.g. report_date, executive_summary, a competitors table). A published template becomes a tool: the tool's inputs are the template's slots, and the model only writes the values of those slots. The model can neither see nor change the rest of the template.

  • Everything outside a slot is preserved byte for byte. Filling touches only the part that holds the slot; no library that opens and re-saves the whole file is used (such libraries silently lose shapes and formatting).
  • A value is data, not code. In Excel a value starting with = does not become a formula — it is written as text; in Word no field code can be injected.
  • A value that does not fit is not cut. Text that would overflow a fixed-size box (a Word text box, a PDF form field, a fixed-height Excel cell) is rejected and the model is told the length of its own value; it shortens it and tries again. A silently clipped sentence is an incomplete document that looks correct.
  • Files are not converted on the server. A Word template comes back as Word, an Excel template as Excel. If you need PDF, upload a PDF form template.

Who does what

Role Does
Domain expert (domain_expert) Uploads, prepares, publishes and archives their own templates (Document templates in the console)
Agent developer Sees templates; sets a published template up as a tool and adds it to an agent
Tenant administrator Does all of the above; edits anyone's template and transfers ownership

Supported files

Format How a slot is defined
Word (.docx, .dotx) A {{name}} marker or a Word Content Control (tag = slot name). It can be a paragraph, part of a paragraph or a repeating table row; the data of embedded charts can be filled too
Excel (.xlsx, .xltx) A {{name}} marker or a name given to a single empty cell. An Excel Table with a single sample row is a repeating row; a bound chart grows with the new rows
PDF Existing form fields are slots automatically; without form fields you draw a box over an empty area

Legacy .doc/.xls, OpenDocument (.odt/.ods), macro-enabled files (.docm/.xlsm) and images are not accepted — the screen tells you which format to save the file in. A PowerPoint template is planned as a separate development.

An Excel name given to a filled cell is a constant (e.g. a VAT rate) and is not a slot; writing over it would break the template. The upload report shows what was not treated as a slot.

Upload: security scan

Every file is scanned on upload. If it contains any of the following, the file is rejected and the screen lists what was found and where in the file — nothing is stripped silently:

  • macros, field codes that can run commands, embedded objects (OLE)
  • external links and external data connections
  • tracked changes (accept or reject them first)
  • in PDFs: JavaScript, launch actions, embedded files, actions that submit the form elsewhere, XFA forms, encryption

Comments and personal document properties (author etc.) are removed automatically; the upload report shows what was done. The default file size limit is 20 MB.

Preparation: choosing slots

No {{name}} markers in your template? No problem — upload a sample document as it is and pick the slots on screen. The Preparation section of the template page is not a preview of the document but a selection list:

  • Word: each paragraph is a row. Paragraph (the whole paragraph is a slot), Select part (the part you highlight with the mouse, e.g. "Report date: 10 October 2026") or, inside a table, Repeat row (one column name per cell).
  • Excel: filled cells are listed; in most forms the value box is empty, so you pick it by sheet + address (e.g. B2).
  • PDF: the page is drawn on screen; drag to draw a box over the empty area to fill and make it multi-line if needed. A box with text underneath is rejected: the old text cannot be removed and would stay copyable under the new value. Draw the box over an empty area.

You give each slot a name (lowercase letters, digits, underscore). Then, in the slot list, write a label and a description: the description tells the model what to write in this slot ("the month the report covers, as 'October 2026'") and is the most important input for filling it correctly.

Suggest slots

For Word and Excel templates, Suggest slots asks an assistant model to find the changing places in the sample document (dates, names, amounts, the summary paragraph, data rows). Suggestions are a list; nothing you don't approve is written to the file. Usage is charged to the test quota.

Fill sample and download fills every slot with a sample value and downloads the file — before publishing you see in your own Word/Excel/PDF viewer that the slots are in the right place and how long text will look.

Publishing and versions

The uploaded file and the slot details are a draft. When you click Publish, a new version is created and tools bound to the template see the new slots immediately.

  • A template without slots cannot be published; an unchanged draft is not republished.
  • Every publish is a new version; Restore this version republishes an older one.
  • A run pins the version it starts with: even if a new version is published during the run, that run's document stays consistent.
  • An archived template is frozen and cannot be called as a tool. Tools bound to it are flagged as a critical finding on the Configuration health page of the admin panel.

Adding it to an agent

  1. In the admin panel, Tools → New tool, type Şablondan Belge (fill from template, document_template_fill).
  2. Pick a published template in the Template field. Each template is a separate tool; two templates mean two tools. The tool's description is the text the model uses to decide which template to use and when.
  3. Add the tool to the agent.

Document filling follows the same rules as presentation generation:

  • The tool works in an agent running on its own (REACT), in a crew worker or in a step of an approval flow.
  • The person running the agent needs the document generation permission (artifact:generate); the administrator decides which role gets it.
  • An agent using this tool cannot be exposed through the external API.
  • A run fills at most 5 documents (default).
  • An image slot only accepts an image generated in the same run (with the image generation tool); an external image address cannot be written.

The filled file is downloaded from the card under the conversation in the template's own format, and it also appears in a shared conversation. If the e-mail tool is enabled it can also be sent as an attachment.

Known limits

  • Excel tables do not shift rows. A repeating row can grow down to the first filled row or drawing below the table; this capacity shows up as a limit in the tool's input.
  • Length estimation is approximate in Word and Excel (calculated with the font's width table; with an unknown font it stays on the safe side); it is exact in a PDF field.
  • PDF viewers usually show filled fields as they are; some may redraw a field with their own font when you click into it.