{
  "name": "Nodbot - GigaChat support draft with PII masking",
  "nodes": [
    {
      "parameters": {
        "path": "gigachat-support-draft",
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "id": "c4bab69d-3af4-4e8b-aa28-0fd2e6cda503",
      "name": "Webhook ticket input",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        260
      ]
    },
    {
      "parameters": {},
      "id": "70b7746f-e21a-4cac-936a-f94d0833e2d0",
      "name": "Sanitize and build prompt",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        280,
        260
      ]
    },
    {
      "parameters": {},
      "id": "b78d3faf-d3a0-47f3-85dd-29190294790c",
      "name": "Call GigaChat API",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        560,
        260
      ]
    },
    {
      "parameters": {},
      "id": "f1ddfbe7-f5f7-4cc5-af19-6d1a9acbadda",
      "name": "Fact and risk guard",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        840,
        260
      ]
    },
    {
      "parameters": {},
      "id": "4b81a83d-38a4-4b54-93d2-458becffdf60",
      "name": "Send draft to operator",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        1120,
        260
      ]
    }
  ],
  "connections": {
    "Webhook ticket input": {
      "main": [
        [
          {
            "node": "Sanitize and build prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sanitize and build prompt": {
      "main": [
        [
          {
            "node": "Call GigaChat API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call GigaChat API": {
      "main": [
        [
          {
            "node": "Fact and risk guard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fact and risk guard": {
      "main": [
        [
          {
            "node": "Send draft to operator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [
    "nodbot",
    "production",
    "template"
  ],
  "triggerCount": 1,
  "updatedAt": "2026-05-30T00:00:00.000Z",
  "versionId": "7198f03f-e30f-4b01-8372-ef6adc616a0e",
  "meta": {
    "templateCredsSetupCompleted": false
  }
}