Automate ServiceNow Incident Notifications to Slack
detail.loadingPreview
This workflow automatically fetches new incidents from ServiceNow every 5 minutes and sends detailed notifications to a designated Slack channel. It includes error handling to alert you if ServiceNow connectivity fails.
About This Workflow
Streamline your incident response by automatically detecting and reporting new ServiceNow incidents directly to your team's communication hub. This n8n workflow is designed to run continuously, checking for new incidents created within the last five minutes. Upon detection, it meticulously gathers key incident details such as ID, description, severity, caller, priority, state, category, and the date opened. These details are then presented in a structured and actionable message within a Slack channel, complete with a direct link to view the incident in ServiceNow. The workflow also includes robust error handling, ensuring you're immediately notified via Slack if any issues arise when connecting to the ServiceNow API.
Key Features
- Scheduled Incident Monitoring: Automatically checks for new ServiceNow incidents every 5 minutes.
- Detailed Slack Notifications: Sends comprehensive incident information to a specified Slack channel.
- Direct Incident Linking: Includes a button to quickly access the incident in ServiceNow.
- Error Alerting: Notifies you on Slack if there are connection issues with ServiceNow.
- Configurable Time Window: Easily adjust the time frame for incident retrieval.
How To Use
- Configure ServiceNow Trigger: Set the
scheduleTriggerto run every 5 minutes. - Set Time Window: Use the
dateTimenode to calculate the timestamp for 5 minutes ago. - Connect to ServiceNow: Configure the
ServiceNownode with your authentication credentials and set thesysparm_queryto filter incidents created after the calculated timestamp. - Conditional Logic: Use the
ifnode to check if any incidents were returned. - Handle No Incidents: If no new incidents are found, the
noOpnode will do nothing. - Handle ServiceNow Errors: If an error occurs during ServiceNow retrieval, the
slacknode (Post Error Message if Error with ServiceNow) will send an alert. - Sort Incidents: If incidents are found, the
sortnode will order them by incident number. - Post to Slack: Configure the
slacknode (Post Incident Details to Slack Channel) with your Slack credentials, channel, and the custom message blocks, mapping the ServiceNow incident data to display relevant fields and include a view incident button.
Apps Used
Workflow JSON
{
"id": "e52d41b7-a617-462e-b19a-1b1bdd900ea2",
"name": "Automate ServiceNow Incident Notifications to Slack",
"nodes": 26,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e52d41b7-a617...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.