Skip to main content

AI-powered ServiceNow chat triage with GPT-4 — Incident & request router

Workflow preview

Workflow preview
100%
AI-powered ServiceNow chat triage with GPT-4 — Incident & request router preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Short description Automatically triage incoming chat messages into Incidents , Service Requests , or Other using an LLM powered classifier; create Incidents in ServiceNow, submit Service Catalog re...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.textclassifier, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.chainsummarization, n8n-nodes-base.httprequest, n8n-nodes-base.servicenow

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI-powered ServiceNow chat triage with GPT-4 — Incident & request router
Workflow name
AI-powered ServiceNow chat triage with GPT-4 — Incident & request router

Short description

Automatically triage incoming chat messages into Incidents, Service Requests, or Other using an LLM-powered classifier; create Incidents in ServiceNow, submit Service Catalog requests (HTTP), and route everything else to an AI Agent with web search + memory. Includes an optional summarization step for ticket context.

Full description

This n8n template wires a chat trigger to an LLM-based Text Classifier and then routes messages to the appropriate downstream action:

  1. Trigger: When chat message received — incoming messages from your chat channel.

  2. Text Classifier: small LLM prompt/classifier that returns one of three labels: Incident, Request, or Everything Else.

  3. Create Incident (ServiceNow connector): when labeled Incident, the workflow creates a Servicenow Incident record (short fields: short_description, description, priority, caller).

  4. Submit General Request (HTTP Request): when labeled Request, the workflow calls your Service Catalog API (POST) to place a catalog item / submit a request.

  5. AI Agent: when labeled Everything Else, route to an AI Agent node that:

    • uses an OpenAI chat model for contextual replies,
    • can consult SerpAPI (web search) as a tool,
    • saves relevant context to Simple Memory for future conversations.
  6. Summarization Chain: optional chain to summarize long chat threads into concise ticket descriptions before creating incidents/requests.

This template is ideal for support desks that want automated triage with human-quality context and searchable memory.

Key highlights (what to call out)

  • Three-way LLM triage: ensures messages are routed automatically to the correct backend action (Incident vs Service Request vs AI handling).
  • ServiceNow native connector: uses the ServiceNow node to create Incidents (safer than raw HTTP for incidents).
  • Service Catalog via HTTP: flexible — supports organizations using RESTful catalog endpoints.
  • Summarization before ticket creation: produces concise, high-quality short_description and description fields.
  • AI Agent + Memory + Web Search: handles non-ticket queries with web-augmented answers and stores context for follow-ups.
  • Failover & logging: include a catch node (optional) that logs failures and notifies admins.

Required credentials & inputs (must configure)

  • ServiceNow: Instance URL + API user (must have rights to create incidents).
  • Service Catalog HTTP endpoint: URL + API key / auth header (for POST).
  • OpenAI API key (or other LLM provider): for Text Classifier, Summarization Chain, and AI Agent.
  • SerpAPI key (optional): for web search tools inside the AI Agent.
  • Memory store: Simple Memory node (or external DB) for conversation history.

Nodes included (quick map)

  • Trigger: When chat message received
  • Processor: Text Classifier (OpenAI/LLM)
  • Branch A: ServiceNow (Create Incident)
  • Branch B: HTTP Request (Service Catalog POST)
  • Branch C: AI Agent (OpenAI + SerpAPI + Simple Memory)
  • Shared: Summarization Chain (used before A or B where enabled)
  • Optional: Error / Audit logging node, Slack/email notifications

Recommended n8n settings & tips

  • Use structured outputs from classifier ({ label: "Incident", confidence: 0.92 }) so you can implement confidence thresholds.
  • If confidence < 0.7, route to a human review queue instead of auto-creating a ticket.
  • Sanitize user PII before storing in memory or sending to external APIs.
  • Rate-limit OpenAI/SerpAPI calls to avoid unexpected bills.
  • Test the Service Catalog POST body in Postman first — include sample variables JSON.

Short sample variables JSON (Service Catalog POST)

{
  "sysparm_quantity": 1,
  "variables": {
    
    "description": "User reports VPN timeout on Windows machine; error code 1234"
  }
}

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 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Text Classifier

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1.1

Block 4 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 5 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 7 - Summarization Chain

Type / Role
@n8n/n8n-nodes-langchain.chainSummarization - chainSummarization
Config choices
Version 2.1

Block 8 - OpenAI Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 9 - HTTP Request1

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

Block 10 - Create an incident

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

Block 11 - SerpAPI

Type / Role
@n8n/n8n-nodes-langchain.toolSerpApi - toolSerpApi
Config choices
Version 1

Block 12 - Sticky Note

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note3

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

Block 15 - Sticky Note4

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

3. Summary Table

Workflow AI-powered ServiceNow chat triage with GPT-4 — Incident & request router
Complexity advanced
Nodes 15
Categories AI Chatbot, Multimodal AI
Author Tushar Mishra
Published 17 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7515/7515.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 AI-powered ServiceNow chat triage with GPT-4 — Incident & request router do?

Short description Automatically triage incoming chat messages into Incidents , Service Requests , or Other using an LLM powered classifier; create Incidents in ServiceNow, submit Service Catalog re...

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 AI Chatbot, Multimodal AI use case.