Track Japanese law amendments with the e-Gov Law API, Claude and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs on a schedule (every day at 08:00) (plus 2 other triggers). Along the way it connects Google Sheets, Anthropic and Slack.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 2 other triggers).
- Config (Edit Fields (Set)): sets 4 fields: watched_laws, output_language, max_articles…
- Demo mode (Edit Fields (Set)): sets 1 field: demo
- Spreadsheet ID (Edit Fields (Set)): sets 1 field: spreadsheet_id
- Read Watch tab (Google Sheets): read (sheet)
- Add the Watch and Changes tabs (HTTP Request): calls an HTTP API (POST)
- Split laws (Code): runs custom JavaScript code
- Write the header rows (HTTP Request): calls an HTTP API (POST)
- Get revisions (HTTP Request): calls an HTTP API (GET)
- Decide (Code): runs custom JavaScript code
- Two versions to compare? (If): checks a condition and branches into true / false
…plus 12 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Anthropic + Google Sheets templates (261) · Other Anthropic + Slack templates (204)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Anthropic
@n8n/n8n-nodes-langchain.anthropic - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow checks selected Japanese laws daily via the e-Gov Law API, compares the latest revision to the last watched revision, uses Anthropic Claude to explain article-level changes, logs results to Google Sheets, and posts a per-law…