Skip to main content
Automate batch statute lookups with a Google Sheet on one side and the Vaquill statutes search API on the other. This integration ships two pre-built templates - one for n8n (open-source, self-hostable) and one for Make.com (cloud, no-code) - that implement the same flow.
Source: github.com/Vaquill-AI/integrations/n8n.

What you get

  • n8n-workflow.json - drop into any n8n instance
  • make-blueprint.json - drop into any Make.com scenario
  • Trigger on new rows in a Google Sheet, write matching statute sections back automatically
  • Automatic retry on 429 / 5xx, graceful stop on 402 (insufficient credits)
  • Scope each query by jurisdiction (US Code, CFR, or any of the 50 state codes) by editing the request body
  • Page through results for broad queries

Use cases

  • Batch statute search - drop 50 queries into a sheet, get matching US Code, CFR, and state sections in minutes
  • Automated lookup pipelines - connect a form to Vaquill for instant statute citations
  • Regulatory monitoring - schedule periodic queries against the monthly-refreshed statute corpus
  • Due-diligence checklists - process compliance lookups in bulk
  • Client-intake triage - route incoming statute questions through Vaquill, then forward results to your team

Prerequisites

  1. Vaquill account - sign up at app.vaquill.ai
  2. Vaquill API key (vq_key_...) - generate in Settings > API Keys. See Authentication.
  3. Google account - for Google Sheets access
  4. n8n instance (cloud or self-hosted) or a Make.com account

Google Sheet setup

Create a Google Sheet with these column headers in row 1: Put your queries in column A. Leave B-E empty - the automation fills them in. Example rows:

Vaquill API reference

Request body:
Successful response (200):
Error responses: See the Errors reference for the full list.

Option 1: n8n

Quickstart

1

Import the workflow

  1. Open your n8n instance (cloud or self-hosted)
  2. Go to Workflows > Add Workflow
  3. Click the three-dot menu (top right) > Import from File
  4. Upload n8n-workflow.json from the repo
2

Add the Google Sheets credential

  1. Click the New Query Added node
  2. Under Credential to connect with, click Create New Credential
  3. Select Google Sheets OAuth2 API
  4. Complete the OAuth flow and save
3

Add the Vaquill API key credential

  1. Click the Vaquill Statutes Search node
  2. Under Credential to connect with, click Create New Credential
  3. Select Header Auth
  4. Set:
    • Name: Authorization
    • Value: Bearer vq_key_YOUR_ACTUAL_KEY
  5. Save
4

Point at your sheet

On the New Query Added, Write Answer to Sheet, and Write Error to Sheet nodes, select your spreadsheet and sheet (e.g. Sheet1) from the dropdowns.
5

Test and activate

  1. Add a test query to column A of your sheet
  2. Click Test Workflow
  3. Verify the matching sections appear in column B
  4. Toggle the workflow to Active for automatic processing

Workflow shape

Option 2: Make.com

Quickstart

1

Import the blueprint

  1. Log in to make.com
  2. Click Create a new scenario
  3. Click the three-dot menu > Import Blueprint
  4. Upload make-blueprint.json
  5. Click Save
2

Connect Google Sheets

  1. Click the first module (Read Questions)
  2. Click Add next to Connection
  3. Sign in with Google and grant permissions
  4. Select your spreadsheet and sheet, and set Table Contains Headers to Yes
3

Add your Vaquill API key

  1. Click the second module (Call Vaquill statutes search API)
  2. Find the Authorization header
  3. Replace YOUR_VAQUILL_API_KEY with your actual key:
4

Wire the writer

  1. Click the third module (Write Results Back)
  2. Verify the Google Sheets connection and select the same spreadsheet / sheet
  3. The response mapping is pre-configured:
    • Column B (results): joined section titles
    • Column C (citations): joined citations
    • Column D (jurisdiction): {{2.data.jurisdiction}}
    • Column E (status): processed
5

Test and schedule

  1. Click Run once to test
  2. Check the sheet for results
  3. Click Schedule to enable automatic runs (e.g. every 15 minutes)

Configuration

Scope by jurisdiction

Change the request body jurisdiction field to target a specific code: "us" covers federal sources (the US Code and the CFR), and any state code (e.g. "ca", "ny", "tx") restricts the search to that state’s statutes. The corpus spans all 50 states, the US Code (54,855 sections across 53 titles), and the CFR (218,932 sections across 49 titles).

Page through large result sets

For broad queries, raise the limit field and page through results:
Increase offset in steps of limit to fetch subsequent pages.

Rate-limit handling

  • n8n - the template retries automatically on 429 and 5xx (up to 2 retries with 5-second intervals)
  • Make.com - add a Sleep module (e.g. 2 seconds) between iterations for large batches, or enable the built-in error handler with retry

Extending the workflow

Both templates compose with the rest of n8n / Make.com:

Deployment

n8n self-hosted vs n8n Cloud

Either way, the same n8n-workflow.json import works.

Make.com tiers

Make.com is cloud-only. The free tier covers ~1,000 operations per month, which is enough for small batches. Paid plans scale up. Make.com counts each HTTP module call and each sheet row read / written, so a single Vaquill search typically consumes 3 operations (read row, call API, write row).
For large nightly batches, n8n is usually more economical because pricing is per workflow execution, not per node operation.

Troubleshooting

Statutes Search API

The endpoint these templates call.

Authentication

Generate and rotate API keys.

GitHub

Template JSON files and issue tracker.