Post AI triage suggestion into incident management channel
Each new incident message gets a suggested owning team, a confidence level and a one-line reason, posted as a threaded reply so the right people see it first.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/post-ai-triage-suggestion-into-incident-management-channel/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- IT · Incident response
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/post-ai-triage-suggestion-into-incident-management-channel
Set it up with the CLI
- Add it. Copies the folder into
zaps/post-ai-triage-suggestion-into-incident-management-channel/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/post-ai-triage-suggestion-into-incident-management-channel - 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 post-ai-triage-suggestion-into-incident-management-channel - Check it. Its recent runs, with status and errors.
npx zap-pack logs post-ai-triage-suggestion-into-incident-management-channel
zaps/post-ai-triage-suggestion-into-incident-management-channel/
- 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 3 to fill in
- connections/microsoft-teams.tsThe
microsoft-teamsaccount it uses - triggers/message-list.tsWhat starts it:
microsoft-teamsmessageList - 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 new message in the incident channel (
microsoft-teams,messageList). The trigger brings the message ID, subject and body. - AI by Zapier reads the message's subject and body against the capability-to-team mapping and returns the matching capability, the owning team or teams, a confidence level (high, medium or low) and one sentence of rationale.
- Microsoft Teams posts that result as a threaded reply to the original message.
Medium confidence is labelled as advisory in the reply. Nothing is assigned automatically; a person routes the incident.
Ask the user
Each REPLACE_… value is set per person. Resolve team and channel names to IDs with the user's Microsoft Teams connection; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
INCIDENT_TEAM_ID |
The Teams team that contains the incident channel |
INCIDENT_CHANNEL_ID |
The incident channel in that team. Only its messages are triaged |
CAPABILITY_TO_TEAM_MAP |
One line per capability, naming the team that owns it, e.g. Payments: Payments team. Ask which team owns what |
Prerequisites and questions from the old setup:
- The Zapier app must be installed in that Teams team.
- Does the trigger's output name the message ID, subject and body differently?
workflow.tsassumesid,subjectandbody.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/post-ai-triage-suggestion-into-incident-management-channel, replace each REPLACE_… value as this file says, then run npx zap-pack deploy post-ai-triage-suggestion-into-incident-management-channel, 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
microsoft-teamsto the user's Microsoft Teams connection, for an account that can post in the incident channel. The trigger and the reply use the same one.aineeds no connection; it uses Zapier-managed model credentials. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/message-list.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 before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test with a message the user posted in a test channel. Set id to that message's ID, or the reply step fails:
{
"id": "1700000000001",
"subject": "Checkout failing for EU customers",
"body": "Since 09:40 UTC, card payments return a 500 error for EU-based accounts."
}
Check that the AI step returns matched_capability, owning_teams, confidence and rationale, that the reply is posted as a thread under that message, and that the reply has the four lines: suggested owner, capability, confidence and why. If run-status tools aren't available, check the reply in Microsoft Teams directly. Then publish, confirm the trigger is active, and ask the user to delete the test messages.
Notes
- Medium-confidence suggestions are advisory and labelled as such in the reply.
- Duplicate deliveries are not filtered. The workflow keeps no record between runs, so a message delivered twice gets two replies.
- To create a ticket on high-confidence matches, or to direct-message an incident coordinator on low-confidence ones, add a step after the reply in the helpdesk or chat app.
- Keep real team IDs, channel IDs and capability maps that name internal teams out of commits.