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:
Create a new Automation in ClearFeed.
Set the trigger to “Ticket Created” or “Ticket Updated”.
Add a Webhook Action that posts to the PagerDuty Events API.
For API reference: PagerDuty Events API v2 Overview
For configuring the webhook in ClearFeed: Webhook Actions
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
TrueAction 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
Click
Create automation.Click
Add triggerand set the Trigger toTicket Creation.(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
In the
Actionblock, clickAdd actionand chooseAuto-fill Fields.Provide instructions to the AI to classify the request. Here's an example prompt:
In the
Output Configuration, selectCreate Automation Variablesand clickAdd Variable:Variable Name:
is_criticalData Type: Boolean
Description: Whether the request represents a critical incident requiring immediate paging
Required: Yes
Use the test interface to test the prompt on previous requests and refine as needed.
3. Add a condition for critical tickets
Click
Add a Conditionto filter which tickets should trigger the PagerDuty webhook.Select the
Action - is_criticalfield.Set the condition to
is set to-True
4. Configure the PagerDuty webhook
Add another action below the condition and select
Webhook.Configure the webhook to post to the PagerDuty Events API v2:
Set the HTTP method to
POSTand the URL tohttps://events.pagerduty.com/v2/enqueue.
5. Save and activate
Select the Collection(s) where this automation should apply.
Click
Saveto 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
