Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Track Japanese law amendments with e-Gov API, Claude, Google Sheets and Slack
Checks watched laws daily through the e-Gov Law API. When a new version appears, it diffs the articles, has Claude explain the changes, verifies quotes in code, and logs results to Google Sheets and Slack.
What it does
## Law amendment watch (Japan, e-Gov Law API) Every day the workflow checks the laws on your list. When a new version exists, code compares the old and the new text article by article, Claude explains each changed article in plain words, and code checks the explanation (the quotes must be in the old or new text, the numbers must be in the article). The result goes to Google Sheets and Slack. No API key is needed for the law data. ### How it works 1. The Watch tab remembers the newest version of each law. The first run only records it ("now watching"). 2. A new version: both texts are fetched, and code lists added, removed and changed articles with the changed words (before → after). 3. Claude explains up to 10 articles. An explanation that fails a check is marked Needs review; the code diff is always shown. 4. Slack gets one message per law. Not legal advice: read the articles. ### Setup 1. Blank Google Sheet: paste its ID in Spreadsheet ID, run Run once (adds the Watch and Changes tabs), then select the sheet in the Google Sheets nodes. 2. Credentials: Google Sheets, Anthropic, Slack (pick a channel). 3. In Config, list law IDs (the code in the URL laws.e-gov.go.jp/law/...). Run Demo to see the latest amendment of each law, then publish. ### Customization Set the explanation language, the number of articles and the text length in Config.
The steps
- Every day
- Demo: show the latest amendment
- Demo mode
- Config
- Read Watch tab
- Split laws
- Get revisions
- Decide
- Two versions to compare?
- Get old text
- Get new text
- Diff articles
- AI: Explain the changes
- Check explanation
25 steps in total.
Similar automations
Calendar & SchedulingTrack Japanese business-day contract deadlines with Claude, Sheets and Slack18 stepsEmail AutomationChase UK late invoice payments with Data Tables, GOV.UK and SMTP email21 stepsContent Writing & GenerationDraft Japanese PR TIMES press releases from form entries with OpenAI GPT-57 stepsRAG & Knowledge BasesSummarize Case Law with OpenAI RAG and Supabase10 steps