Flag related Zendesk tickets when incident.io declares an incident

When incident.io opens a customer-impacting incident, find the related Zendesk tickets, leave an internal brief, and message support in Slack.

Agentic Task
incident.ioZendeskSlack BotCustomer SupportEngineeringNotifications & AlertsFeedback Triage
PromptCreate

Build me an agent workflow that triages my Zendesk support queue whenever a new customer-impacting incident is declared in incident.io, so my support reps are never blindsided.

Trigger: poll incident.io on a short schedule (every couple of minutes) using List Incidents, filtered to newly active customer-impacting incidents that the agent has not already processed. If incident.io webhooks are easier to wire up for new incidents, use that instead. Either way, only act on incidents flagged as customer-impacting.

For each new incident, the agent should:

1. Call Show Incident on incident.io to read the full details: summary, severity, affected products, status, and the current customer-facing message.

2. Use Search Tickets in Zendesk to find open tickets that plausibly relate to the incident. Match on the affected product tag, ticket activity in a recent window (default 72 hours), and meaningful keywords pulled from the incident summary. Skip closed and archived tickets.

3. For each matched ticket, call Update Ticket to do two things: (a) add an internal note (never a public reply) containing a link to the incident.io incident, a short brief of what is known, and a one-click-ready suggested reply the support rep can send to the customer; (b) add a tag of the form incident-<incident_id> so we can see at a glance which tickets are linked and so a re-run never double-posts.

4. After processing all matched tickets, call Send a Message via the Slack Bot integration to post a tidy brief in the support team's Slack channel: the incident link, severity, affected products, count of tickets flagged, and a bulleted list of permalinks to each flagged ticket. Use Slack mrkdwn formatting.

Guardrails the agent must follow:

- Internal notes only. The agent must never post a public reply on a Zendesk ticket. If the Update Ticket call would produce a public comment, do not send it.

- One canonical incident tag per ticket per incident. Before adding the note, check the ticket's existing tags. If the incident-<incident_id> tag is already present, skip that ticket so re-runs do not spam.

- Customer-impacting only. Ignore incidents that are not flagged as customer-impacting so internal-only issues do not pollute the support queue.

- One Slack message per incident. If the agent has already posted about this incident, do not post again unless the severity changed.

Use the Slack Bot integration (slackbot) for the Slack post, not the user OAuth Slack integration, since this is automated workspace messaging.

Additional information

What does this prompt do?
  • Watches incident.io for newly declared customer-impacting incidents and reads the summary, severity, affected products, and the customer-facing message.
  • Searches your open Zendesk queue for tickets that plausibly relate to the incident based on product tags, recent activity, and keywords.
  • Leaves an internal note on each matched ticket with a link to the incident, a short brief of what is known, and a suggested reply your support rep can send in one click.
  • Posts a tidy heads-up in your support Slack channel with the incident link, severity, and the list of flagged tickets so nobody is blindsided.
What do I need to use this?
  • An incident.io account where customer-impacting incidents are declared.
  • A Zendesk admin account so the agent can search tickets and add internal notes.
  • A Slack workspace and the support channel you want the heads-up posted in.
How can I customize it?
  • Change which Slack channel receives the heads-up, or add a second channel for severity 1 incidents only.
  • Tighten or loosen how the agent matches tickets to incidents, for example only flagging tickets touched in the last 24 hours or requiring a specific product tag.
  • Edit the suggested reply tone so it sounds like your support team, not a generic status update.

Frequently asked questions

Will customers ever see what the agent writes?
No. The agent only leaves internal notes on Zendesk tickets and posts in Slack. It never sends a public reply. Your support rep still chooses what goes out to the customer.
What stops the agent from flagging the same ticket over and over?
Each flagged ticket is tagged with the incident ID. Before adding a note, the agent checks for that tag so a re-run on the same incident does not double-post or spam the ticket.
What if there is no incident.io webhook set up yet?
The agent can run on a schedule instead, checking incident.io every few minutes for new active customer-impacting incidents. Either trigger works.
Does this work for non-customer-impacting incidents?
By default the agent only acts on incidents flagged as customer-impacting so internal-only issues do not flood your support queue. You can broaden the filter if you want.
How does the agent decide which tickets relate to the incident?
It uses the affected product tags, recent ticket activity, and keywords from the incident summary. You can tune any of those filters to match how your team tags and routes tickets.

Stop letting incidents blindside your support team.

Connect incident.io, Zendesk, and Slack once. The next customer-impacting incident triggers a triage pass on your queue automatically.