{
  "name": "ITfest",
  "nodes": [
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        -432,
        -32
      ],
      "id": "151649d4-470e-42e0-adc5-0fa049d05c0d",
      "name": "Telegram Trigger",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $items(\"Telegram Trigger\")[0].json.message.from.id }}",
        "text": "={{ $json.text }}\n\n\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 /h",
        "additionalFields": {
          "appendAttribution": false,
          "parse_mode": "HTML"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        4704,
        -176
      ],
      "id": "cf8b18ea-0309-4ad7-b059-51d773182c6f",
      "name": "Send a text message",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "inputText": "={{ $('Input').item.json.message.text }}",
        "categories": {
          "categories": [
            {
              "category": "Promt",
              "description": "=\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e, \u0447\u0451\u0442\u043a\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e IT-\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.\n- \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0433\u0434\u0435, \u043f\u0440\u0438 \u043a\u0430\u043a\u043e\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438.\n- \u041f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c: \u0441\u0435\u0440\u0432\u0438\u0441, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u043e\u0448\u0438\u0431\u043a\u0430, \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0434\u043e\u0441\u0442\u0443\u043f.\n- \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u044f\u0432\u043d\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u043e\u043c\u043e\u0449\u044c."
            },
            {
              "category": "Trash",
              "description": "=- \u041d\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u043a\u0438 (\u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442).\n- \u041d\u0435\u0442 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u0438\u043b\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439.\n- \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0435, \u043f\u0443\u0441\u0442\u043e\u0435, \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435, \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435, \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043d\u043e\u0435 \u0438\u043b\u0438 \u043d\u0435 \u043f\u043e \u0442\u0435\u043c\u0435.\n- \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u044d\u043c\u043e\u0446\u0438\u0438, \u043d\u043e \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0444\u0430\u043a\u0442\u043e\u0432."
            }
          ]
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "typeVersion": 1.1,
      "position": [
        1200,
        -128
      ],
      "id": "dc366601-5abb-44ca-92e1-859ff77e6a30",
      "name": "Text Classifier"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $items(\"Telegram Trigger\")[0].json.message.text }}\n",
        "needsFallback": true,
        "options": {
          "systemMessage": "\u0422\u044b \u2014 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a HelpDesk \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u041a\u0430\u0437\u0430\u0445\u0442\u0435\u043b\u0435\u043a\u043e\u043c.\n\n\u0422\u0432\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0432\u0435\u0436\u043b\u0438\u0432\u043e, \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u0443\u0441\u043b\u0443\u0433\u0430\u043c\u0438 \u0441\u0432\u044f\u0437\u0438 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c\u0438 IT-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438.  \n\u0422\u044b \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0448\u044c\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0430\u043c\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0448\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443.\n\n\u0422\u0412\u041e\u0418 \u041e\u0421\u041d\u041e\u0412\u041d\u042b\u0415 \u0417\u0410\u0414\u0410\u0427\u0418:\n1. \u041e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c, \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.\n2. \u0414\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c.\n3. \u0417\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0442\u043e\u0447\u043d\u044f\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0435\u0441\u043b\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.\n4. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441:\n   \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c (\u0434\u043e\u043c/\u043e\u0444\u0438\u0441, Wi-Fi, \u0440\u043e\u0443\u0442\u0435\u0440\u044b, \u043c\u043e\u0434\u0435\u043c\u044b);  \n   \u2014 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u044c\u044e (\u0437\u0432\u043e\u043d\u043a\u0438, SMS, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0440\u043e\u0443\u043c\u0438\u043d\u0433);  \n   \u2014 IPTV \u0438 \u0442\u0435\u043b\u0435\u0432\u0438\u0434\u0435\u043d\u0438\u0435\u043c;  \n   \u2014 \u043b\u0438\u0447\u043d\u044b\u043c \u043a\u0430\u0431\u0438\u043d\u0435\u0442\u043e\u043c \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c;  \n   \u2014 \u043e\u043f\u043b\u0430\u0442\u043e\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u043e\u043c, \u0443\u0441\u043b\u0443\u0433\u0430\u043c\u0438 \u0438 \u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438;  \n   \u2014 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 B2B \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438;  \n   \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 IT-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0434\u043b\u044f \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 (\u0434\u043e\u0441\u0442\u0443\u043f\u044b, VPN, \u043f\u043e\u0447\u0442\u0430, \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043c\u0435\u0441\u0442\u0430).\n5. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c.\n6. \u041d\u0435 \u0432\u044b\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u043a\u0442\u044b \u2014 \u0435\u0441\u043b\u0438 \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c, \u043f\u0440\u043e\u0441\u0438 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0439.\n\n\u041f\u0420\u0410\u0412\u0418\u041b\u0410 \u0420\u0410\u0411\u041e\u0422\u042b:\n\u2014 \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0448\u044c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u044f\u0441\u043d\u043e.  \n\u2014 \u041d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0448\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0441\u0431\u0440\u043e\u0441 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f) \u0431\u0435\u0437 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d.  \n\u2014 \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0439 \u0438\u0445 \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043a \u0441\u043b\u043e\u0436\u043d\u044b\u043c.  \n\u2014 \u0421\u043b\u0435\u0434\u0438 \u0437\u0430 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043e\u0439 \u043e\u0431\u0449\u0435\u043d\u0438\u044f: \u0431\u0443\u0434\u044c \u0432\u0435\u0436\u043b\u0438\u0432\u044b\u043c, \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u044b\u043c, \u0443\u0432\u0430\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c.  \n\u2014 \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e, \u0442\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0448\u044c \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043d.  \n\u2014 \u0412\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439 \u0434\u0438\u0430\u043b\u043e\u0433: \u0443\u0442\u043e\u0447\u043d\u044f\u0439 \u0434\u0435\u0442\u0430\u043b\u0438, \u043f\u043e\u043c\u043e\u0433\u0430\u0439 \u043f\u043e\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b.\n\n\u0422\u042b \u041d\u0415 \u0414\u0415\u041b\u0410\u0415\u0428\u042c:\n\u2014 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c \u0437\u0430\u044f\u0432\u043a\u0438;  \n\u2014 \u043d\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0448\u044c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u044b;  \n\u2014 \u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0448\u044c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435;  \n\u2014 \u043d\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0448\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b.\n\n\u0422\u044b \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0438 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        3968,
        -176
      ],
      "id": "329911e0-eac2-40d7-9390-80cec92619bd",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $items(\"Telegram Trigger\")[0].json.message.from.id }}\n",
        "contextWindowLength": 3
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        4064,
        -16
      ],
      "id": "9290b342-b22b-497f-9598-6b2cdef72f6f",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        3872,
        -32
      ],
      "id": "98b67315-3871-4293-b23e-486a2aead777",
      "name": "Groq Chat Model",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        1184,
        32
      ],
      "id": "ed819e14-4816-4390-b38e-a0ddc7c6cbbb",
      "name": "Groq Chat Model1",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "=\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435! \ud83d\udc4b  \n\u042f \u2014 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a IT HelpDesk.  \n\u041f\u043e\u043c\u043e\u0433\u0443 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0437\u0430\u043f\u0440\u043e\u0441, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0438\u043f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0442\u0435\u043c\u0443 \u0443\u0441\u043b\u0443\u0433\u0438, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e.\n\n\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e:  \n\u2014 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442;  \n\u2014 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c;  \n\u2014 \u043a\u0430\u043a\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f;  \n\u2014 \u0447\u0442\u043e \u0443\u0436\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c.\n\n\u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043c \u0442\u0438\u043a\u0435\u0442 \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044e \u0435\u0433\u043e \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c.\n\n\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0436\u0438\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  \n/h \u2014 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.\n\n\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0442\u0438\u043a\u0435\u0442 \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0434\u0438\u0430\u043b\u043e\u0433, \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  \n/end \u2014 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0442\u0438\u043a\u0435\u0442\u0430.\n",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        320,
        -320
      ],
      "id": "1a252e15-5155-44b5-81f8-0b58e9da2eb5",
      "name": "Send a text message1",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1ddc4372-5a20-449a-a730-32ff409c8108",
              "name": "message.from.id",
              "value": "={{ $json.message.from.id }}",
              "type": "number"
            },
            {
              "id": "25483b79-d6d7-49b0-aee5-dc8b6ffc9d2a",
              "name": "message.text",
              "value": "={{ $json.message.text }}",
              "type": "string"
            },
            {
              "id": "5441b010-c641-4fd6-aab4-3bdfe59c57c1",
              "name": "message.from.first_name",
              "value": "={{ $json.message.from.first_name }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        688,
        -16
      ],
      "id": "a19faafb-a042-473a-88d4-dd50bae84306",
      "name": "Input"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "552a1c69-b142-4269-ae1f-3ca1b203419d",
              "leftValue": "={{ $json.id }}",
              "rightValue": "",
              "operator": {
                "type": "number",
                "operation": "notExists",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1664,
        -32
      ],
      "id": "5bddd606-7a9e-46e4-abf5-edd608af0c9f",
      "name": "If1"
    },
    {
      "parameters": {
        "dataTableId": {
          "__rl": true,
          "value": "eKfg24cv0NCfk4D4",
          "mode": "list",
          "cachedResultName": "Tickets",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/eKfg24cv0NCfk4D4"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "tid": "={{ $json.chat_id }}",
            "theme": "={{ $json.theme }}",
            "type": "={{ $json.type }}",
            "category": "={{ $json.category }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "tid",
              "displayName": "tid",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "theme",
              "displayName": "theme",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "category",
              "displayName": "category",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "type",
              "displayName": "type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        4112,
        -1344
      ],
      "id": "e6b8cc68-3b1e-4299-ae32-8c4a4b16a9c2",
      "name": "Insert row",
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        2144,
        -608
      ],
      "id": "15e38fe1-0b69-4c4b-a2dc-4fa9b342f538",
      "name": "Groq Chat Model2",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "category",
              "value": "critical",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2560,
        -944
      ],
      "id": "5ea72c08-ca20-4c26-8ae3-238610cae9d6",
      "name": "Category"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "category",
              "value": "high",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2560,
        -832
      ],
      "id": "a56730f5-b071-4135-8cf1-0cc1416898d7",
      "name": "Category1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "category",
              "value": "normal",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2560,
        -720
      ],
      "id": "1f13b004-3fec-4b82-88a7-f7b037fd8ac6",
      "name": "Category2"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "category",
              "value": "low",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2560,
        -608
      ],
      "id": "688c8b65-4678-4493-be10-7c2029e17b11",
      "name": "Category3"
    },
    {
      "parameters": {
        "inputText": "={{ $('Input').item.json.message.text }}",
        "categories": {
          "categories": [
            {
              "category": "CRITICAL",
              "description": "=PRIORITY P1 \u2014 CRITICAL \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0443 \u043e\u0442\u0434\u0435\u043b\u0430, \u0447\u0430\u0441\u0442\u0438 \u043e\u0444\u0438\u0441\u0430 \u0438\u043b\u0438 \u0432\u0441\u0435\u0433\u043e \u043e\u0444\u0438\u0441\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a (\u043a\u043e\u043d\u0442\u0430\u043a\u0442-\u0446\u0435\u043d\u0442\u0440, \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c, \u043a\u0430\u0441\u0441\u0430, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440) \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043d\u0435\u0442 \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438: \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0435 \u0441\u0431\u043e\u0438, CRM/\u043f\u043e\u0447\u0442\u0430/VPN/\u0434\u043e\u043c\u0435\u043d \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0445\u043e\u0434\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b."
            },
            {
              "category": "HIGH",
              "description": "PRIORITY P2 \u2014 HIGH \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435, \u043d\u043e \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432, \u043d\u0435 \u0432\u0435\u0441\u044c \u043e\u0444\u0438\u0441. \u0420\u0430\u0431\u043e\u0442\u0430 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430, \u043b\u0438\u0431\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0442\u044c. \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438: CRM \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, VPN \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0447\u0442\u0430 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430, \u043d\u0443\u0436\u043d\u044b \u0441\u0440\u043e\u0447\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u0437-\u0437\u0430 \u0434\u0435\u0434\u043b\u0430\u0439\u043d\u0430."
            },
            {
              "category": "NORMAL",
              "description": "PRIORITY P3 \u2014 NORMAL \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0420\u0430\u0431\u043e\u0442\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430, \u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u0430. \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b: \u043f\u0440\u0438\u043d\u0442\u0435\u0440/\u0441\u043a\u0430\u043d\u0435\u0440 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0441\u0431\u043e\u0438 \u0432 \u043e\u0444\u0438\u0441\u043d\u043e\u043c \u041f\u041e, \u043c\u0435\u043b\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438."
            },
            {
              "category": "LOW",
              "description": "\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0439, \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u0438 \u0437\u0430\u0434\u0430\u0447 \u201c\u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f\u201d. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0430. \u041f\u0440\u0438\u043c\u0435\u0440\u044b: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Office \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0440\u043e\u0439, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0448\u0440\u0438\u0444\u0442, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438."
            }
          ]
        },
        "options": {
          "systemPromptTemplate": "\u0422\u044b \u2013 \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u044f\u0432\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e IT-HelpDesk \u0434\u043b\u044f \u043e\u0444\u0438\u0441\u043d\u044b\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.\n\n\u0422\u0432\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430: \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0437\u0430\u044f\u0432\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0451 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442. \n\u0423 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c 4 \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0430: P1, P2, P3, P4.\n\n\u0414\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0446\u0435\u043d\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443:\n1. \u041e\u0445\u0432\u0430\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b (impact): \n   - ONE \u2013 \u043e\u0434\u0438\u043d \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\n   - TEAM \u2013 \u0433\u0440\u0443\u043f\u043f\u0430/\u043e\u0442\u0434\u0435\u043b\n   - OFFICE \u2013 \u0446\u0435\u043b\u044b\u0439 \u043e\u0444\u0438\u0441/\u0447\u0430\u0441\u0442\u044c \u043e\u0444\u0438\u0441\u0430/\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0434\u0435\u043b\u043e\u0432\n2. \u0421\u0442\u0435\u043f\u0435\u043d\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b (work_block):\n   - FULL \u2013 \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430\n   - PARTIAL \u2013 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e\n   - MINOR \u2013 \u043c\u0435\u043b\u043a\u043e\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e\n3. \u041a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (service_criticality):\n   - CRITICAL \u2013 \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u0443\u0447\u0451\u0442\u043a\u0430, Windows login, VPN, \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u0435\u0442\u044c, \u043f\u043e\u0447\u0442\u0430, CRM, \u0431\u0438\u043b\u043b\u0438\u043d\u0433, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442\n   - NON_CRITICAL \u2013 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u044b, \u0441\u043a\u0430\u043d\u0435\u0440\u044b, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043e\u0444\u0438\u0441\u043d\u043e\u0435 \u041f\u041e, \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043c\u0435\u0441\u0442\u0430\n4. \u0421\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u044c (urgency):\n   - DEADLINE_TODAY \u2013 \u0434\u0435\u0434\u043b\u0430\u0439\u043d, \u0432\u0441\u0442\u0440\u0435\u0447\u0430, \u043e\u0442\u0447\u0451\u0442 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\n   - NORMAL \u2013 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c\n5. \u041e\u0431\u0445\u043e\u0434\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 (workaround):\n   - YES \u2013 \u0435\u0441\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c\n   - NO \u2013 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b \u043d\u0435\u0442\n\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0430:\n\nP1 \u2013 \u041a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439\n\u0412\u044b\u0431\u0438\u0440\u0430\u0439 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442, \u0435\u0441\u043b\u0438:\n- TEAM \u0438\u043b\u0438 OFFICE \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044b \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430.\n\u0418\u041b\u0418\n- \u041e\u0434\u0438\u043d \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0441\u043e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0439 \u0440\u043e\u043b\u044c\u044e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435, \u0438 \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u043d\u0435\u0442.\n\nP2 \u2013 \u0412\u044b\u0441\u043e\u043a\u0438\u0439\n\u0412\u044b\u0431\u0438\u0440\u0430\u0439, \u0435\u0441\u043b\u0438:\n- ONE \u0438\u043b\u0438 TEAM.\n- \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435.\n- PARTIAL \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0418\u041b\u0418 \u043f\u043e\u043b\u043d\u0430\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0442\u044c.\n\nP3 \u2013 \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439\n\u0412\u044b\u0431\u0438\u0440\u0430\u0439, \u0435\u0441\u043b\u0438:\n- \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435.\n- \u0415\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (PARTIAL \u0438\u043b\u0438 MINOR).\n\nP4 \u2013 \u041d\u0438\u0437\u043a\u0438\u0439\n\u0412\u044b\u0431\u0438\u0440\u0430\u0439, \u0435\u0441\u043b\u0438:\n- \u042d\u0442\u043e \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0435/\u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435/\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430.\n- \u0420\u0430\u0431\u043e\u0442\u0430 \u043d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "typeVersion": 1.1,
      "position": [
        2160,
        -800
      ],
      "id": "f826da23-0e7d-4ff7-83a7-c394f9b64c10",
      "name": "Priority"
    },
    {
      "parameters": {
        "inputText": "={{ $('Input').item.json.message.text }}",
        "categories": {
          "categories": [
            {
              "category": "INTERNET_FIXED",
              "description": "TOPIC: INTERNET_FIXED \u0414\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0438\u043b\u0438 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442: \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0432\u044f\u0437\u0438, \u043d\u0438\u0437\u043a\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u043e\u0431\u0440\u044b\u0432\u044b, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Wi-Fi, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430, \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0442\u043e\u0447\u043a\u0438, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e \u043d\u0435\u0443\u043f\u043b\u0430\u0442\u0435."
            },
            {
              "category": "MOBILE",
              "description": "TOPIC: MOBILE \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c: \u043d\u0435\u0442 \u0441\u0435\u0442\u0438, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0440\u043e\u0443\u043c\u0438\u043d\u0433, \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0437\u0432\u043e\u043d\u043a\u0438/SMS, \u0441\u043c\u0435\u043d\u0430 SIM/eSIM, \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u043e\u0432."
            },
            {
              "category": "IPTV",
              "description": "TOPIC: IPTV \u0422\u0435\u043b\u0435\u0432\u0438\u0434\u0435\u043d\u0438\u0435/IPTV: \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043a\u0430\u043d\u0430\u043b\u044b, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u043e \u0437\u0432\u0443\u043a\u043e\u043c/\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0443\u043b\u044c\u0442\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043a\u0430\u043d\u0430\u043b\u043e\u0432."
            },
            {
              "category": "TELEPHONY",
              "description": "TOPIC: TELEPHONY \u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044f: \u043d\u0435\u0442 \u0433\u0443\u0434\u043a\u0430, \u0448\u0443\u043c\u044b, \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0432\u044b\u0437\u043e\u0432\u044b, \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u043d\u043e\u043c\u0435\u0440\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u0443\u0433."
            },
            {
              "category": "PORTAL_APP",
              "description": "TOPIC: PORTAL_APP \u041b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0432\u0445\u043e\u0434, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f, SMS-\u043a\u043e\u0434, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433, \u043e\u0448\u0438\u0431\u043a\u0438 \u043e\u043f\u043b\u0430\u0442\u044b, \u0441\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445."
            },
            {
              "category": "BILLING_SYSTEM",
              "description": "TOPIC: BILLING_SYSTEM \u041e\u043f\u043b\u0430\u0442\u0430, \u0441\u0447\u0435\u0442\u0430, \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u0438, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b, \u043f\u0435\u0440\u0435\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435, \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0430\u0432\u0442\u043e\u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0438 \u0441\u043f\u043e\u0440\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438."
            },
            {
              "category": "B2B_SERVICES",
              "description": "TOPIC: B2B_SERVICES \u041a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0443\u0441\u043b\u0443\u0433\u0438: \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0435 \u0430\u0432\u0430\u0440\u0438\u0438, \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b \u043d\u0430 \u0441\u0435\u0442\u044f\u0445 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0439, \u0430\u0440\u0435\u043d\u0434\u0430 \u043b\u0438\u043d\u0438\u0439, VPN L2/L3, \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0434\u043b\u044f \u0433\u043e\u0441\u0443\u0447\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439, \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u044b, SLA."
            },
            {
              "category": "INTERNAL_IT",
              "description": "=TOPIC: INTERNAL_IT \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 Help Desk \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432: \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u0432 CRM, \u043f\u043e\u0447\u0442\u0430, VPN, \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u041f\u041a/\u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430\u043c\u0438, \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430, \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u043e\u043b\u0438."
            }
          ]
        },
        "options": {
          "systemPromptTemplate": "\u0422\u044b \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0435\u043c\u044b \u0443\u0441\u043b\u0443\u0433\u0438 (topic) \u0432 Help Desk \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u041a\u0430\u0437\u0430\u0445\u0442\u0435\u043b\u0435\u043a\u043e\u043c.  \n\u0422\u0432\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a \u043a\u0430\u043a\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438\u043b\u0438 \u0432\u043e\u043f\u0440\u043e\u0441.\n\n\u0422\u0435\u043c\u044b (topic):\n1. INTERNET_FIXED \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 (\u0434\u043e\u043c/\u043e\u0444\u0438\u0441, Wi-Fi, \u0440\u043e\u0443\u0442\u0435\u0440).\n2. MOBILE \u2014 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.\n3. IPTV \u2014 \u0442\u0435\u043b\u0435\u0432\u0438\u0434\u0435\u043d\u0438\u0435 / IPTV / \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430.\n4. TELEPHONY \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044f.\n5. PORTAL_APP \u2014 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.\n6. BILLING_SYSTEM \u2014 \u043e\u043f\u043b\u0430\u0442\u0430, \u0441\u0447\u0435\u0442\u0430, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b, \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c.\n7. B2B_SERVICES \u2014 \u0443\u0441\u043b\u0443\u0433\u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0430\u0432\u0430\u0440\u0438\u0438 \u043f\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c.\n8. INTERNAL_IT \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 Help Desk \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 (\u0434\u043e\u0441\u0442\u0443\u043f, VPN, \u043f\u043e\u0447\u0442\u0430, \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043c\u0435\u0441\u0442\u043e).\n\n\u0415\u0441\u043b\u0438 \u0442\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u2014 \u0432\u044b\u0431\u0438\u0440\u0430\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e.\n\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "typeVersion": 1.1,
      "position": [
        2208,
        -1424
      ],
      "id": "6c688154-f5b6-424c-949c-7e8fe2134562",
      "name": "Theme"
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        2208,
        -1072
      ],
      "id": "5319281e-554f-4fb8-a49e-9444e0b21e9d",
      "name": "Groq Chat Model3",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        2048,
        -1824
      ],
      "id": "86577d12-cff4-44dd-bb34-3a24603fc1b1",
      "name": "Groq Chat Model4",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "inputText": "={{ $('Input').item.json.message.text }}",
        "categories": {
          "categories": [
            {
              "category": "INFORMATION",
              "description": "TYPE: INFORMATION \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e: \u0442\u0430\u0440\u0438\u0444\u044b, \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u043a\u0430\u043a \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0444\u0438\u0441, \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0441\u043b\u0443\u0433\u0443, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u041d\u0435\u0442 \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u0438, \u0436\u0430\u043b\u043e\u0431\u044b \u0438\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430."
            },
            {
              "category": "INCIDENT",
              "description": "=TYPE: INCIDENT \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u0438: \u043d\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043d\u0430\u043b\u044b, \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0441\u0432\u044f\u0437\u044c, \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f CRM, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u043e\u0431\u0440\u044b\u0432\u044b, \u043d\u0438\u0437\u043a\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u042d\u0442\u043e \u043f\u043e\u043b\u043e\u043c\u043a\u0430 \u0438\u043b\u0438 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438."
            },
            {
              "category": "SERVICE_REQUEST",
              "description": "TYPE: SERVICE_REQUEST \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0445\u043e\u0447\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435: \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0441\u043b\u0443\u0433\u0443, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u0440\u0438\u0444, \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0442\u043e\u0447\u043a\u0443, \u0437\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u0441\u043c\u0435\u043d\u0438\u0442\u044c SIM/eSIM, \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e. \u042d\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u043e\u043c\u043a\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441."
            },
            {
              "category": "BILLING",
              "description": "TYPE: BILLING \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u043f\u043b\u0430\u0442\u043e\u0439, \u0441\u0447\u0435\u0442\u0430\u043c\u0438, \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e, \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u044f\u043c\u0438, \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u043e\u043c, \u0441\u043c\u0435\u043d\u043e\u0439 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043e\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0430\u0432\u0442\u043e\u043f\u043b\u0430\u0442\u0435\u0436\u0430\u043c\u0438 \u0438 \u0441\u043f\u043e\u0440\u043d\u044b\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438."
            },
            {
              "category": "COMPLAINT",
              "description": "TYPE: COMPLAINT \u041d\u0435\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0443\u0441\u043b\u0443\u0433 \u0438\u043b\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438: \u043f\u043b\u043e\u0445\u0430\u044f \u0441\u0432\u044f\u0437\u044c, \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u0430\u0441\u0442\u0435\u0440\u0430, \u0445\u0430\u043c\u0441\u0442\u0432\u043e, \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u0447\u0451\u0442, \u0434\u043e\u043b\u0433\u0438\u0439 \u0440\u0435\u043c\u043e\u043d\u0442, \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0443\u0441\u043b\u0443\u0433\u0438, \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0441\u0440\u043e\u043a\u043e\u0432. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442 \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043b\u0438 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u0435\u0442\u0435\u043d\u0437\u0438\u044e."
            },
            {
              "category": "PRODUCT_QUESTION",
              "description": "TYPE: PRODUCT_QUESTION \u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u0445, \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438\u0434\u0435\u044f\u0445, \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f\u0445. \u041d\u0435 \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043a\u0430 \u0438 \u043d\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f, \u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0443\u0441\u043b\u0443\u0433\u0438. \u041f\u0440\u0438\u043c\u0435\u0440\u044b: \"\u0411\u0443\u0434\u0435\u0442 \u043b\u0438 \u0431\u0435\u0437\u043b\u0438\u043c\u0438\u0442?\", \"\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u044b?\""
            }
          ]
        },
        "options": {
          "systemPromptTemplate": "\u0422\u044b \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0438\u043f\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043b\u044f Help Desk \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u041a\u0430\u0437\u0430\u0445\u0442\u0435\u043b\u0435\u043a\u043e\u043c.  \n\u0422\u0432\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a \u043a\u0430\u043a\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441.\n\n\u0422\u0438\u043f\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (type):\n1. INFORMATION \u2014 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u0441\u043f\u0440\u0430\u0432\u043a\u0430.\n2. INCIDENT \u2014 \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043a\u0430, \u0441\u0431\u043e\u0439 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0443\u0441\u043b\u0443\u0433\u0438.\n3. SERVICE_REQUEST \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435/\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435/\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438.\n4. BILLING \u2014 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e\u043f\u043b\u0430\u0442\u044b, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u043e\u0432, \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438.\n5. COMPLAINT \u2014 \u0436\u0430\u043b\u043e\u0431\u0430, \u043f\u0440\u0435\u0442\u0435\u043d\u0437\u0438\u044f, \u043d\u0435\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u043e.\n6. PRODUCT_QUESTION \u2014 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u043c.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "typeVersion": 1.1,
      "position": [
        2048,
        -2096
      ],
      "id": "30788a21-8449-4fdc-bea2-a2fac65a5378",
      "name": "Type"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "type",
              "value": "information",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2464,
        -2384
      ],
      "id": "ccb26b3f-cca1-476e-81c8-8697e9359a06",
      "name": "type"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "type",
              "value": "incident",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2464,
        -2272
      ],
      "id": "928ed648-ad20-4a19-9753-ca9fe38f43a5",
      "name": "type1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "type",
              "value": "service_request",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2464,
        -2160
      ],
      "id": "8e0aff6f-1d5c-4db3-b6c6-1d60cf95168a",
      "name": "type2"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "type",
              "value": "billing",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2464,
        -2048
      ],
      "id": "fc8c74f3-2fc5-46cc-828c-598132bb9b0e",
      "name": "type3"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "type",
              "value": "complaint",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2464,
        -1936
      ],
      "id": "faba9679-9d48-4930-809d-2abda5f3aae3",
      "name": "type4"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "type",
              "value": "product_question",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2464,
        -1824
      ],
      "id": "1a01439d-92d2-49ec-8617-18475677fca6",
      "name": "type5"
    },
    {
      "parameters": {
        "numberInputs": 4
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        2832,
        -816
      ],
      "id": "21d94244-2cc8-47ee-9c3c-4e7371381f7a",
      "name": "PRIORITY"
    },
    {
      "parameters": {
        "numberInputs": 6
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        2784,
        -2160
      ],
      "id": "501a0cd8-8710-4481-bf3b-e723d431a599",
      "name": "TYPE"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "internet_fixed",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1856
      ],
      "id": "f966eca2-da0a-4a02-a700-56d4d971a605",
      "name": "theme"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "mobile",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1744
      ],
      "id": "76e069a0-217b-413a-8aa5-ce08fae86e35",
      "name": "theme1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "iptv",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1616
      ],
      "id": "fd5457d5-35be-427c-82eb-e45dfee1a1e6",
      "name": "theme2"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "telephony",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1488
      ],
      "id": "1eac194e-b8ef-46e2-a064-336e182d69f0",
      "name": "theme3"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "portal_app",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1360
      ],
      "id": "c90097d4-67b1-47f1-86d6-cd0ca5d5635c",
      "name": "theme4"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "billing_system",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1232
      ],
      "id": "c347ead9-2026-462e-a973-8a979d15e680",
      "name": "theme5"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "b2b_services",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1120
      ],
      "id": "6b6a7b5b-be9d-4957-af83-da00e8c22d6d",
      "name": "theme6"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab6e0f71-3492-47fd-815a-219f020e535e",
              "name": "theme",
              "value": "internal_it",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2784,
        -1008
      ],
      "id": "c617f64f-68b2-4c1c-ad8f-359f04d36111",
      "name": "theme7"
    },
    {
      "parameters": {
        "numberInputs": 8
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        3168,
        -1504
      ],
      "id": "d00aa28c-f2c2-438c-a463-d09cea8b6161",
      "name": "THEME"
    },
    {
      "parameters": {
        "numberInputs": 3
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        3568,
        -1392
      ],
      "id": "c356988b-1b0e-41ca-a11d-df95ceae892c",
      "name": "Merge"
    },
    {
      "parameters": {
        "jsCode": "// \u0421\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 items \u0432 \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442\nconst result = {};\n\nfor (const item of items) {\n  const obj = item.json;\n  for (const key of Object.keys(obj)) {\n    const value = obj[key];\n    if (value !== undefined && value !== null) {\n      result[key] = value;\n    }\n  }\n}\n\n// \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c chat_id \u0438\u0437 Telegram Trigger\n// (\u0431\u0435\u0440\u0451\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 item = item(0) \u2014 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e)\nresult.chat_id = $item(0).$node[\"Telegram Trigger\"].json.message.chat.id;\n\n// \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0434\u0438\u043d item \u0441 \u043e\u0431\u0449\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c\nreturn [\n  {\n    json: result,\n  },\n];\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        3888,
        -1344
      ],
      "id": "2ce60bf3-e998-40b0-bd6c-1501272f7c76",
      "name": "TO OUT"
    },
    {
      "parameters": {
        "operation": "deleteRows",
        "dataTableId": {
          "__rl": true,
          "value": "eKfg24cv0NCfk4D4",
          "mode": "list",
          "cachedResultName": "Tickets",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/eKfg24cv0NCfk4D4"
        },
        "filters": {
          "conditions": [
            {
              "keyName": "tid",
              "keyValue": "={{ $('Telegram Trigger').item.json.message.chat.id }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        592,
        -320
      ],
      "id": "777fcfce-aa4e-4c88-951f-f4f28373aa74",
      "name": "Delete row(s)"
    },
    {
      "parameters": {
        "operation": "deleteRows",
        "dataTableId": {
          "__rl": true,
          "value": "fMHs7Mn4OsdaXoqX",
          "mode": "list",
          "cachedResultName": "Chats",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/fMHs7Mn4OsdaXoqX"
        },
        "filters": {
          "conditions": [
            {
              "keyName": "tid",
              "keyValue": "={{ $('Telegram Trigger').item.json.message.chat.id }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        864,
        -320
      ],
      "id": "6dbccbf2-819e-46d9-b5e2-0d88cb21dd70",
      "name": "Delete row(s)1"
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "={{ $('Telegram Trigger').item.json.message.from.first_name }}, \u0412\u0430\u0448 \u0442\u0438\u043a\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435. ",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        720,
        -320
      ],
      "id": "294c01a8-10d0-4d3a-bd0b-ae8d806688a1",
      "name": "Send a text message3",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "=\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e \u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        272,
        640
      ],
      "id": "a74b015d-f2ba-4aab-b85c-2e2425e228e7",
      "name": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "value": "eKfg24cv0NCfk4D4",
          "mode": "list",
          "cachedResultName": "Tickets",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/eKfg24cv0NCfk4D4"
        },
        "filters": {
          "conditions": [
            {
              "keyName": "tid",
              "keyValue": "={{ $('Telegram Trigger').item.json.message.chat.id }}"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        768,
        624
      ],
      "id": "f09345f2-e790-4bf4-8fb9-977701c2da53",
      "name": "Ticket"
    },
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "value": "fMHs7Mn4OsdaXoqX",
          "mode": "list",
          "cachedResultName": "Chats",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/fMHs7Mn4OsdaXoqX"
        },
        "filters": {
          "conditions": [
            {
              "keyName": "tid",
              "keyValue": "={{ $('\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c').item.json.message.chat.id }}"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        768,
        768
      ],
      "id": "db7f0510-377e-4682-8ee4-44a1a0c23d28",
      "name": "Chat"
    },
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "value": "eKfg24cv0NCfk4D4",
          "mode": "list",
          "cachedResultName": "Tickets",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/eKfg24cv0NCfk4D4"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyName": "tid",
              "keyValue": "={{ $('Input').item.json.message.from.id }}"
            }
          ]
        },
        "returnAll": true
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        1552,
        -32
      ],
      "id": "9ab9b3bc-9faa-4446-bb68-243028d0eb5d",
      "name": "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "dataTableId": {
          "__rl": true,
          "value": "fMHs7Mn4OsdaXoqX",
          "mode": "list",
          "cachedResultName": "Chats",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/fMHs7Mn4OsdaXoqX"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "isAI": false,
            "tid": "={{ $('Telegram Trigger').item.json.message.from.id }}",
            "text": "={{ $('Telegram Trigger').item.json.message.text }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "tid",
              "displayName": "tid",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "text",
              "displayName": "text",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "isAI",
              "displayName": "isAI",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "boolean",
              "readOnly": false,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        928,
        -16
      ],
      "id": "6e7cf32b-ca0f-4f35-884c-6ba712a2ba53",
      "name": "\u0427\u0430\u0442"
    },
    {
      "parameters": {
        "dataTableId": {
          "__rl": true,
          "value": "fMHs7Mn4OsdaXoqX",
          "mode": "list",
          "cachedResultName": "Chats",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/fMHs7Mn4OsdaXoqX"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "isAI": true,
            "tid": "={{ $items(\"Telegram Trigger\")[0].json.message.from.id }}",
            "text": "={{ $json.output }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "tid",
              "displayName": "tid",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "text",
              "displayName": "text",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "isAI",
              "displayName": "isAI",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "boolean",
              "readOnly": false,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        4320,
        -176
      ],
      "id": "5025bf1e-efd3-4283-92a6-dc55768fe1f9",
      "name": "Insert row1"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.message.text }}",
                    "rightValue": "/start",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "55643329-f2e7-489e-b1f7-ca26bcde08ea"
                  }
                ],
                "combinator": "and"
              }
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "784c843f-0c30-49e2-9bf2-59ca44c8c394",
                    "leftValue": "={{ $json.message.text }}",
                    "rightValue": "/end",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              }
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "fe02bd34-5580-4947-b9ab-108567cee7eb",
                    "leftValue": "={{ $json.message.text }}",
                    "rightValue": "/h",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              }
            }
          ]
        },
        "options": {
          "fallbackOutput": "extra"
        }
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.3,
      "position": [
        144,
        0
      ],
      "id": "032fd604-3849-4533-8ba2-466729fded70",
      "name": "\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c"
    },
    {
      "parameters": {
        "operation": "toText",
        "sourceProperty": "content",
        "options": {}
      },
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        1232,
        1152
      ],
      "id": "4780d4f0-3242-458e-bf95-d0f55bfd44ab",
      "name": "Convert to File"
    },
    {
      "parameters": {
        "operation": "sendDocument",
        "chatId": "={{ $item(0).$node[\"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401\"].json.operator }}\n",
        "binaryData": true,
        "additionalFields": {
          "fileName": "=chat-{{ $('Code in JavaScript').item.json.tid }}.txt"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1424,
        1152
      ],
      "id": "da820de1-0abc-4a55-816a-c8adf619805e",
      "name": "Send a document",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "function fmtTime(iso) {\n  return new Date(iso).toLocaleString(\"ru-RU\", {\n    year: \"numeric\",\n    month: \"2-digit\",\n    day: \"2-digit\",\n    hour: \"2-digit\",\n    minute: \"2-digit\",\n    second: \"2-digit\",\n  });\n}\n\nconst tid = items[0]?.json?.tid ?? \"unknown\";\n\nlet out = `\u0427\u0410\u0422 tid: ${tid}\\n====================================\\n\\n`;\n\nfor (const item of items) {\n  const { id, text, isAI, createdAt } = item.json;\n\n  const role = isAI ? \"\u0418\u0418\" : \"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\";\n  const time = fmtTime(createdAt || new Date().toISOString());\n  const safeText = (text || \"\").replace(/\\r/g, \"\");\n\n  out += `[${time}] ${role} (#${id}):\\n`;\n  out += safeText + \"\\n\\n------------------------------------\\n\\n\";\n}\n\nreturn [\n  {\n    json: {\n      content: out,\n      tid,\n    },\n  },\n];\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1072,
        1152
      ],
      "id": "3284e90a-cb0e-4483-bd9b-561e1d5a01bd",
      "name": "Code in JavaScript"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=\u0422\u044b \u2014 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.\n\n\u041d\u0430 \u0432\u0445\u043e\u0434 \u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0448\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u0434\u0440\u044f\u0434. \u042d\u0442\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u0438\u043d \u0442\u0435\u043a\u0441\u0442.\n\n\u0422\u0432\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043a\u0440\u0430\u0442\u043a\u043e \u0438 \u0442\u043e\u0447\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b \u043a\u043b\u0438\u0435\u043d\u0442, \u043a\u0430\u043a\u0430\u044f \u0443 \u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438 \u043a\u0430\u043a\u0430\u044f \u043f\u043e\u043c\u043e\u0449\u044c \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u0430. \u041d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439 \u0434\u043e\u0441\u043b\u043e\u0432\u043d\u043e \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0441\u0442 \u2014 \u0434\u0430\u0439 \u0441\u0436\u0430\u0442\u043e\u0435, \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u0440\u0435\u0437\u044e\u043c\u0435.\n\n\u041f\u0440\u0430\u0432\u0438\u043b\u0430:\n1. \u0412\u044b\u0434\u0435\u043b\u044f\u0439 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0446\u0435\u043b\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0448\u0438\u0442\u044c.\n2. \u0418\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0439 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0438\u043b\u0438 \u043f\u0443\u0441\u0442\u044b\u0435 \u0444\u0440\u0430\u0437\u044b.\n3. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0443\u0442\u044c: \u0447\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0445\u043e\u0447\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c.\n4. \u041f\u0438\u0448\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u2014 1\u20133 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f.\n\n\u0424\u043e\u0440\u043c\u0430\u0442 \u043e\u0442\u0432\u0435\u0442\u0430:\n\u2014 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b/\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        1232,
        800
      ],
      "id": "82dff4ad-dbc5-4713-9004-bcf64c7df60b",
      "name": "AI Agent1"
    },
    {
      "parameters": {
        "jsCode": "\nconst userTexts = items\n  .filter(i => i.json.isAI === false)\n  .map(i => i.json.text || \"\")\n  .join(\"\\n\\n\"); \n\nreturn [\n  {\n    json: {\n      text: userTexts\n    }\n  }\n];\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1040,
        880
      ],
      "id": "6ab10410-a5b8-437b-b7bd-8d02c4d4450c",
      "name": "Code in JavaScript1"
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        1232,
        928
      ],
      "id": "854fa94c-2c17-453a-bdd9-d6b0dee9a61f",
      "name": "Groq Chat Model5",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "fc380f6c-21de-4f42-a290-50953344f155",
              "name": "operator",
              "value": 928513056,
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        496,
        640
      ],
      "id": "c3c276e2-a34d-4dac-8cc7-19156e392a9f",
      "name": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401"
    },
    {
      "parameters": {
        "chatId": "={{ $item(0).$node[\"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401\"].json.operator }}\n",
        "text": "={{ $json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1680,
        784
      ],
      "id": "0425b106-5cff-449b-84ad-91cb25e3c10e",
      "name": "Send a text message2",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $item(0).$node[\"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401\"].json.operator }}\n",
        "text": "=@{{ $('Telegram Trigger').item.json.message.chat.username }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        784,
        1072
      ],
      "id": "0936c148-5b95-45e9-a297-0a977f5c8242",
      "name": "\u041b\u041e\u0433\u0438\u043d \u041a\u043b\u0438\u0435\u043d\u0442\u0430",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $item(0).$node[\"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401\"].json.operator }}\n",
        "text": "=\u0422\u0435\u043c\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 - {{ $json.theme.replace(/_/g, '\\\\_') }} ({{ $json.theme_disc }})\n\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 - {{ $json.category }} ({{ $json.category_disc }})\n\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 - {{ $json.type }} ({{ $json.type_id_disc }})\n",
        "additionalFields": {
          "appendAttribution": false,
          "parse_mode": "Markdown"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1264,
        608
      ],
      "id": "cc512c35-b96e-42e4-b708-6f1a7d304534",
      "name": "\u041b\u041e\u0433\u0438\u043d \u041a\u043b\u0438\u0435\u043d\u0442\u04301",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// \u0411\u0435\u0440\u0451\u043c \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 (\u0443 \u0442\u0435\u0431\u044f \u043e\u0434\u0438\u043d item)\nconst item = $json;\n\n// \u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u043b\u044f\nconst tid      = item.tid;\nconst theme    = item.theme;\nconst category = item.category;\nconst type     = item.type;\n\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\n/* 1. TYPE_ID + TYPE_ID_DISC                     */\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\nlet type_id = 0;\nlet type_id_disc = \"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430.\";\n\nif (type === \"information\") {\n  type_id = 1;\n  type_id_disc = \"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441: \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u043e\u0441\u0438\u0442 \u0441\u043f\u0440\u0430\u0432\u043a\u0443, \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0438\u043b\u0438 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0443\u0441\u043b\u0443\u0433\u0438.\";\n}\nelse if (type === \"incident\") {\n  type_id = 2;\n  type_id_disc = \"\u0418\u043d\u0446\u0438\u0434\u0435\u043d\u0442: \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043a\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u0430\u0437\u0435 \u0443\u0441\u043b\u0443\u0433\u0438.\";\n}\nelse if (type === \"service_request\") {\n  type_id = 3;\n  type_id_disc = \"\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0443\u0441\u043b\u0443\u0433\u0443: \u043a\u043b\u0438\u0435\u043d\u0442 \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441.\";\n}\nelse if (type === \"billing\") {\n  type_id = 4;\n  type_id_disc = \"\u0411\u0438\u043b\u043b\u0438\u043d\u0433: \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e\u043f\u043b\u0430\u0442\u044b, \u0441\u0447\u0435\u0442\u043e\u0432, \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u043e\u0432.\";\n}\nelse if (type === \"complaint\") {\n  type_id = 5;\n  type_id_disc = \"\u0416\u0430\u043b\u043e\u0431\u0430: \u043d\u0435\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0431\u043e\u0442, \u0443\u0441\u043b\u0443\u0433\u043e\u0439 \u0438\u043b\u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c.\";\n}\nelse if (type === \"product_question\") {\n  type_id = 6;\n  type_id_disc = \"\u0412\u043e\u043f\u0440\u043e\u0441 \u043f\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0443: \u043a\u043b\u0438\u0435\u043d\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f.\";\n}\n\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\n/* 2. THEME_DISK                                 */\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\nlet theme_disc = \"\u0414\u0440\u0443\u0433\u0430\u044f \u0442\u0435\u043c\u0430 / \u043d\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043e\";\n\nif (theme === 'internal_it') {\n  theme_disc = '\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 HelpDesk: \u0434\u043e\u0441\u0442\u0443\u043f\u044b, \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043c\u0435\u0441\u0442\u043e, \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, VPN, \u043f\u043e\u0447\u0442\u0430.';\n} else if (theme === 'internet_fixed') {\n  theme_disc = '\u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442: Wi-Fi, \u0440\u043e\u0443\u0442\u0435\u0440, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u043e\u0431\u0440\u044b\u0432\u044b.';\n} else if (theme === 'mobile') {\n  theme_disc = '\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c: \u0437\u0432\u043e\u043d\u043a\u0438, SMS, \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0440\u043e\u0443\u043c\u0438\u043d\u0433, SIM/eSIM.';\n} else if (theme === 'iptv') {\n  theme_disc = 'IPTV: \u043a\u0430\u043d\u0430\u043b\u044b, \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430, \u0437\u0432\u0443\u043a/\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430.';\n} else if (theme === 'telephony') {\n  theme_disc = '\u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044f: \u0433\u0443\u0434\u043e\u043a, \u0432\u044b\u0437\u043e\u0432\u044b, \u0448\u0443\u043c\u044b.';\n} else if (theme === 'portal_app') {\n  theme_disc = '\u041b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442/\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0432\u0445\u043e\u0434, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433, \u043e\u043f\u043b\u0430\u0442\u044b.';\n} else if (theme === 'billing_system') {\n  theme_disc = '\u041e\u043f\u043b\u0430\u0442\u044b: \u0441\u0447\u0435\u0442\u0430, \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b, \u0430\u0432\u0442\u043e\u043f\u043b\u0430\u0442\u0435\u0436\u0438.';\n} else if (theme === 'b2b_services') {\n  theme_disc = 'B2B \u0443\u0441\u043b\u0443\u0433\u0438: \u0430\u0432\u0430\u0440\u0438\u0438 \u043f\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c, VPN L2/L3, \u0430\u0440\u0435\u043d\u0434\u0430 \u043b\u0438\u043d\u0438\u0439, \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u044b.';\n}\n\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\n/* 3. CATEGORY_DISC                               */\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\nlet category_disc = '\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.';\n\nif (category === 'critical') {\n  category_disc = '\u041a\u0440\u0438\u0442\u0438\u0447\u043d\u043e: \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438.';\n} else if (category === 'high') {\n  category_disc = '\u0412\u044b\u0441\u043e\u043a\u0430\u044f \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c: \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u043c\u0438.';\n} else if (category === 'normal') {\n  category_disc = '\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442: \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0441\u0440\u043e\u043a\u0438.';\n} else if (category === 'low') {\n  category_disc = '\u041d\u0438\u0437\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442: \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u0437\u0436\u0435.';\n}\n\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\n/* 4. \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 JSON                     */\n/*\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500*/\nreturn [\n  {\n    json: {\n      tid: tid,\n      theme: theme,\n      theme_disc: theme_disc,\n      category: category,\n      category_disc: category_disc,\n      type: type,\n      type_id: type_id,\n      type_id_disc: type_id_disc\n    }\n  }\n];\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        976,
        624
      ],
      "id": "2c77bef4-2003-4ec3-99f2-db772821f733",
      "name": "Code in JavaScript2"
    },
    {
      "parameters": {
        "jsCode": "let text = $items('AI Agent')[0].json.output || '';\n\nconst allowedTags = [\"b\", \"strong\", \"i\", \"em\", \"u\", \"s\", \"a\", \"code\", \"pre\", \"tg-spoiler\"];\n\n// 1) \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 Markdown -> HTML,\n// \u0447\u0442\u043e\u0431\u044b Telegram \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u043d\u044f\u043b, \u0430 \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u0438 \u0443\u0448\u043b\u0438\n\n// \u043c\u0430\u0440\u043a\u0434\u0430\u0443\u043d-\u0441\u043f\u0438\u0441\u043a\u0438 \u0432\u0438\u0434\u0430 \"* \u0447\u0442\u043e-\u0442\u043e\" \u2192 \u0431\u0443\u043b\u043b\u0435\u0442\u044b\ntext = text.replace(/^\\s*\\*\\s+/gm, '\u2022 ');\n\n// \u0436\u0438\u0440\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442: **text** \u2192 <b>text</b>\ntext = text.replace(/\\*\\*(.+?)\\*\\*/g, '<b>$1</b>');\n\n// \u043a\u0443\u0440\u0441\u0438\u0432: *text* \u2192 <i>text</i>\n// (\u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 **...**, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c)\ntext = text.replace(/\\*(.+?)\\*/g, '<i>$1</i>');\n\n// \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0443\u0431\u0435\u0440\u0451\u043c \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u0438\ntext = text.replace(/\\*/g, '');\n\n// 2) \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f HTML\nfunction escapeHtml(str) {\n  return str\n    .replace(/&/g, \"&amp;\")\n    .replace(/</g, \"&lt;\")\n    .replace(/>/g, \"&gt;\")\n    .replace(/\"/g, \"&quot;\")\n    .replace(/'/g, \"&#39;\");\n}\n\n// \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0451\nlet escaped = escapeHtml(text);\n\n// 3) \u041f\u043e\u0442\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430\nallowedTags.forEach(tag => {\n  const tagPattern = new RegExp(`<${tag}(\\\\s[^>]*?)?>[\\\\s\\\\S]*?<\\\\/${tag}>`, \"gi\");\n  const selfClosePattern = new RegExp(`<${tag}(\\\\s[^>]*?)?\\\\/>`, \"gi\");\n\n  let match;\n  while ((match = tagPattern.exec(text)) !== null) {\n    const originalFragment = match[0];              // <b>...</b>\n    const escapedFragment = escapeHtml(originalFragment); // &lt;b&gt;...&lt;/b&gt;\n    escaped = escaped.split(escapedFragment).join(originalFragment);\n  }\n\n  while ((match = selfClosePattern.exec(text)) !== null) {\n    const originalFragment = match[0];\n    const escapedFragment = escapeHtml(originalFragment);\n    escaped = escaped.split(escapedFragment).join(originalFragment);\n  }\n});\n\n// 4) \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c json \u0441 \u043e\u0447\u0438\u0449\u0435\u043d\u043d\u044b\u043c HTML \u0434\u043b\u044f Telegram\nreturn {\n  json: {\n    text: escaped\n  }\n};\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        4528,
        -176
      ],
      "id": "1a93bbec-fda3-418a-b3c2-07f4cfd06bb5",
      "name": "Code in JavaScript3"
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "\u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        848,
        224
      ],
      "id": "52251c7d-f4d2-42c0-bcd0-7ee4cb29b789",
      "name": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04402",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "value": "eKfg24cv0NCfk4D4",
          "mode": "list",
          "cachedResultName": "Tickets",
          "cachedResultUrl": "/projects/5ZN2nSuDar1xnBef/datatables/eKfg24cv0NCfk4D4"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyName": "tid",
              "keyValue": "={{ $json.message.from.id }}"
            }
          ]
        },
        "returnAll": true
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        352,
        144
      ],
      "id": "1168c23f-c189-47da-bfa3-9e2e22d969dd",
      "name": "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u04301",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "552a1c69-b142-4269-ae1f-3ca1b203419d",
              "leftValue": "={{ $json.id }}",
              "rightValue": "",
              "operator": {
                "type": "number",
                "operation": "exists",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        544,
        240
      ],
      "id": "bec3acd0-43b1-444c-80e1-0649040a5c29",
      "name": "If2"
    },
    {
      "parameters": {
        "model": "openai/gpt-oss-120b",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        3984,
        -32
      ],
      "id": "0061b0c1-25fe-4cec-9ffe-b588f1fa818a",
      "name": "Groq Chat Model6",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "filters": {}
      },
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.3,
      "position": [
        2320,
        416
      ],
      "id": "0bb7507f-e18b-41d9-aa6a-a8b65467d86e",
      "name": "Gmail Trigger",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.snippet }}",
        "options": {
          "systemMessage": "\u0422\u044b \u2014 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a HelpDesk \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u041a\u0430\u0437\u0430\u0445\u0442\u0435\u043b\u0435\u043a\u043e\u043c.\n\n\u0422\u0432\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0432\u0435\u0436\u043b\u0438\u0432\u043e, \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u0443\u0441\u043b\u0443\u0433\u0430\u043c\u0438 \u0441\u0432\u044f\u0437\u0438 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c\u0438 IT-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438.  \n\u0422\u044b \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0448\u044c\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0430\u043c\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0448\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443.\n\n\u0422\u0412\u041e\u0418 \u041e\u0421\u041d\u041e\u0412\u041d\u042b\u0415 \u0417\u0410\u0414\u0410\u0427\u0418:\n1. \u041e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c, \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.\n2. \u0414\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c.\n3. \u0417\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0442\u043e\u0447\u043d\u044f\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0435\u0441\u043b\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.\n4. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441:\n   \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c (\u0434\u043e\u043c/\u043e\u0444\u0438\u0441, Wi-Fi, \u0440\u043e\u0443\u0442\u0435\u0440\u044b, \u043c\u043e\u0434\u0435\u043c\u044b);  \n   \u2014 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u044c\u044e (\u0437\u0432\u043e\u043d\u043a\u0438, SMS, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0440\u043e\u0443\u043c\u0438\u043d\u0433);  \n   \u2014 IPTV \u0438 \u0442\u0435\u043b\u0435\u0432\u0438\u0434\u0435\u043d\u0438\u0435\u043c;  \n   \u2014 \u043b\u0438\u0447\u043d\u044b\u043c \u043a\u0430\u0431\u0438\u043d\u0435\u0442\u043e\u043c \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c;  \n   \u2014 \u043e\u043f\u043b\u0430\u0442\u043e\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u043e\u043c, \u0443\u0441\u043b\u0443\u0433\u0430\u043c\u0438 \u0438 \u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438;  \n   \u2014 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 B2B \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438;  \n   \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 IT-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0434\u043b\u044f \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 (\u0434\u043e\u0441\u0442\u0443\u043f\u044b, VPN, \u043f\u043e\u0447\u0442\u0430, \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043c\u0435\u0441\u0442\u0430).\n5. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c.\n6. \u041d\u0435 \u0432\u044b\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u043a\u0442\u044b \u2014 \u0435\u0441\u043b\u0438 \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c, \u043f\u0440\u043e\u0441\u0438 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0439.\n\n\u041f\u0420\u0410\u0412\u0418\u041b\u0410 \u0420\u0410\u0411\u041e\u0422\u042b:\n\u2014 \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0448\u044c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u044f\u0441\u043d\u043e.  \n\u2014 \u041d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0448\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0441\u0431\u0440\u043e\u0441 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f) \u0431\u0435\u0437 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d.  \n\u2014 \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0439 \u0438\u0445 \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043a \u0441\u043b\u043e\u0436\u043d\u044b\u043c.  \n\u2014 \u0421\u043b\u0435\u0434\u0438 \u0437\u0430 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043e\u0439 \u043e\u0431\u0449\u0435\u043d\u0438\u044f: \u0431\u0443\u0434\u044c \u0432\u0435\u0436\u043b\u0438\u0432\u044b\u043c, \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u044b\u043c, \u0443\u0432\u0430\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c.  \n\u2014 \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e, \u0442\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0448\u044c \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043d.  \n\u2014 \u0412\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439 \u0434\u0438\u0430\u043b\u043e\u0433: \u0443\u0442\u043e\u0447\u043d\u044f\u0439 \u0434\u0435\u0442\u0430\u043b\u0438, \u043f\u043e\u043c\u043e\u0433\u0430\u0439 \u043f\u043e\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b.\n\n\u0422\u042b \u041d\u0415 \u0414\u0415\u041b\u0410\u0415\u0428\u042c:\n\u2014 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c \u0437\u0430\u044f\u0432\u043a\u0438;  \n\u2014 \u043d\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0448\u044c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u044b;  \n\u2014 \u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0448\u044c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435;  \n\u2014 \u043d\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0448\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b.\n\n\u0422\u044b \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0438 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        2528,
        416
      ],
      "id": "d1b85b59-0f49-4cc0-8c11-a82d61ada871",
      "name": "AI Agent2"
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        2512,
        576
      ],
      "id": "02b0b6b8-b74a-4cd7-a97d-df31bd91e818",
      "name": "Groq Chat Model7",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "jokergame434@gmail.com",
        "subject": "Help Desk",
        "message": "={{ $json.output }}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        2880,
        416
      ],
      "id": "d95aaf2a-b994-4d24-b0f2-17afb8eb58c5",
      "name": "Send a message",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message": {
      "main": [
        []
      ]
    },
    "Text Classifier": {
      "main": [
        [
          {
            "node": "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Insert row1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Text Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Input": {
      "main": [
        [
          {
            "node": "\u0427\u0430\u0442",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Priority",
            "type": "main",
            "index": 0
          },
          {
            "node": "Theme",
            "type": "main",
            "index": 0
          },
          {
            "node": "Type",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Priority",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Category": {
      "main": [
        [
          {
            "node": "PRIORITY",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Category1": {
      "main": [
        [
          {
            "node": "PRIORITY",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Category2": {
      "main": [
        [
          {
            "node": "PRIORITY",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Category3": {
      "main": [
        [
          {
            "node": "PRIORITY",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Insert row": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Priority": {
      "main": [
        [
          {
            "node": "Category",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Category1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Category2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Category3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Theme",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Theme": {
      "main": [
        [
          {
            "node": "theme",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "theme7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Type",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Type": {
      "main": [
        [
          {
            "node": "type",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "type1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "type2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "type3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "type4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "type5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "type2": {
      "main": [
        [
          {
            "node": "TYPE",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "type": {
      "main": [
        [
          {
            "node": "TYPE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "type1": {
      "main": [
        [
          {
            "node": "TYPE",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "type3": {
      "main": [
        [
          {
            "node": "TYPE",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "type4": {
      "main": [
        [
          {
            "node": "TYPE",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "type5": {
      "main": [
        [
          {
            "node": "TYPE",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "theme": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "theme1": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "theme2": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "theme3": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "theme4": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "theme5": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "theme6": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 6
          }
        ]
      ]
    },
    "theme7": {
      "main": [
        [
          {
            "node": "THEME",
            "type": "main",
            "index": 7
          }
        ]
      ]
    },
    "THEME": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "TYPE": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PRIORITY": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "TO OUT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TO OUT": {
      "main": [
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete row(s)": {
      "main": [
        []
      ]
    },
    "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u0427\u0430\u0442": {
      "main": [
        [
          {
            "node": "Text Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert row1": {
      "main": [
        [
          {
            "node": "Code in JavaScript3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c": {
      "main": [
        [
          {
            "node": "Send a text message1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete row(s)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Delete row(s)1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u04301",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          },
          {
            "node": "Code in JavaScript1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Send a document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ticket": {
      "main": [
        [
          {
            "node": "Code in JavaScript2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript1": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Send a text message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401": {
      "main": [
        [
          {
            "node": "Chat",
            "type": "main",
            "index": 0
          },
          {
            "node": "Ticket",
            "type": "main",
            "index": 0
          },
          {
            "node": "\u041b\u041e\u0433\u0438\u043d \u041a\u043b\u0438\u0435\u043d\u0442\u0430",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript2": {
      "main": [
        [
          {
            "node": "\u041b\u041e\u0433\u0438\u043d \u041a\u043b\u0438\u0435\u043d\u0442\u04301",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript3": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440": {
      "main": [
        []
      ]
    },
    "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u04301": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04401",
            "type": "main",
            "index": 0
          },
          {
            "node": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u04402",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "AI Agent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model7": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent2": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "632a80e6-9b82-46d5-9e42-b5206f082f0a",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "dD5cV0raiaanAfSH",
  "tags": []
}