Create consolidated OKR metrics list for program teams
Gathers all of your OKR metric records from Airtable into one clean list of record IDs that reporting jobs can use.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-consolidated-okr-metrics-list-for-program-teams/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Product · Product operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-consolidated-okr-metrics-list-for-program-teams
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-consolidated-okr-metrics-list-for-program-teams/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-consolidated-okr-metrics-list-for-program-teams - 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 create-consolidated-okr-metrics-list-for-program-teams - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-consolidated-okr-metrics-list-for-program-teams
zaps/create-consolidated-okr-metrics-list-for-program-teams/
- 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 2 to fill in
- connections/airtable.tsThe
airtableaccount it uses - 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
- Start: no trigger. The Zap runs on demand, started by hand or called from another Zap that needs the list.
- Airtable reads every record from the OKR metrics table, across all pages of results.
- The Zap drops empty and duplicate record IDs, then returns one comma-separated string of the remaining IDs, with a count.
The Zap only reads from Airtable and never changes the table.
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 |
|---|---|
BASE_ID |
The Airtable base that holds the OKR metrics (its ID starts with app) |
TABLE_ID |
The table in that base that holds the OKR metrics (its ID starts with tbl) |
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-consolidated-okr-metrics-list-for-program-teams, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-consolidated-okr-metrics-list-for-program-teams, 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
airtableto the user's Airtable connection for the account that owns the OKR metrics base. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.connections/is a setting, not code: set the workflow's connection binding from it. This zap has notriggers/folder, so it has no trigger and is published as on-demand. - 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 the Airtable action's fields with the user's connection before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once with no input. Check that recordIds lists each metric record's ID once, separated by commas, and that count matches the number of IDs. Compare the count with the number of records in the table.
If run-status tools aren't available, check the result against the table in Airtable directly. The Zap doesn't write to Airtable, so there is no test data to clean up; if you add test records to the table, the user deletes them, not the agent.
Notes
- The record IDs come back as one comma-separated string. For very large tables, consider returning a list instead.
- A table with no records returns
skipped: truewith an empty list, so downstream steps can stop cleanly. - To return full records (metric name and objective fields) instead of IDs, or only metrics updated within a recent window, change the Airtable step's inputs and the returned value in
workflow.ts. - Don't commit a real base or table ID to a shared copy of this Zap.