{
  "name": "SoterAI - Output Guard and Save",
  "nodes": [
    {
      "parameters": {},
      "id": "manual",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "llmResponse",
              "value": "A safe model response for the customer."
            }
          ]
        }
      },
      "id": "model",
      "name": "Mock Model Output",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "action": "outputGuard",
        "outputText": "={{$json.llmResponse}}",
        "onThreat": "REDACT"
      },
      "id": "guard",
      "name": "Guard Output",
      "type": "n8n-nodes-soterai.soterGuard",
      "typeVersion": 1,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "savedOutput",
              "value": "={{$json.outputText}}"
            }
          ]
        }
      },
      "id": "save",
      "name": "Save Safe Output",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Mock Model Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Model Output": {
      "main": [
        [
          {
            "node": "Guard Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Guard Output": {
      "main": [
        [
          {
            "node": "Save Safe Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {}
}