Paging Critical Incidents to PagerDuty using ClearFeed Automations

ClearFeed can automatically trigger PagerDuty incidents for urgent or high-priority requests. This recipe walks you through configuring a webhook to send events to PagerDuty whenever a critical ticket is created or updated.

Set Up the PagerDuty Integration

Use ClearFeed Automations to send a webhook to PagerDuty’s Events API.

Steps:

Identify High-Priority Tickets

You can decide which tickets should trigger a PagerDuty incident using:

  • Manually assigned priorities (e.g., High or Urgent)

  • ClearFeed's ML classifier to auto-label urgent requests

  • Separate collections for high-value customers

  • A custom AI prompt to compute priority dynamically

    • Configure the prompt to set priority

    • Trigger the PagerDuty webhook when the ticket priority becomes Urgent

Example automation to identify and escalate high priority tickets with AI

This section shows an end-to-end example of using AI to classify new requests and automatically trigger a PagerDuty webhook for critical incidents.

Overview

The automation flow works as follows:

  • Trigger → On Ticket Creation

  • Action 1 → Use AI to classify if the ticket is critical

  • Condition → Check if the classification returns True

  • Action 2 → Call PagerDuty webhook

Step-by-Step Setup

Login to the ClearFeed Web Application, go to More on the Left Nav and select Automate. Create a new Automation as follows:

1. Set the trigger

  1. Click Create automation.

  2. Click Add trigger and set the Trigger to Ticket Creation.

  3. (Optional) Add a small delay (e.g., 1 minute). This allows for additional context to be gathered if the user types multiple messages quickly.

2. Use AI to classify the ticket

  1. In the Action block, click Add action and choose Auto-fill Fields.

  2. Provide instructions to the AI to classify the request. Here's an example prompt:

  3. In the Output Configuration, select Create Automation Variables and click Add Variable:

    • Variable Name: is_critical

    • Data Type: Boolean

    • Description: Whether the request represents a critical incident requiring immediate paging

    • Required: Yes

  4. Use the test interface to test the prompt on previous requests and refine as needed.

3. Add a condition for critical tickets

  1. Click Add a Condition to filter which tickets should trigger the PagerDuty webhook.

  2. Select the Action - is_critical field.

  3. Set the condition to is set to - True

4. Configure the PagerDuty webhook

  1. Add another action below the condition and select Webhook.

  2. Configure the webhook to post to the PagerDuty Events API v2:

  1. Set the HTTP method to POST and the URL to https://events.pagerduty.com/v2/enqueue.

5. Save and activate

  1. Select the Collection(s) where this automation should apply.

  2. Click Save to activate the automation.

Best Practices

  • Test with non-critical tickets before enabling on production channels.

  • Add safeguards in your automation to avoid noise or accidental paging.

  • Review automation rules periodically to ensure only real incidents trigger PagerDuty.

Last updated