Templates
Upload a document
Most teams already have the document. It is a PDF somebody exported from a word processor three years ago, and it gets edited by hand every time it goes out. Uploading it is the shortest path into Weft: start from the real thing rather than rebuilding it from memory.
Before you start
- In the hosted app, asking Buddy and saving the result need the editor role or higher (roles run viewer, editor, admin, owner). Local mode — one person, documents kept in the browser — has no roles. There, uploading needs the designer to reach Weft's document-reading service, and building the template with Buddy also needs the AI service.
- Accepting a template made from your file replaces the document on the canvas. If you want to keep your latest changes to the document you have open, save it first.
What you can upload
PDF, Word (DOCX), PowerPoint (PPTX), Excel (XLSX), or an image (PNG or JPG). How closely the result matches your file depends on the kind:
- PDF — Weft reads the text and where it sits on the page, measures the page and its look, lifts out pictures and reads fillable form fields. Buddy also looks at the pages themselves.
- Image — Weft reads the text in it and lifts out pictures, and Buddy looks at the image to match its look.
- Word, PowerPoint, Excel — Weft reads the content and structure from the file. Buddy does not see how the file looks, so the result does not match its look, and pictures in the file are not carried over.
Upload it
- Press Generate in the app bar. In the Delegate to Buddy dialog, press Upload a document instead →. The Generate a template dialog opens.
- Drag your file onto Drop a document here, or click there to choose a file.
- Weft reads the file while the drop zone shows Reading your document…, then shows the file's name and the text it found.
- Press Generate template → to have Buddy build the template, or Draft without AI for a plain draft (below).
If Generate opens Generate a template straight away, the delegation dialog is turned off in your setup; start from step 2. When you start a blank document (⋯, then Blank template), Start from your document opens the same dialog.
If the file was hard to read, the dialog says "This document parsed poorly — results may be rough." You can still carry on.
For a PDF or an image, two optional controls appear once the file is read. They steer Buddy and are not used by Draft without AI:
- Styling instructions (optional) — the fonts, spacing or brand colour you want. Buddy is asked to follow them over the file's own look.
- Reference CSS (optional) — press Attach CSS… to give Buddy a style sheet, such as your website's, to take fonts, colours and sizes from.
The description box at the top of the dialog, Describe the template you want, is not used once a file is attached: it greys out and says so. Remove the document, beside that note, takes the file away and brings back what you typed. Add your logo (optional), under it, still applies: Weft puts the logo in the template's first empty picture and uses its main colour as the primary colour.
What Weft reads from your file
Several things are read from the file directly rather than left to Buddy to guess:
- Your values. The rows of each table, and values written as a label and a value such as "Invoice no: 1042", become the new template's sample data, so the preview shows your document's own figures. When there is no real table but the line items are lined up in columns on the page, Weft rebuilds the rows from where the text sits. If Weft finds no values, the template keeps the data you were previewing.
- Form fields. If your PDF has fillable fields, their names and filled-in values are added to that sample data for Buddy to use. Draft without AI leaves them out, since its plain draft does not use them.
- Pictures. In a PDF or an image, pictures such as logos are cut out and placed in the matching picture spots of the new template. A picture Weft cannot match leaves an empty picture for you to fill.
- Page setup. From a PDF, the page size, orientation and margins are measured. When the template has a cover page or back cover whose margins differ on your first or last page, those are matched too.
- Look. From a PDF, Weft measures the colours, fonts and text sizes the pages actually use. Each font becomes the same font if Weft has it built in, or otherwise a built-in font of the same style: serif, sans-serif or monospace.
Buddy's part is the judgment: what is a heading, what belongs together, which value goes where and, for a PDF or an image, how to match the layout. It is given the values above and asked to bind to them.
Draft without AI
Draft without AI, beside Generate template →, builds the template from what Weft read, without Buddy:
- the headings, paragraphs, lists and tables in the order they appear in your file, with each table bound to its rows;
- the pictures, placed as above;
- from a PDF, the most-used font and text size, the main colour as the primary colour, and the page setup. A colour too pale to read as heading text on white, such as the light grey of table lines, is passed over for the next main colour.
It makes no design choices: no bold or italic within a line, no coloured bands, no side-by-side columns. Only tables are bound; other values arrive as plain text.
It takes a moment, asks Buddy for nothing, and so works when Buddy is unavailable. You can hand the result to Buddy afterwards: draft now, style later is a normal way to work.
Review the result
In the hosted app, Generate template → closes the dialog and the template takes shape on the canvas under Buddy is drafting…. In local mode the dialog stays open, with Generating… on its button, until the template is ready. Stop, beside Generate or on the Buddy is drafting… bar, or Cancel in the dialog, gives up and leaves your document unchanged.
Either way, the result arrives as a proposal: the canvas shows it read-only under a review bar headed Proposed template, which almost always reads "Preview only — your document is untouched until you accept."
- Accept all replaces the document on the canvas with the new template, in one step. For a "Preview only" proposal it also clears the undo history, so Undo cannot bring back what you had. To go back, open the activity feed from the status chip beside Generate and press Rewind on the row "Before generating" ("Before drafting" for a draft made without AI).
- Discard leaves your document as it was.
Taken whole, which is almost always how it arrives, the new template is unsaved; pressing Save creates it in your library. The full walk-through is in Review proposed changes.
Compare it with your original
After you accept a template made from a PDF or an image, a Review button appears beside Generate in the app bar. It opens Compare & align: your file on the left under Original, the new template on the right under Generated.
- Click a block on the Generated side, and the part of your file it came from is highlighted on the Original side.
- Click a place on the Original side, and Weft selects the block it became.
Use it to answer "did it get the totals block right?" without reading the whole document. To ask Buddy for corrections:
- Select a block on the Generated side and, in the Inspect tab, press + Add note.
- Describe the change and press Save. For a change to the whole document, write it in the document note box in the Notes tab instead.
- In the Notes tab, press Apply revisions →.
Buddy's answer comes back as a proposal headed Proposed revision, to accept or discard as above.
Review belongs to the document you made from the file: it is not saved with the template, and opening or starting another document removes it.
Expect to finish it by hand
An uploaded document lands close, not perfect. The parts that most often need a pass:
- Values outside tables. A single value in a paragraph — a reference number, a customer name — may need pointing at the right field yourself; in a draft made without AI it is always plain text. See Bind fields.
- Conditional content. Your original may have had an optional clause that only appears sometimes. That intent is not visible in a single exported copy; add a Conditional block where you need it.
- Long tables. A table's header row repeats on every page it continues onto. Check where the pages break in Preview your document, and see Control page breaks.
What gets stored
- In the hosted app, when Buddy builds a template from your file, Weft keeps a copy of the file, and what it read from it, in your workspace.
- After you accept a template made from a PDF or an image, Weft keeps the original with your work so that Review still works after you reload the page: in your workspace in the hosted app, in this browser in local mode. In the hosted app that work is yours alone: when you sign in, on this device or another, Weft brings back your own unfinished work, never a teammate's.
- If what comes back has changes you had not saved, a line at the end of the Document area, after the ⋯ button, says so, for example Unsaved work from yesterday brought back. To throw that work away, press Discard beside it and confirm: the stored copy is deleted and the editor shows the opening page again. The line goes by itself once you edit, save, open another document or ask Buddy for something.
What next
- Attach the remaining values → Bind fields
- Accept, reject and rewind → Review proposed changes
- Check pagination on the real thing → Preview your document
- Ask Buddy to restyle part of it → Ask Buddy to edit