Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Detect recurring ServiceNow incidents with Gemini and create problem records in Slack
Runs weekly or on demand, groups ServiceNow incidents over a lookback window, uses Gemini to spot recurring patterns, opens problem records above a threshold, and posts a Slack report.
What it does
## Recurring Incident Detector → Problem Record + Weekly Report ### How it works This workflow runs weekly or manually to detect recurring incidents in ServiceNow over a configurable lookback window. It normalizes and groups incidents, uses an AI agent to summarize recurrence patterns, then checks whether each pattern meets the configured recurrence threshold. Qualifying patterns create ServiceNow problem records, and the workflow compiles a weekly Slack report of the created problems. ### Setup steps - Configure the ServiceNow credentials and instance details for both the incident lookup and problem record creation nodes. - Configure Google Gemini credentials for the AI Agent chat model and confirm the structured output parser schema matches the recurrence fields used downstream. - Set the desired lookback_days, min_recurrence_threshold, and slack_channel values in the Config and Config - Threshold & Slack nodes. - Connect Slack credentials and verify the report channel is accessible to the Slack app. - Review the weekly schedule trigger to ensure it runs at the intended Monday 8AM timezone. ### Customization Adjust the grouping logic in the code node to use different recurrence keys, such as service, assignment group, or priority. You can also tune the AI prompt/output schema, recurrence threshold, lookback period, and Slack report formatting to match operational needs.
The steps
- Manual Start Trigger
- Weekly Trigger at 8AM
- Set Config Parameters
- Fetch Incidents from Lookback
- Standardize Incident Fields
- Group Incidents by Category
- Check Recurrence Threshold
- Skip Non-Recurring
- Create ServiceNow Problem
- Aggregate Problems
- Post Weekly Report to Slack
- Incident Analyzer Agent
- Parse Structured Output
- Google Gemini Chatbot
16 steps in total.
Similar automations
Monitoring, Ops & IncidentsRoute weather-based delivery holds with Open-Meteo, Gemini, Postgres, and ServiceNow26 stepsMonitoring, Ops & IncidentsEscalate ServiceNow incidents at high SLA breach risk and alert Slack14 stepsMonitoring, Ops & IncidentsPost New ServiceNow Incidents to Slack Every Five Minutes12 stepsCustomer Support & HelpdeskSearch ServiceNow Incidents from Slack with Modals71 steps