AGENT?GET /zapier/awesome-zaps/create-error-records-from-failed-automations-for-triage/SKILL.mdand deploy the files next to it
All zaps

Create error records from failed automations for triage

When one of your Zaps fails, a record is created in your Airtable triage table, or the existing record for that failure is updated, so someone can pick it up.

Install it

For your agent
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-error-records-from-failed-automations-for-triage/

Paste into Claude, ChatGPT, Cursor or any agent.

Apps it uses
Zapier ManagerAirtable
Author
Zapier
Source
zapier/awesome-zaps, folder zaps/create-error-records-from-failed-automations-for-triage

Set it up with the CLI

  1. Add it. Copies the folder into zaps/create-error-records-from-failed-automations-for-triage/. Outside a project, it makes one first.
    npx zap-pack add awesome-zaps/create-error-records-from-failed-automations-for-triage
  2. 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.
  3. 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-error-records-from-failed-automations-for-triage
  4. Check it. Its recent runs, with status and errors.
    npx zap-pack logs create-error-records-from-failed-automations-for-triage

zaps/create-error-records-from-failed-automations-for-triage/

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.

What it does

  1. Trigger: a Zap owned by the account errors (zapier-manager, zap_error_alert). The alert brings the Zap's title, its task history link, the app and the error message.
  2. Airtable searches the triage table for a record whose failure link matches the alert's task history link.
  3. If a match is found, Airtable updates that record: it sets the title, overwrites the notes with the latest error, and sets the status to the error state.
  4. If no match is found, Airtable creates a record with the title, failure link, error details and status.

Each distinct failure gets one record. A repeat of the same failure updates that record's notes instead of adding another.

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 triage table; find it with the user's Airtable connection
TABLE_NAME The table in that base where error records are kept; find it with the user's Airtable connection

Also review the defaults with them:

  • The field names in config.ts (FAILURE_LINK_FIELD, TITLE_FIELD, ERROR_DETAILS_FIELD, NOTES_FIELD, STATUS_FIELD). They must match the table's field names exactly.
  • ERROR_STATUS, the status value that means a failure needs triage. Default: "Error".

Build it

If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-error-records-from-failed-automations-for-triage, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-error-records-from-failed-automations-for-triage, 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.

  1. Accounts: bind airtable to the user's Airtable connection for the account that owns the triage base. zapier-manager is the trigger's app; the trigger needs no connection, so its authentication_id is null.
  2. Source: publish workflow.ts and config.ts, with each REPLACE_… replaced by the user's answer. triggers/zap-error-alert.ts and connections/ 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's selected_api, call search_triggers with that slug, find the row whose key is the trigger's event, and use <app_key>@<app_version> from it.
  3. Build guide: load Zapier's build guide with get_zapier_skill("zapier:build-workflows") and follow it to create, test and publish the workflow.
  4. 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.ts that doesn't match.

Test it

Run this sample as a draft test before publishing, against an Airtable base and table that are safe to write to, such as a test base:

{
  "title": "My Awesome Zap",
  "task_history_link": "https://zapier.com/app/history?root_id=1&source=zapier_manager",
  "zap_link": "https://zapier.com/app/editor/1?source=zapier_manager",
  "service": "Code by Zapier",
  "message": "Error: Boom!"
}

Run it twice. The first run should create one record with the title, failure link, error details and status set. The second run should update that same record, not create another. Check both by reading the table back. If run-status tools aren't available, check the result in Airtable directly. Ask the user to delete the test records; the agent doesn't delete them. Then publish, confirm the trigger is active, and leave it on.

Notes

  • The trigger fires for every failed Zap on the account. Narrow it with the folder or Zap fields if most failures are noise.
  • Matching is on the failure link, so repeats of a failure update one record's notes.
  • To notify an owner for high-severity failures, add a Slack or email step after the create or update. To assign owners by severity, set an owner field from the service or message.
  • Don't share a copy of this Zap with a real base ID or table name filled in. Anyone who can see them can see your triage records.