In this article:
What are Smart Templates?
Smart Templates turn standard Microsoft Word documents into intelligent templates that generate documents automatically. Users answer a guided Q&A, and Lawvu Draft fills in the document and updates the relevant content wherever it appears.
When creating a Smart Template, you define how the document should behave. This includes placeholders (cyan highlights indicating where custom input is needed), questions that build the guided Q&A, conditions that show or hide specific text, and predefined answers and logic that guide users and ensure consistent document generation.
Why use Smart Templates?
Smart Templates automate complex documents so users don’t need to manually edit placeholders or clauses.
Use Smart Templates when you want to:
Speed up repetitive drafting by generating documents from a few answers
Ensure consistency and reduce errors with logic-driven placeholders
Enable non-legal users to complete complex documents through a guided Q&A
Show or hide sections automatically based on answers
Avoid using them when:
The document is a one-off
The content is not standardised and changes each time.
How to create a Smart Template
Step 1: Highlight placeholders
Open your template in MS Word and highlight all placeholders, such as names, dates or numbers, in cyan. These highlights indicate where user input will later be required. While doing this, make sure to remove any square brackets or blobs that were used in older manual templates.
Example
A clause from a manual template can be converted into a Smart Template simply by highlighting the variable text in cyan.
Would be converted into:
Click here for more examples
Click here for more examples
In the following sentence, the order amount and the delivery date are placeholders, highlighted in cyan.
When you then create two questions corresponding to those placeholders, ClauseBuddy will automatically replace the cyan words with placeholders. When you click on the blue placeholder at the right, you will automatically select the corresponding question at the left.
When the answer to the question is filled, the placeholders will instead be replaced by the relevant value:
This seems simple as a start, but there several other possibilities you need to be aware of.
First, it is possible to put the placeholder within a conditional body. For example:
It is also possible to put the placeholder among mere body text, but you then need to be careful to prefix the answer with an @, otherwise it will not be recognised by ClauseBuddy.
When you use the answer inside the condition itself (i.e., before the colon), then no placeholder will be shown.
The reason is that, within a condition, you often deliberately want to check whether a certain question is answered or not, and then show different answers depending on the situation. For example:
Step 2: Insert conditions
Cyan highlights that end with a colon (:) are treated as conditions. Conditions control whether specific text is shown or hidden based on the user’s answers.
There are two ways to apply conditions:
2.1. Conditional words or phrases
Use a condition to control a specific part of a sentence which is highlighted in cyan.
For example, the phrase “and the employees of its associated entities” should only appear when the supplier is part of a group of companies. A condition such as “part of group” can be used to guard the visibility of this text.
Click here for more information on multiple conditions
Click here for more information on multiple conditions
You can "chain" multiple conditions by inserting the vertical pipe symbol. For example, instead of writing:
You can also write the following, which more clearly expresses the author's intent that one of several options will need to be chosen. Lawvu Draft will then insert the first text for which the associated condition is met:
If each of the conditions has a structure similar "x = y", you can also write this more concisely:
Another advantage of using the pipe operator is that you can easily insert a final "catch all" part — using else: — which will apply when none of the previous conditions was met.
2.2. Conditional paragraphs
You can also apply a condition to an entire paragraph by placing the condition at the beginning of the paragraph. In this case, the rest of the paragraph does not need to be highlighted.
In the following example, the entire paragraph will be dropped if no exclusivity applies:
If a paragraph is removed because a condition is not met, LawVu Draft will automatically update the numbering when the final DOCX or PDF is generated. For this to work correctly, you must use Microsoft Word’s automatic numbering. If numbers are typed manually, the numbering may become incorrect.
Click here for examples of placeholders and conditions
Click here for examples of placeholders and conditions
Show the name, address, city and country. Require each value to be filled in, otherwise a placeholder will be shown:
Alternatively, you can also highlight the entire line (instead of having separate highlights) and use @-prefixes:
Note that you must use @-prefixes, otherwise the "name", "address", "city" and "country" would be shown as-is, i.e. as literal text instead of having their answers filled in (or placeholders being shown).
Suppose the country is optional, because for example most of the companies will be situated in France by default. Accordingly, you want to show France when the country is not filled in:
This makes use of the { if : ... | else: ... } structure for conditions.
Suppose you want to only show the country when it's filled in (not replace it by some default value such as France), and not show a placeholder when the country is missing:
The @country:, @country could also have been wrapped in curly braces.
Suppose you want to show all the effectively filled in parts of an address, separated by spaces, and don't want to show placeholders:
If you want to separate them by comma's:
The @enumerate special function takes any number of parameters, and puts comma's in between the values that are filled in. If some answer is not folled in (as is the case with the city in the screenshot), it is simply skipped.
If you want to automatically use "and" before the penultimate item:
If you want to show a warning towards the end-user when the city would be missing:
The @cascade special function will use the first parameter that is not undefined. In the screenshot, the answer for city is missing, so the highlight special-function will instead be used.
If you want to show the name of the entity in uppercase, but invite the user to click on the name box when it's missing:
The @if special function has three parameters: the first parameter is the condition (in this case: "is the name filled in?"), the second parameter is what should be used when the condition is met, the third parameter is what shoud be used when the condition is not met.
Alternatively, you can also use an "if this - then that - else" structure between curly braces. Note that the @name does not need to be put inside a @placeholder, because the part after the else: is considered body text.
If you want to show the name of the entity in uppercase when it's filled in, and otherwise the text "MISSING NAME":
Step 3: Upload the template
Next, upload your Word document to LawVu Draft by going to the Templates section, and clicking on Upload active document.
Tip:
Use “Prepare Active Document with AI” to automatically detect placeholders in the active document. The AI scans the document and highlights identified placeholders in cyan so they can easily be converted into template fields.
After uploading your template, navigate to Settings and save the document to a relevant folder in LawVu Draft.
Step 4: Create questions
Once the document is uploaded and saved, you can start adding questions and cards. In LawVu Draft, questions are organized into sections called cards, and you can create as many as needed.
You can assign different colors to cards to visually distinguish types of questions (e.g., lighter colors for less important questions). If no color is chosen, the default template color (dark blue) will be used, which can be changed in Settings > Miscellaneous.
Cards can also be indented to indicate that they depend on a previous card (e.g., follow-up questions that appear only after a certain answer).
To create questions quickly, click Add questions from document in the template editor toolbar. LawVu Draft will automatically convert all cyan-highlighted text into questions. You can then adjust the question type if needed and add any follow-up logic between questions.
You can also upload a clean document (which you have not yet marked up in cyan) that you mark up directly in LawVu Draft by highlighting text in cyan as you go. Just make sure to update the underlying document each time and to save your changes so the new highlights are recognised.
Types of questions
Questions can have different data types:
Yes / No — for answers involving a "yes" or "no" (or true / false)
Number — for answers consisting of a whole number, such as 5,325 or 2022
Decimal number — for answers consisting of "floating point" (decimal) numbers, such as 3.14 or 3214.5
Currency — for answers consisting of a (decimal) number combined with some currency, such as 2512.34 EUR or 3256 USD
Date — for answers consisting of a specific date, such as 23th January 2023
Duration — for answers consisting of a period of time, expressed as days / weeks / months / quarters / years
Text — for answers that do not fit in any of the more specific categories listed above
Furthermore, LawVu Draft allows you to add comments or warnings to guide users or flag invalid answers. These are not questions, but they still appear inside a card.
Choosing the correct data type is important because certain actions (like automatic calculations) only work with specific types such as number, decimal, or currency. If a value is set as text, calculations cannot be performed.
Also some fields that look numeric should still use text:
Phone numbers → use text so users can include spaces or symbols (e.g. +32).
House numbers and zip codes → use text because some countries include letters.
Finally, yes/no questions can be customized with labels or predefined answers. For example:
True / False instead of Yes / No
“Insert a non-compete clause” / “Remove the non-compete clause” instead of Yes / No.
Optional: predefined answers
For some questions, you may want to offer predefined answers. For example, in an arbitration clause, you could predefine common venues such as Amsterdam, Paris, or New York.
You can add predefined answers by selecting a question and choosing how many predefined options you want to include.
Step 5: Configure questions
Each question has a range of configuration options, accessible by selecting the question and reviewing the panel on the right-hand side.
Click here for more information on the configuration settings
Click here for more information on the configuration settings
Identifier
Each question should always have an identifier, as this identifier links the question to the placeholder in the document.
The identifier should match the text highlighted in cyan in the document, or the text preceded by “@” when the placeholder is inserted directly in the text.
For example, if the placeholder is amount, the question should use the identifier “amount” so that ClauseBuddy can automatically insert the user’s answer in the correct place.
Free answers
When you insert predefined answers (discussed above), you can check this option to also allow the end-user to insert a custom, non-predefined answer. This option is not shown for yes/no questions.
Mandatory answer?
Mandatory questions are marked with a red dot next to the question title. If one or more mandatory questions remain unanswered, a red warning message will appear showing which questions still need to be completed.
Number of answers?
Text-based questions can be configured to allow multiple answers.This lets users select more than one predefined option (shown as square checkboxes instead of round buttons). If “Free answers” is enabled, users can also add their own answers. When linked to a placeholder, all selected answers will be inserted together.
Answer size
By default, the answers for text questions need to be inputted in a single-line box. When this setting is enabled, a large multi-line area box will be used instead.
Answer hint
An answer hint shows example text inside the answer box before the user types anything. This helps guide users on how to format their answer.
Help text
Help text provides extra explanations or warnings. It appears when the user hovers over the question mark icon, making it less intrusive than comments or warnings.
Special tags
Special tags are an advanced topic. They allow you to integrate Lawvu Draft templates with third party services, such as external contract archives.
Default predefined answers
You can mark one or more predefined answers as default, meaning they are preselected when the document starts.
Multiple defaults are useful when:
The question allows multiple answers, or
A default option might be disabled due to conditions.
Conditional questions
To reduce questionnaire fatigue, you can hide or show questions based on previous answers.
Cards, questions, and predefined answers can have conditions that determine when they appear. Conditions are configured by selecting the item and adjusting the settings on the right side. For example, if a contractual party can be both a natural person and a legal entity, then a question about the day of birth should be hidden when the contractual party was described as a legal entity. A question about the company registry number should instead be shown.
Click here for more information on conditional questions
Click here for more information on conditional questions
How conditions work
Conditions flow down:
If a card’s condition is not met, the entire card and all its questions are hidden.
If a question’s condition is not met, the question and its predefined answers are hidden.
If a question is hidden, its answer is ignored and will not fill the placeholder in the document.
Shared conditions
Shared conditions can be created in the Conditions menu and reused across the template. This avoids repeating complex logic and makes updates easier, since changes only need to be made in one place.
Shared conditions
Shared conditions can be configured through the "Conditions" menu item at the top of the template editor.
Types of conditions
Conditions are always configured in a similar way — whether you are dealing with a shared condition or the condition of a card, question or predefined answer. Essentially, you select the relevant item (card, question, predefined answer or shared item) and then configure the condition at the right side of the screen.
When you click on the green + Condition button, you get a dropdown menu from which you can choose one of the following condition types:
Answer to question. Make a condition that is dependent on the answer to a certain question.
Question enabled? Make a condition that depends on whether a certain question is enabled (which will be the case when that question and card either do not have a condition attached to them, or those conditions are indeed met).
Card enabled? Make a condition that depends on whether a certain card is enabled (which will be the case when that card either does not have a condition attached to it, or such conditions is indeed met).
Mandatory questions?. Make a condition that depends on whether all mandatory questions are (not) met.
Shared condition. Make a condition that depends on the outcome of another, shared condition. Because that shared condition can on its turn depend on another shared condition, which can depend on yet another shared condition, and so on, you can create incredibly powerful conditions.
Sub-conditions
Each condition can host any number of sub-conditions, which can on their turn refer to their own sub-sub-conditions — any level deep.
You can create a sub-condition by clicking on the green + Subgroup of conditions button.
The interact between the sub-conditions is configured through the surrounding dropdown-list, that can be set to all, any or none.
Copying & pasting conditions
Conditions can be copied and pasted between cards, questions, or answers to save time.
Step 6: Test your Smart Template
At any time, you can click Test to interactively try out your Smart Template. This allows you to verify that all questions, conditions, and logic behave as expected before sharing the template.
Step 7: Save and share
Once you’re done, choose a filename and storage folder and save your template. Click Share in the Settings panel or select the template from the templates overview.
Recipients only need the shared link to complete the questionnaire and generate their document - no Lawvu Draft account required.
Click here for more information on sharing smart templates
Click here for more information on sharing smart templates
When you share a template or document, you generate a unique hyperlink that will lead to your template, or to a specific document (e.g. https://app.clausebase.com/ml/qfVnNApNnjdR7v2C).
You can then send or publish this hyperlink any way you want — e.g., send it by email to a client, send it to your family members through WhatsApp, publish it on your intranet towards colleagues, or even publish it on your website. Other users can simply click on it (or copy/paste it in their browser) and fill out the template or change the document you shared; no separate username or password is required.
The downside of this anonymous approach is, of course, that once you share, you have no control over where the hyperlink will ultimately end up.
While you can somewhat mitigate this risk by setting an expiry date, it is probably not a good idea to share sensitive templates in this way. (A better alternative is to create named accounts with a separate security code for such sensitive material.)
Prerequisites to share documents & templates
A template must be saved in one of your folders before you can share it.
Your administrator must have enabled the "Share templates & documents" right in your user settings (see the user management page).
At least one anonymous account must be present in your customer account.
How to initiate sharing
You can initiate the sharing by either going to Settings > Share ...
... or by visiting the Templates Overview panel and clicking on an existing template and going to the Share submenu item:
Configuration
1. Allow export to
This setting allows you to specify whether the recipient is allowed to export to PDF and/or to a DOCX file.
You may, for example, deliberately disallow exporting a template to DOCX when you want to avoid that the sharing-link's recipient would be able to alter the resulting document in Microsoft Word.
2. Expiry date
Sharing-links are anonymous and can be used by anyone, so you can never be sure whether a recipient of your link will on his/her turn send the link to someone else. It is therefore probably a good idea to set an expiry date on your link. The default setting is an expiry date of one month.
3. Internal note
Lawvu Draft tracks the usage of your sharing-links. The usage reports (available at request) will show you the internal note you specified (e.g., "NDA for accounting department" vs. a different link with "NDA for sales"), so you can figure out who used your sharing-links.
4. Account to use
When multiple anonymous accounts exist in your customer account, you can specify which account should be used for the sharing-link you are about to create.
For most Lawvu Draft users, this setting can be ignored (most will probably not have multiple anonymous accounts anyway, so the setting would not even be shown). However, it does allow for interesting scenarios for advanced users, as they can for example create accounts with different settings (language, access rights, different connections to third party services, etc.).
Grammar sheet
When automating documents in LawVu Draft, there are many options to take into account. To prevent the options from becoming overwhelming, we’ve created a handy one-pager that serves as a guide to help you construct and amend all the content in your Smart Templates.
Keep this one-pager nearby - it's your trusty (and totally legitimate) cheat sheet!
Download it here:






























