Output file type
Word templates: choosing Word, PDF, or both
Word templates: choosing Word, PDF, or both
When your template is a
.docx file, Gavel can generate the output as a Word file, a PDF, or both. By default, both formats are produced.To change the file type:- Open your workflow and go to Document Templates.
- Click on the document’s name.
- Select your preferred output: Word only, PDF only, or Both.
Displaying documents to users
By default, Gavel shows all generated documents to the end user at the end of the questionnaire. You can change this behaviour in several ways.Hide documents from the end user
Hide documents from the end user
If you do not want the user who filled out the questionnaire to see the generated documents — for example, if you are generating documents for internal review only — you can suppress the document display screen.
- Open your workflow and go to Document Templates.
- Check Do not display finalized documents to workflow taker.
- Optionally check Send finalized documents to email address and enter the email address where the documents should go.
- Click Save.
Display documents conditionally
Display documents conditionally
You can use logic to control which documents generate and display based on questionnaire answers. This lets you attach multiple possible output documents to one workflow and generate only the ones relevant to each user’s situation.To set up conditional document generation:
- Open your workflow and go to Document Templates.
- Make sure all possible output documents are attached to the workflow. You can attach the same document to multiple workflows.
- Select Logic on the left side of the Document Templates tab.
- Set default documents that generate every time, and add rules that determine when each additional document generates.
Sharing documents via email
Automated emails at workflow completion
Automated emails at workflow completion
You can configure Gavel to automatically send the finished documents to an email address each time the workflow is run. You can specify a fixed email address or use the value stored in an email variable from the questionnaire (so the documents go directly to the person who filled out the form).A PDF copy of each document is included in the email by default. If your documents were generated from Word templates, you can also choose to include an editable
.docx version.Automated emails are sent from no-reply@mail.docautomation.org with the sender name Gavel by default. Scale customers can configure a custom sender using a Mailgun account — contact help@gavel.io with your Mailgun email, API key, and domain.You can customise the subject line and body of automated emails from the workflow settings.End-user self-serve email
End-user self-serve email
If documents are displayed to the end user at the end of the workflow, the generated documents page includes a section where the user can email themselves a copy. If the user is logged into a Gavel account, their email address populates the field automatically.
Generate Multiple (per repeating item)
If your workflow has a repeating item and you want to produce a separate copy of a document for each instance of that item — for example, one document per party or one document per asset — you must mark the template as Generate Multiple in the Document Templates tab. To enable Generate Multiple:- Open your workflow and go to Document Templates.
- Click on the document’s name.
- Enable the Generate Multiple option.
Quick reference: settings per document
| Setting | Where to find it | What it controls |
|---|---|---|
| Output file type | Click the document name in Document Templates | Word, PDF, or both for Word-based templates |
| Hide from end user | Document Templates tab, checkbox | Whether the questionnaire taker sees the finished documents |
| Send to email | Document Templates tab, email field | Auto-sends documents to a specified address on completion |
| Conditional generation | Document Templates > Logic | Which documents generate based on questionnaire answers |
| Generate Multiple | Click the document name in Document Templates | One document generated per repeating item instance |
