🎫 List recent ServiceNow incidents in Slack using pop up modal

⚑ 1,484 views · 🎫 Ticket Management & Triage

Description

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

Workflow Highlights

πŸ”— Nodes Used

HTTP Request, Slack, Webhook, ServiceNow, Summarize

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup