Slack to ServiceNow Incident Search
detail.loadingPreview
Search ServiceNow for incidents based on priority and state directly from Slack.
About This Workflow
This workflow integrates Slack and ServiceNow to enable users to search for incidents directly within Slack. Users can open a modal in Slack to specify the incident priority and state, and choose a channel for the results. The workflow then queries ServiceNow, retrieves matching incidents, and posts a summary (or direct messages the user if no channel is specified) back to Slack. It handles cases where no incidents are found and presents up to the 5 most recent matching incidents.
Key Features
- Slack Modal Interface: A user-friendly modal in Slack for incident search.
- ServiceNow Integration: Queries the ServiceNow API to fetch incident data.
- Dynamic Routing: Routes results to a specified Slack channel or via direct message.
- Incident Filtering: Filters incidents by priority and state.
- Results Summarization: Presents a concise summary of up to 5 recent incidents.
- Error Handling: Notifies the user if no matching incidents are found.
How To Use
- Trigger: The workflow is triggered by a Slack interaction (e.g., a slash command or button press) that initiates the
Webhooknode. - Modal Display: The
ServiceNow Modalnode opens a modal in Slack. Users input the desired 'Priority' and 'State' for their incident search. - Channel Selection: Users can also select a Slack channel where the search results will be posted.
- ServiceNow Query: Upon submission, the
ServiceNownode queries the ServiceNow API using the provided priority and state. - Result Processing: The
Were Incidents Found?node checks if any incidents were returned. - Notification:
- If incidents are found, they are formatted (
Format Incident Details,Concatenate Incident Details,Format Slack Message) and sent either to the selected Slack channel (Channel - Send Matching Incidents) or as a direct message to the user (DM - Send Matching Incidents). - If no incidents are found, a notification is sent to the selected channel (
Channel - Notify User no Incidents Matched) or as a direct message (DM - Notify User no Incidents Matched).
- If incidents are found, they are formatted (
- Workflow End: The
Send 200node acknowledges the webhook request, and theClose Modal Popupnode closes the Slack modal.
Apps Used
Workflow JSON
{
"id": "8520a36c-8342-4730-876c-aed270d83c06",
"name": "Slack to ServiceNow Incident Search",
"nodes": 6,
"category": "IT Operations",
"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: 8520a36c-8342...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Syncro Alert to OpsGenie
Automatically sync alerts from Syncro to OpsGenie for incident management.
PagerDuty Incident Management
Create, update, and retrieve incidents in PagerDuty.
New Ticket Alerts to Teams
Alerts the Dispatch team via Microsoft Teams when new tickets are created in Connectwise.