Workflows that contain Clio Contact or Clio Matter questions are only accessible by Builder users who are logged into your Gavel subdomain. End-users cannot access these workflows directly, which protects the sensitive data stored in Clio.
Link your Clio account to Gavel
Go to the Integrations page
From your Gavel dashboard, click Integrations in the left navigation sidebar.
Select your Clio server region (if applicable)
If your Clio account is hosted in Canada, the European Union, or Australia, choose the appropriate region from the dropdown. Leave the dropdown blank if you are on the default US servers.
Clio connections are global for your Gavel instance. Linking Clio from one Builder seat also links all other Builder seats on the same account. All new contacts, matters, and custom fields sync automatically.
Add Clio Contact and Clio Matter questions
Once your accounts are linked, you can add Clio data to any workflow by inserting a Clio Contact or Clio Matter question type. You only need one such question per type to access all fields stored in that contact or matter. When a user runs the workflow, the Clio question appears as a searchable list of all contact or matter records from Clio. The user selects the relevant record, and Gavel automatically maps all of its fields to your document template.Tag your documents with Clio field syntax
Clio fields appear in the Word add-in and use the following syntax structure:ClioContact, a contact’s first name would be referenced as:
Common Clio field sets
| Field set | Description |
|---|---|
client | Standard contact fields (name, address, phone, email) |
date | Date fields on the contact or matter |
custom_fields | Any custom fields you have configured in Clio |
Using Clio variables in document templates
Insert Clio variable syntax using double curly braces in your document template:Advanced Clio variable syntax
Clio passes all data to Gavel as text strings, not typed values. Use the following syntax patterns to perform calculations, format dates, and add conditional logic.Currency formatting
Currency formatting
Wrap the Clio field in the
currency() function:Calculations with numeric fields
Calculations with numeric fields
Clio numeric fields arrive as strings. Cast them to integers with This example divides the salary field by 40.
|int before performing math:Date formatting
Date formatting
Clio date fields arrive as text strings. Use To write the date as “the 5th day of March, 2025”:
as_datetime() and strftime() to format them:Conditional logic based on a Clio field value
Conditional logic based on a Clio field value
Use standard Gavel
if logic with Clio field references:Conditional logic to check if a Clio field is not blank
Conditional logic to check if a Clio field is not blank
Send generated documents to a Clio matter
You can route your output documents directly into a Clio matter’s file using Clio’s maildrop address functionality.Create a Clio Matter variable in your workflow
Add a Clio Matter question to your workflow and note the variable name you assign to it (for example,
ClioMatter).Create an Invisible Logic page
Add an Invisible Logic page to your workflow. On this page, create a new Text variable.
Set the variable to the maildrop address
In the new Text variable’s value field, enter the following syntax using your Clio Matter variable name:This retrieves the unique maildrop email address for the selected Clio matter.
Configure the Output Documents tab
In your workflow’s Output Documents tab, click Send finalized documents to email address and select the Text variable you created in the previous step. You may also want to enable Include Docx format and Include File Uploads as Attachments.
