Agent d'assistance L1 ServiceNow

Intermédiaire

Ceci est unAI Chatbot, Multimodal AIworkflow d'automatisation du domainecontenant 15 nœuds.Utilise principalement des nœuds comme ServiceNow, HttpRequest, Agent, ChatTrigger, ToolSerpApi. Triage de conversation ServiceNow basé sur GPT-4 - Routage d'incidents et de demandes

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API OpenAI
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "wgebr18bzsF4QNVr",
  "meta": {
    "instanceId": "6004a16b59a95da573dfac2b89c29cb3d5d09e00386053659b2f24878624b8d6",
    "templateCredsSetupCompleted": true
  },
  "name": "ServiceNow L1 Support Agent",
  "tags": [],
  "nodes": [
    {
      "id": "ad145ddf-9106-441d-94cd-ed87bbc85658",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -352,
        16
      ],
      "webhookId": "8b4142f0-e9e7-44da-90f1-dd94227275bd",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "c0366cfa-74e0-405c-9941-a844262d84d0",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -240,
        272
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ppNn03FE7vbsyINF",
          "name": "n8n free OpenAI API credits"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2b11cc62-9c8f-4248-86c3-6c8ebfe84361",
      "name": "Classificateur de texte",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        -80,
        48
      ],
      "parameters": {
        "options": {
          "enableAutoFixing": true,
          "systemPromptTemplate": "Please classify the text provided by the user into one of the following categories: {categories}, and use the provided formatting instructions below. Don't explain, and only output the json."
        },
        "inputText": "={{ $json.chatInput }}",
        "categories": {
          "categories": [
            {
              "category": "Incident",
              "description": "Incident- If something is broken or not working or it's a complaint etc. Then it is an incident "
            },
            {
              "category": "Request",
              "description": "Request- If something is a access request or provisioning ask, product etc orders then it is request"
            },
            {
              "category": "Everything Else",
              "description": "Everything which is not part of either of those categories must come here like Knowledge Search"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "4fee1f25-ad74-4cc4-81ad-ffec25bdee26",
      "name": "Agent IA",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        272
      ],
      "parameters": {
        "options": {
          "systemMessage": "You are a helpful assistant. Who creates requests based on the user query using the tool. Always create the request using the http tool attached to you"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "823405a4-92b9-46ac-a241-b3a428a1c940",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        352,
        496
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ppNn03FE7vbsyINF",
          "name": "n8n free OpenAI API credits"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "d0d74ce3-d5cc-47ab-85c8-d06e95d553dd",
      "name": "Mémoire simple",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        544,
        496
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "aa1dfb61-1da5-46f5-9357-78477ddd7fce",
      "name": "Chaîne de synthèse",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        1104,
        64
      ],
      "parameters": {
        "options": {
          "summarizationMethodAndPrompts": {
            "values": {
              "prompt": "=Write a user friendly summary of the following:\n\n\nAgent Action\"{text}\" \nUser Query\"{{ $('When chat message received').item.json.chatInput }}\"\n\n\nCONCISE SUMMARY: ",
              "summarizationMethod": "stuff"
            }
          }
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "f0843c75-fe30-4bed-8427-d975e5e7dd5c",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1184,
        320
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ppNn03FE7vbsyINF",
          "name": "n8n free OpenAI API credits"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9e170bf4-ca79-466b-a57b-80bf0f56d007",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        32
      ],
      "parameters": {
        "url": "https://dev353652.service-now.com/api/sn_sc/servicecatalog/items/a4cc1293939362504311f6fa3d03d698/order_now",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"sysparm_quantity\": 1,\n  \"variables\": {\n    \"description\": \"{{ $('When chat message received').item.json.chatInput }}\"\n  }\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "nodeCredentialType": "serviceNowBasicApi"
      },
      "credentials": {
        "serviceNowBasicApi": {
          "id": "KxyhRaz4peVyPmfe",
          "name": "ServiceNow Basic Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "afb9f332-0972-4854-a3fb-180992307f49",
      "name": "Créer un incident",
      "type": "n8n-nodes-base.serviceNow",
      "position": [
        560,
        -144
      ],
      "parameters": {
        "resource": "incident",
        "operation": "create",
        "authentication": "basicAuth",
        "additionalFields": {},
        "short_description": "={{ $('When chat message received').item.json.chatInput }}"
      },
      "credentials": {
        "serviceNowBasicApi": {
          "id": "KxyhRaz4peVyPmfe",
          "name": "ServiceNow Basic Auth account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7fa36225-2adb-4534-9652-b55afbcb14f4",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        736,
        496
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "serpApi": {
          "id": "5P7rGPm6cF7iPBTo",
          "name": "SerpAPI account 2"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b7b3f641-523a-4360-9e56-1f7e4b614128",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -192
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 208,
        "content": "## Text Classifier\n\nThis will categorize all the user queries in 3 categorize\n1- Incident\n2-Request\n3- Everything Else\n"
      },
      "typeVersion": 1
    },
    {
      "id": "020ea78c-ae47-4937-9867-ceb6a9503aa5",
      "name": "Note adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -288
      ],
      "parameters": {
        "content": "## Create Incident\nUsing ServiceNow Connector to create an Incident"
      },
      "typeVersion": 1
    },
    {
      "id": "acdb5a12-9f4a-4dfd-8f82-b4ad8ccbe4ef",
      "name": "Note adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        320
      ],
      "parameters": {
        "content": "## Lastly\nTo handle all other cases. I am using a AI Agent with Web Search API"
      },
      "typeVersion": 1
    },
    {
      "id": "a7f8c6f9-d624-46fc-8f04-f4dd7164adb7",
      "name": "Note adhésive4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -48
      ],
      "parameters": {
        "height": 272,
        "content": "## Submit a General Request\nFor Demo Purpose I am only Submitting a General Request. Using Service Catalog API https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html#title_servicecat-POST-cart-sub_order"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "78eec813-6c33-4ab8-a496-1e5d47eb4311",
  "connections": {
    "7fa36225-2adb-4534-9652-b55afbcb14f4": {
      "ai_tool": [
        [
          {
            "node": "4fee1f25-ad74-4cc4-81ad-ffec25bdee26",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "4fee1f25-ad74-4cc4-81ad-ffec25bdee26": {
      "main": [
        [
          {
            "node": "aa1dfb61-1da5-46f5-9357-78477ddd7fce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9e170bf4-ca79-466b-a57b-80bf0f56d007": {
      "main": [
        [
          {
            "node": "aa1dfb61-1da5-46f5-9357-78477ddd7fce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d0d74ce3-d5cc-47ab-85c8-d06e95d553dd": {
      "ai_memory": [
        [
          {
            "node": "4fee1f25-ad74-4cc4-81ad-ffec25bdee26",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "2b11cc62-9c8f-4248-86c3-6c8ebfe84361": {
      "main": [
        [
          {
            "node": "afb9f332-0972-4854-a3fb-180992307f49",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "9e170bf4-ca79-466b-a57b-80bf0f56d007",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "4fee1f25-ad74-4cc4-81ad-ffec25bdee26",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c0366cfa-74e0-405c-9941-a844262d84d0": {
      "ai_languageModel": [
        [
          {
            "node": "2b11cc62-9c8f-4248-86c3-6c8ebfe84361",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "afb9f332-0972-4854-a3fb-180992307f49": {
      "main": [
        [
          {
            "node": "aa1dfb61-1da5-46f5-9357-78477ddd7fce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "823405a4-92b9-46ac-a241-b3a428a1c940": {
      "ai_languageModel": [
        [
          {
            "node": "4fee1f25-ad74-4cc4-81ad-ffec25bdee26",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "f0843c75-fe30-4bed-8427-d975e5e7dd5c": {
      "ai_languageModel": [
        [
          {
            "node": "aa1dfb61-1da5-46f5-9357-78477ddd7fce",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ad145ddf-9106-441d-94cd-ed87bbc85658": {
      "main": [
        [
          {
            "node": "2b11cc62-9c8f-4248-86c3-6c8ebfe84361",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Chatbot IA, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds15
Catégorie2
Types de nœuds10
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Tushar Mishra

Tushar Mishra

@yajna

Problem Solver | ServiceNow Architect | AI/ML Specialist | Product Builder 1. 10+ years in tech consulting and product development across AI, enterprise platforms, and cloud ecosystems. 2. ISB AMP in Business Analytics; strong foundation in strategy + data. 3. Founder – ReAcademy.ai: Flashcard-based learning SaaS using AI & LLMs to transform PDFs into gamified micro-learning.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34