ServiceNow Ticket Search and Notification Slack Integration Workflow

This workflow achieves deep integration between Slack and ServiceNow, allowing users to directly query ticket information within Slack. By entering priority and status conditions in a pop-up window, users can quickly obtain tickets that meet the criteria, with the query results sent in an aesthetically pleasing format, supporting the display of up to 5 ticket details. The workflow also provides friendly reminders when there are no matching results, ensuring that users are always informed about the query status, thereby enhancing the efficiency of information retrieval and the collaboration experience.

Workflow Diagram
ServiceNow Ticket Search and Notification Slack Integration Workflow Workflow diagram

Workflow Name

ServiceNow Ticket Search and Notification Slack Integration Workflow

Key Features and Highlights

This workflow enables deep integration between Slack and ServiceNow, allowing users to input ticket priority and status criteria via a Slack modal interface to quickly query tickets matching the conditions in ServiceNow. The query results are delivered as well-structured and visually appealing Block Kit messages, sent either via Slack direct message or to a specified channel, supporting display of up to the 5 most recent ticket details. The workflow also provides user-friendly notifications when no matching tickets are found, ensuring users are always informed of the query status.

Core Problems Addressed

  • Resolves the inability to directly query ServiceNow tickets within Slack, enabling users to quickly check ticket statuses without switching applications.
  • Optimizes the presentation of query results for clarity and emphasis, enhancing collaboration efficiency.
  • Automatically determines whether matching tickets exist and promptly delivers feedback through different channels (channel or direct message), preventing information loss or communication gaps.

Use Cases

  • IT support teams needing to quickly retrieve ServiceNow tickets filtered by priority and status directly from Slack for troubleshooting and response.
  • Operations or customer service personnel searching tickets within Slack to avoid toggling between multiple systems, improving work efficiency.
  • Enterprises leveraging Slack as a unified collaboration platform to receive ticket status updates and query results, facilitating cross-department communication.

Main Workflow Steps

  1. Webhook Listener: Listens for interaction events sent from Slack (such as modal requests, button clicks, and form submissions).
  2. Request Parsing: Extracts detailed payload from Slack interactions and identifies the type of user operation.
  3. Respond to Slack Modal Request: Calls Slack API to open a modal with priority and status selection fields; users fill in query criteria and select the channel to receive results.
  4. Close Modal and Query ServiceNow: Upon user submission, closes the modal and calls ServiceNow API to retrieve tickets based on the specified criteria.
  5. Result Evaluation and Handling:
    • If matching tickets exist, sorts them by ticket number in descending order, retains the latest 5 tickets, and formats ticket details.
    • If no matching tickets are found, sends a no-match notification either to the selected channel or directly to the user, depending on the selection.
  6. Result Delivery: Sends the formatted ticket information as Slack Block Kit messages to the designated channel or user direct message.
  7. Button Event Response: Returns HTTP 200 to Slack button click events to prevent UI errors.

Involved Systems and Services

  • Slack API: Facilitates modal interactions, message sending (channels and direct messages), and event handling.
  • ServiceNow API: Queries ticket data based on user-input priority and status criteria.
  • n8n Automation Platform: Serves as the workflow execution engine, orchestrating and processing tasks across nodes.

Target Users and Value

  • IT Support and Operations Teams: Quickly locate and track critical tickets, improving response times.
  • Customer Service and Project Management Personnel: Conveniently access ticket information via Slack, enhancing cross-department communication efficiency.
  • Enterprise Digital Transformation Teams: Simplify business processes through automated integration, strengthening team collaboration experience.
  • Any organization seeking seamless integration of ServiceNow ticket data into the Slack work environment.

This workflow empowers Slack users to intuitively and efficiently query ServiceNow tickets without leaving their collaboration platform, providing up-to-date ticket statuses and details that significantly enhance work efficiency and user experience.