Log model evaluation metrics to central results sheet
Each incoming prediction batch is scored against your targets file and its error metrics are added as a row in your central results sheet, ready for review.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/log-model-evaluation-metrics-to-central-results-sheet/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Engineering · Ml ops AI operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/log-model-evaluation-metrics-to-central-results-sheet
Set it up with the CLI
- Add it. Copies the folder into
zaps/log-model-evaluation-metrics-to-central-results-sheet/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/log-model-evaluation-metrics-to-central-results-sheet - 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 log-model-evaluation-metrics-to-central-results-sheet - Check it. Its recent runs, with status and errors.
npx zap-pack logs log-model-evaluation-metrics-to-central-results-sheet
zaps/log-model-evaluation-metrics-to-central-results-sheet/
- 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/google-drive.tsThe
google-driveaccount it uses - connections/google-sheets.tsThe
google-sheetsaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - 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 prediction batch arrives at a Webhooks by Zapier catch hook (
webhook,hook_v2). The evaluation service posts JSON to it. - Google Drive finds the targets file by exact name (first match) and downloads its contents.
- The workflow parses the targets, selects the entries for the batch's
workshop, pairs each prediction with its target byid, and computes:- total RMSE across all paired predictions;
- high-error RMSE across errors whose absolute value is at least 1.0 (0 if none). If no targets match the workshop, or no predictions pair with a target, the run stops and writes nothing.
- Google Sheets appends one new row with the batch ID, submission time, workshop, team, both RMSE values and the profit estimate.
The Zap only appends rows; it never changes rows already in the sheet.
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_TARGETS_FILE_NAME |
The exact name of the targets JSON file in Google Drive, looked up with the user's Google Drive connection |
REPLACE_SPREADSHEET_ID |
The central results sheet, looked up with the user's Google Sheets connection |
Review these defaults with the user:
WORKSHEET_IDinconfig.ts:"0"is the first tab.BATCH_ID_COLUMNtoPROFIT_ESTIMATE_COLUMNinconfig.ts: column keys such asCOL$A, not header names. Map them to the sheet's columns: batch ID, submitted at, workshop, team, total RMSE, high-error RMSE, profit estimate.HIGH_ERROR_THRESHOLDinworkflow.ts: the absolute error at which a prediction counts as high-error (1.0 by default).
Confirm two things before building:
- The targets file is JSON shaped
{ "<workshop>": [{ "id": ..., "actual": number }] }. If it differs, the lookup code must change first. - How the profit estimate is computed, if it should be more than a pass-through of the payload's
profit_estimate.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/log-model-evaluation-metrics-to-central-results-sheet, replace each REPLACE_… value as this file says, then run npx zap-pack deploy log-model-evaluation-metrics-to-central-results-sheet, 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
google-drive(the Drive account that holds the targets file; a work or test account works) andgoogle-sheets(the account that owns the results sheet) to the user's connections. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. 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. The trigger has no connection, so itsauthentication_idisnull. - 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 connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test (run_workflow_draft in Zapier MCP) with a sample batch whose workshop and prediction ids exist in the targets file:
{
"batch_id": "batch-001",
"submitted_at": "2026-10-29T10:15:00Z",
"workshop": "workshop-a",
"team": "ml-platform",
"predictions": [
{ "id": "r1", "predicted": 2.4 },
{ "id": "r2", "predicted": 5.1 }
],
"profit_estimate": 1200
}
Check that exactly one row was appended with the right batch ID and workshop, and that the RMSE values match a hand calculation from the targets file. If run-status tools aren't available, check the result in Google Sheets directly. Then publish, confirm the trigger is active, and give the user the webhook URL to point the evaluation service at. Ask the user to delete the test row; the agent doesn't delete test data.
Notes
- Skipped batches write nothing and notify no one. A failed Drive or Sheets call stops the run with an error.
- Google Sheets may show the timestamp in the sheet's own format and time zone.
- Keep the webhook URL private: anyone with it can write rows to the sheet.
- To customize: add a Slack or email step that alerts when the high-error RMSE exceeds a threshold, or write the paired predictions and targets to a second worksheet for post-mortem analysis.