Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Manual Start Trigger
  2. Weekly Trigger at 8AM
  3. Set Config Parameters
  4. Fetch Incidents from Lookback
  5. Standardize Incident Fields
  6. Group Incidents by Category
  7. Check Recurrence Threshold
  8. Skip Non-Recurring
  9. Create ServiceNow Problem
  10. Aggregate Problems
  11. Post Weekly Report to Slack
  12. Incident Analyzer Agent
  13. Parse Structured Output
  14. Google Gemini Chatbot

16 steps in total.

Similar automations