Skip to main content

List recent ServiceNow incidents in Slack using pop up modal

Workflow preview

Workflow preview
100%
List recent ServiceNow incidents in Slack using pop up modal preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? This workflow is designed for IT teams, service desk personnel, and incident management professionals who need a streamlined way to monitor and report on recent ServiceNow incident...

Best for

  • Ticket Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.respondtowebhook, n8n-nodes-base.switch, n8n-nodes-base.httprequest, n8n-nodes-base.webhook, n8n-nodes-base.servicenow, n8n-nodes-base.slack, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Angel Menendez.

Original n8n.io source

1.1 Workflow description

Title
List recent ServiceNow incidents in Slack using pop up modal
Workflow name
List recent ServiceNow incidents in Slack using pop up modal
Who is this for?

This workflow is designed for IT teams, service desk personnel, and incident management professionals who need a streamlined way to monitor and report on recent ServiceNow incidents directly within Slack.

What problem is this workflow solving? / Use Case

Manually monitoring incidents in ServiceNow can be time-consuming, and keeping teams updated about new or specific incidents often involves additional manual effort. This workflow automates the process of querying recent incidents from ServiceNow based on user-defined parameters and delivering formatted results directly to Slack. It ensures faster response times and improved incident visibility.

What this workflow does

This workflow integrates Slack and ServiceNow to provide an automated system for retrieving and presenting incident details.

  1. Slack User Interaction: Users initiate the workflow via a Slack modal form, selecting incident parameters like priority and state.
  2. ServiceNow Query: The workflow queries ServiceNow for incidents matching the selected criteria.
  3. Results Delivery: Incident results are sent back to Slack as a message formatted using Block Kit. If no results are found, the workflow notifies the user with a detailed message, either in a Slack channel or via direct message.
  4. Error Handling: If no channel is selected or any issues arise, the workflow ensures graceful fallback with appropriate notifications.
Setup Instructions
  1. Slack Setup:
  2. ServiceNow Integration:
    • Use ServiceNow credentials to connect with n8n.
    • Ensure appropriate permissions for querying incidents.
  3. n8n Workflow Configuration:
    • Import this workflow into n8n.
    • Verify all node configurations, particularly those for ServiceNow API queries and Slack outputs.
    • Set up webhook URLs for Slack event handling.
  4. Testing:
    • Trigger the workflow from Slack to test modal inputs and incident queries.
    • Confirm the output is correctly formatted and delivered to the intended Slack channel or user.
How to Customize this Workflow to Your Needs
  • Modify the ServiceNow query logic to include additional filters or fields.
  • Adjust the Slack Block Kit formatting to match your organization’s preferred notification style.
  • Use conditional logic to add more advanced handling for specific priorities or states.
  • Expand the workflow to include escalation steps, such as notifying a specific team or creating follow-up tasks.
Workflow Highlights
  • Slack Modal Form: Allows users to specify search criteria for incidents interactively.
  • Dynamic Results Delivery: Automatically sends results to a Slack channel or direct message based on user input.
  • Error Handling: Provides fallback notifications when no incidents are found or user inputs are incomplete.
  • Customizable Integration: Easily adaptable to fit different organizational needs, including advanced filtering and formatting options.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Parse Webhook

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 2 - Close Modal Popup

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 3 - Route Message

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 4 - ServiceNow Modal

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 6 - Send 200

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 7 - ServiceNow

Type / Role
n8n-nodes-base.serviceNow - serviceNow
Config choices
Version 1

Block 8 - Channel - Notify User no Incidents Matched

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 9 - DM - Notify User no Incidents Matched

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 10 - Were Incidents Found?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - No Matches - Was a Channel Selected?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Sort by Most Recent

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Block 13 - Retain First 5 Incidents

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 14 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 15 - Format Incident Details

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Format Slack Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Concatenate Incident Details

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1

Block 18 - DM - Send Matching Incidents

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 19 - Channel - Send Matching Incidents

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 20 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow List recent ServiceNow incidents in Slack using pop up modal
Complexity advanced
Nodes 29
Categories Ticket Management
Author Angel Menendez
Published 15 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2728/2728.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does List recent ServiceNow incidents in Slack using pop up modal do?

Who is this for? This workflow is designed for IT teams, service desk personnel, and incident management professionals who need a streamlined way to monitor and report on recent ServiceNow incident...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management use case.