Detect recurring ServiceNow incidents with Google Gemini and Slack
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on a schedule (every week at 08:00) (plus 1 other trigger). Along the way it connects ServiceNow, Slack and Google Gemini Chat Model.
How it runs
Trigger: On a schedule (every week at 08:00) (plus 1 other trigger).
- Set Config Parameters (Edit Fields (Set)): sets 2 fields: lookback_days, min_recurrence_threshold
- Fetch Incidents from Lookback (ServiceNow): get many (incident)
- Standardize Incident Fields (Edit Fields (Set)): sets or maps fields
- Group Incidents by Category (Code): runs custom JavaScript code
- Incident Analyzer Agent (AI Agent): runs an AI agent, with model: Google Gemini Chatbot; output parser: Parse Structured Output
- Set Threshold and Slack Channel (Edit Fields (Set)): sets 2 fields: min_recurrence_threshold, slack_channel
- Check Recurrence Threshold (If): checks a condition and branches into true / false
- Create ServiceNow Problem (ServiceNow): create (table record)
- Aggregate: combines items into one
- Construct Weekly Report Message (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
Services it uses
Other Google Gemini + Slack templates (309) · Other ServiceNow + Slack templates (7) · Other Google Gemini + ServiceNow templates (3)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - ServiceNow
n8n-nodes-base.serviceNow - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Aggregate
n8n-nodes-base.aggregate - Slack
n8n-nodes-base.slack - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
From the author
Quick overview Video Explanation: https://www.linkedin.com/posts/iamvaarblankarray-n8n-automation-ugcPost-7499437115198373888-XrkB/ This workflow runs weekly to pull recent ServiceNow incidents, groups them by configuration item and category, uses Google…