Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Every day
  2. Demo: show the latest amendment
  3. Demo mode
  4. Config
  5. Read Watch tab
  6. Split laws
  7. Get revisions
  8. Decide
  9. Two versions to compare?
  10. Get old text
  11. Get new text
  12. Diff articles
  13. AI: Explain the changes
  14. Check explanation

25 steps in total.

Similar automations