Update strategic KR when tactical KR scope changes
When a tactical KR's scope changes, its linked strategic KR is flagged in Notion, so leadership and ops work from the same priorities.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-strategic-kr-when-tactical-kr-scope-changes/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Executives · Strategy planning
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-strategic-kr-when-tactical-kr-scope-changes
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-strategic-kr-when-tactical-kr-scope-changes/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-strategic-kr-when-tactical-kr-scope-changes - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy update-strategic-kr-when-tactical-kr-scope-changes - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-strategic-kr-when-tactical-kr-scope-changes
zaps/update-strategic-kr-when-tactical-kr-scope-changes/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 5 to fill in
- connections/notion.tsThe
notionaccount it uses - triggers/updated-data-source-item-properties.tsWhat starts it:
notionupdated_data_source_item_properties - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a Notion data source item's properties are updated in the tactical KR database (
notion,updated_data_source_item_properties). - Filter: the run continues only if the tactical KR has a source reference and its status is "In progress".
- Notion finds the strategic KR in the strategic database whose source reference matches. If there is none, the run stops and creates nothing.
- Filter: if the strategic KR's scope-change checkbox is already true, the run stops.
- Notion sets the strategic KR's scope-change checkbox to true.
The Zap never creates a strategic KR, and a tactical KR with no matching strategic KR is skipped.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_TACTICAL_DATA_SOURCE_ID |
The data source of the Tactical KRs database, the one the trigger watches |
REPLACE_STRATEGIC_DATA_SOURCE_ID |
The data source of the Strategic KRs database |
REPLACE_SOURCE_REFERENCE_PROPERTY |
The tactical KR property that links it to its strategic KR. Use the same property name on both databases, or change the search step |
REPLACE_STATUS_PROPERTY |
The tactical KR status property |
REPLACE_SCOPE_CHANGE_PROPERTY |
The strategic KR checkbox that flags a scope change |
Also review the default with them: IN_PROGRESS_STATUS ("In progress"), the status value that counts as in progress. Change it if their database uses another name.
Also ask: which tactical KR properties should trigger the update? The trigger does not filter by property yet, so a change to any property runs the workflow.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-strategic-kr-when-tactical-kr-scope-changes, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-strategic-kr-when-tactical-kr-scope-changes, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
notionto the user's Notion connection, for the account that owns both KR databases. Both databases must be shared with that Notion integration. No other apps need a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/updated-data-source-item-properties.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, and point the trigger at the data source inTACTICAL_DATA_SOURCE_ID. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's Notion connection and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Use a Notion test workspace or a test connection, with records named "[install-test] …". Never run this against the user's real KR databases, since the test changes a record. Run it once as a draft test run, with the sample below, using the names of their own properties as keys:
{
"properties": {
"Source reference": "[install-test] KR-001",
"Status": "In progress",
"Scope changed": true
}
}
Check that the matching strategic record's scope-change checkbox is now true, and that no other strategic record changed. If run-status tools aren't available, check the strategic record in Notion directly. Then publish, confirm the trigger is active, and leave the workflow for the user to keep or disable. The user deletes the test records, not the agent.
Notes
- Until every
REPLACE_…value is filled in, the workflow cannot run. - The spec's "map source fields to strategic fields" is reduced to the one scope-change flag. The spec defines no other field to map.
- To extend it: post the update to an ops channel after the last step, or append an audit comment on the strategic record that summarizes the change.