{
  "id": "vid001-token-tool-ticket-json",
  "name": "VID-001 TokenTool: support request to JSON",
  "active": false,
  "nodes": [
    {
      "id": "17d714d3-d854-4ef4-958d-c4adef36e9e1",
      "name": "Start synthetic demo",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        100,
        300
      ],
      "parameters": {}
    },
    {
      "id": "37a66213-25e0-4a9f-b931-9004192293ad",
      "name": "Synthetic support request",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        300,
        300
      ],
      "parameters": {
        "mode": "manual",
        "includeOtherFields": false,
        "assignments": {
          "assignments": [
            {
              "id": "vid001-request-text",
              "name": "request_text",
              "type": "string",
              "value": "Не могу войти в личный кабинет после смены пароля."
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "45e759ec-f486-4015-a5fe-245b28732300",
      "name": "TokenTool chat completion",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.5,
      "position": [
        500,
        300
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.tokentool.ru/api/v1/chat/completions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpTemplatedCustomAuth",
        "sendBody": true,
        "contentType": "json",
        "specifyBody": "json",
        "jsonBody": {
          "model": "REPLACE_WITH_CURRENT_MODEL_ID",
          "messages": [
            {
              "role": "system",
              "content": "Верни только JSON с полями category, priority и reply."
            },
            {
              "role": "user",
              "content": "={{ $json.request_text }}"
            }
          ]
        },
        "options": {
          "timeout": 30000
        }
      },
      "credentials": {
        "httpTemplatedCustomAuth": {
          "id": "REPLACE_WITH_LOCAL_CREDENTIAL_ID",
          "name": "TokenTool demo (SET LOCALLY — NO KEY INCLUDED)"
        }
      }
    }
  ],
  "connections": {
    "Start synthetic demo": {
      "main": [
        [
          {
            "node": "Synthetic support request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Synthetic support request": {
      "main": [
        [
          {
            "node": "TokenTool chat completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {}
}
