Skip to main content

Display ServiceNow incident details in Slack using slash commands

Workflow preview

Workflow preview
100%
Display ServiceNow incident details in Slack using slash commands 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 teams using Slack for communication and ServiceNow for incident management. It simplifies incident lookup by enabling team members to fetch incident d...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.servicenow, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.switch

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
Display ServiceNow incident details in Slack using slash commands
Workflow name
Display ServiceNow incident details in Slack using slash commands
Who is this for?

This workflow is designed for teams using Slack for communication and ServiceNow for incident management. It simplifies incident lookup by enabling team members to fetch incident details directly within Slack via a Slash Command.

What problem is this workflow solving?

Manually switching between Slack and ServiceNow to retrieve incident details can be time-consuming and disrupt workflow efficiency. This workflow bridges the two platforms, providing instant access to critical incident information in Slack, saving time, and improving response efficiency.

What this workflow does?

The workflow listens for a Slash Command in Slack that includes an incident ID, extracts the ID from the incoming payload, queries ServiceNow for the corresponding incident details, and sends a formatted response back to Slack. Depending on the query result, it can:

  • Display incident details (e.g., ID, description, severity, and priority).
  • Notify the user if no matching incident is found.
  • Alert the user if there’s an issue connecting to ServiceNow.
Setup
  1. Slack Setup:

    • Create a Slash Command in Slack with the appropriate endpoint URL.
    • Configure the command to send a POST request to the webhook endpoint of this workflow.
    • For details on how to setup the Slack app using Slash commands and n8n, check out this video.
  2. ServiceNow Setup:

    • Create or use an existing account with the necessary permissions to access incident data.
    • Configure the ServiceNow node with your ServiceNow credentials.
  3. n8n Workflow Activation:

    • Deploy and activate the workflow in your n8n instance.
    • Ensure all nodes are properly configured and connected.
How to customize this workflow to your needs
  • Modify Incident Query Parameters: Adjust the query logic in the Search For Incident in ServiceNow node to include additional filters or data points based on your organization’s needs.
  • Slack Response Customization: Customize the Slack response template to display additional incident details or to match your team’s tone and style.
  • Error Handling: Enhance the error handling nodes to include more detailed logs or send alerts to a dedicated Slack channel.

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 - Webhook

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

Block 2 - Extract Incident ID from Response

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

Block 3 - Search For Incident in ServiceNow

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

Block 4 - Send Incident Details to Slack

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

Block 5 - Notify User no Incident was Found

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

Block 6 - Notify User of Error with ServiceNow

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

Block 7 - Sticky Note12

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note11

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

Block 10 - Parse ServiceNow Response

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

3. Summary Table

Workflow Display ServiceNow incident details in Slack using slash commands
Complexity intermediate
Nodes 10
Categories Ticket Management
Author Angel Menendez
Published 14 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2727/2727.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 Display ServiceNow incident details in Slack using slash commands do?

Who is this for? This workflow is designed for teams using Slack for communication and ServiceNow for incident management. It simplifies incident lookup by enabling team members to fetch incident d...

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.