Gavel (formerly Documate)

Gavel, formerly Documate

Purpose: Link LegalServer Cases to Gavel to generate specific documents from LegalServer data. 

Cost: $2500 one time pus $50 per month.  

Gavel.io (formerly Documate) serves as a no-code document automation platform. Your organization will need to have a Documate account and workflows configured in Gavel. We suggest telling your Gavel sales person you will be integrating with LegalServer. You will need a level of account that includes their APIs.

While Documate has rebranded as Gavel and the integration itself has been updated, the screenshots below do not yet reflect the new name. 

End User Experience

There is a listview on a Case Profile available with the integration named Gavel Templates. This acts much like the Recommended Documents Listview with the ability to filter based on Legal Problem Code, Special Legal Problem Code, County, and Language. 

Clicking on the Document title opens a popup with a link to kick off the workflow in a new tab. 

Alternatively, there is a Gavel Packet Generation block that is available when you want to trigger a specific Gavel workflow at a given time. 

Admin Configuration

Gavel Settings

Under Admin -> Gavel Settings there is a place to indicate your Gavel subdomain and an API key. Gavel has directions for how to generate an API Key here although we'd recommend naming it something more like "LegalServer Integration Key". 

There also is a listview of all the workflows available inGavel.

Clicking on the icon in the top right will refetch the latest workflows from Gavel.

Gavel provides a list of the available workflows as just the interview file names without a unique identifier. This means if you rename a workflow in Gavel, LegalServer will treat it like a brand new Workflow. There is no way for LegalServer to maintain a link between the Workflow's current name and prior name.

Clicking the title of the Workflow brings up a Gavel profile.

Note that the last field is a list of all the variables in Gavel followed by the field they are mapped to from LegalServer. If you go to Admin -> Edit this Document, you'll be able to modify what is available here and map specific fields to Gavel variables. Most of these fields are similar to the Document Template Profile, however the Review Answers field is unique to Gavel. This field is deprecated in their API, so feel free to ignore it in the LegalServer UI.

The mapping of individual fields occurs on a question by question basis. When you select the question (Gavel variable), the source fields will be limited based on the question type. For example, a number field in Gavel can be mapped to a number field from LegalServer, but not a text field from LegalServer. You also have the option of selecting Literal values which are typed in specifically. A Multi-Select in LegalServer can only be mapped to a Checkboxes in Gavel. If you are mapping a literal value to Checkboxes in Gavel, LegalServer will interpret commas as an indication of separate items to pass from LegalServer to Gavel.

Note that some custom fields are available to be mapped to Gavel. Custom fields on the Matter, Event, Litigation, Service, Charge, and Task tables are available. Custom fields on the User and Person tables are not available.

You do not have to map every required variable in your Gavel workflow. If you do not map them all, you will get a validation warning that some required variables were not mapped. If you then scroll below the mapping, there is a checkbox to select to override the validation. 

CSV files included in the Gavel Workflow need to be set to public for use in the integration.


Repeating Variables

Repeating items can be mapped to subtables within LegalServer. Several subtables have been made available for Gavel. The data is typically fairly raw in the options available and it may call for some additional testing to be sure you are pulling the correct variable. 

Existing subtables available include: 

  • Adverse Party
  • Arrests
  • Assets
  • Assignment
  • Charges
  • Custodial Status
  • Events
  • Expenses
  • Family
  • Income
  • Litigation
  • Notes
  • Sentences
  • Services/Phases
  • Tasks/Deadlines

Once you've selected a subtable to send, there is no ability to filter that subtable. You can do that in Gavel by filtering for specific data in the repeating item. See Gavel's Help site for examples.

Repeating Items within Repeating Items are not directly mappable from LegalServer. They may show as items to be available to map in the inner lookup, but they should not be mapped in LegalServer.

Gavel Document Generation Block

This block allows you to select just one given Gavel Workflow to be generated. When this is triggered, you currently get redirected immediately to the Gavel Generation static form to trigger the given workflow on the case. 

Getting Documents Back via Email

This is a less secure method to get your document back, but will save the documents to Dropbox or SharePoint if those integrations are enabled. To have the documents automatically returned to LegalServer, create an email variable in your Gavel workflow of "legalserver_case_email". Then when you are configuring the Output Documents in Gavel select "Send finalized documents to email address:" and pick that variable.

On the LegalServer side, when you go to map the "legalserver_case_email" variable, pick the "Case Email" field.


Getting Documents back via Webhook

This is a more secure method of getting any documents back from Gavel. To set this up, in your Gavel workflow, create a text variable of "legalserver_matter_uuid". Then when you are configuring your variables in LegalServer, map it to "unique_id" field from LegalServer. This will be used by the webhook to send the documents to the correct LegalServer case. You can also specify a text variable of "legalserver_subfolder" that will be the subfolder in LegalServer where the documents are saved.  The webhook is documented in our API Documentation. As of August 2023, the webhook as an optional parameter that will save the documents to the case's SharePoint case folder if one exists.

In Gavel, you'll configure your workflow and go into Settings and then Integrations. Within the Integrations, select New Webhook and set the following values:

  • Name - Something memorable for you.
  • Webhook URL - https://YOURSITEHERE.legalserver.org/api/v1/documents/documate
  • Include Documents - Say yes.
  • Configure Headers - Say yes.
    • Name - "Authorization"
    • Value - "Bearer TOKEN_GOES_HERE"
  • Then click the Plus icon next to that row to save that header. 
  • Then click Save. 

You can get a token by using the Manage Personal Access Tokens block on an API user.

Gavel returns the files in a zip file named files.zip . LegalServer will save that file to a subfolder on the case called "Gavel Zip Files". LegalServer will automatically unzip that fileand save the files to the requested subfolder (or the root folder if no subfolder is specified by "legalserver_subfolder"). A case note is then created with those files linked to it and the Note Type of "GeneratedDocuments". 

Gavel Log

For troubleshooting purposes, there is a Gavel API Log where you can review the API calls made to Gavel and the responses. This is available at Admin -> Gavel API Log. It is not visible unless the user has the Gavel - API Log user role permission.

Gavel Permissions

There are three user role permissions created for the Gavel integration:

  • Gavel - API Log - This exposes the Gavel API log for review.
  • Edit Gavel Templates - for any user role that should be able to configure and map the Document Templates. 
  • Generate Gavel Templates - for any user role that should be able generate documents from a case.

Known Issues/Future Fixes

  • LS-91068 - warnings when the field type is changed in Gavel and the LS field type no longer matches
  • LS-97315 - Gavel Packet Generation Block fills the whole page with the popup. 
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us