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
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.
- Category
- IT · Incident response
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-error-records-from-failed-automations-for-triage
Set it up with the CLI
- 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 - 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-error-records-from-failed-automations-for-triage - 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/
- 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 - connections/zapier-manager.tsThe
zapier-manageraccount it uses - triggers/zap-error-alert.tsWhat starts it:
zapier-managerzap_error_alert - 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 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. - Airtable searches the triage table for a record whose failure link matches the alert's task history link.
- 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.
- 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.
- Accounts: bind
airtableto the user's Airtable connection for the account that owns the triage base.zapier-manageris the trigger's app; the trigger needs no connection, so itsauthentication_idisnull. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/zap-error-alert.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. - 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 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.