What you get
n8n-workflow.json: import into any n8n instancemake-blueprint.json: import into any Make.com scenario- A trigger on new rows in a Google Sheet, with matching sections written back
- Retry on 429 and 5xx, and a stop on 402 (insufficient credits)
- Per-query scoping by corpus or state through the request body
- Paging for broad queries
Prerequisites
- A Vaquill AI account. Sign up at app.vaquill.ai.
- A Vaquill API key (
vq_key_...). Generate one in Settings > API Keys. See Authentication. - A Google account, for Google Sheets access.
- An n8n instance (cloud or self-hosted) or a Make.com account.
Google Sheet setup
Create a Google Sheet with the headersquery, results, citations, jurisdiction and status in columns A to E of row 1.
Put your queries in column A. Leave B to E empty. The automation fills them in.
Example rows:
Vaquill API reference
The endpoint rejects unknown fields such as
jurisdiction.
A trimmed successful response (200):
Quickstart
- n8n
- Make.com
1
Import the workflow
- Open your n8n instance (cloud or self-hosted)
- Go to Workflows > Add Workflow
- Click the three-dot menu (top right) > Import from File
- Upload
n8n-workflow.jsonfrom the repo
2
Add the Google Sheets credential
- Click the New Query Added node
- Under Credential to connect with, click Create New Credential
- Select Google Sheets OAuth2 API
- Complete the OAuth flow and save
3
Add the Vaquill API key credential
- Click the Vaquill Statutes Search node
- Under Credential to connect with, click Create New Credential
- Select Header Auth
- Set:
- Name:
Authorization - Value:
Bearer vq_key_YOUR_ACTUAL_KEY
- Name:
- 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 (for example
Sheet1).5
Test and activate
- Add a test query to column A of your sheet
- Click Test Workflow
- Verify the matching sections appear in column B
- Toggle the workflow to Active for automatic processing
Configuration
Scope by jurisdiction
SetcorpusType to "USC" or "CFR" for federal sources. Set state (for example "ca", "ny", "tx") to restrict the search to one state. See API coverage for what is held.
Page through large result sets
For broad queries, raise thelimit field and page through results:
offset in steps of limit to fetch subsequent pages.
Rate-limit handling
- n8n: the template retries on 429 and 5xx, up to 2 times at 5-second intervals.
- Make.com: for large batches, add a Sleep module (for example 2 seconds) between iterations, or enable the error handler with retry.
Extending the workflow
Both templates can feed other nodes, such as Slack, email, Airtable or a webhook to your app.Deployment
The same
n8n-workflow.json imports into both n8n options.
Troubleshooting
Related
Statutes Search API
The endpoint these templates call.
Authentication
Generate and rotate API keys.
GitHub
Template JSON files and issue tracker.

