{
  "name": "Vrymdor AI Node: remove PII, then call a model",
  "nodes": [
    {
      "parameters": {
        "content": "## Vrymdor AI Node in n8n\n1. **Settings**, **Community Nodes**, **Install**: `n8n-nodes-vrymnox`.\n2. Open **Vrymdor: remove PII**, **Credential**, **Create new**: paste the Node Host URL, Agent ID (`agt_...`) and Agent Secret (`vrym_agent_...`) from the **Connect your AI Node** card in your Vrymdor dashboard (**AI agents**, choose **n8n**), each with its own Copy button.\n3. **Execute workflow**. The output shows `[REDACTED:EMAIL]` and `[REDACTED:CREDIT_CARD]`, and `redactions` counts them.\n\nPut your own data in **Sample text**, or connect any trigger in its place.",
        "height": 360,
        "width": 440
      },
      "id": "c00bd9d9-f330-5fc2-ac81-ce7b090dc51c",
      "name": "How to use this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -460,
        -200
      ]
    },
    {
      "parameters": {},
      "id": "9ee44bf0-f5eb-54cb-9ee8-37284f568795",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "f2b6a766-3db2-541e-9ec1-b83b48ff88b6",
              "name": "text",
              "value": "Please email jane@example.com about the order on card 4242 4242 4242 4242.",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "71343df6-07c8-567d-b17d-78d7562feeaf",
      "name": "Sample text",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "operation": "sanitize",
        "input": "={{ $json.text }}"
      },
      "id": "8c81c03a-7cb0-5fe1-a973-074b648391fc",
      "name": "Vrymdor: remove PII",
      "type": "n8n-nodes-vrymnox.vrymnox",
      "typeVersion": 1,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "operation": "llm",
        "upstream": "anthropic",
        "path": "v1/messages",
        "input": "={{ { \"model\": \"claude-sonnet-5-5\", \"max_tokens\": 512, \"messages\": [{ \"role\": \"user\", \"content\": $json.output }] } }}"
      },
      "id": "22f075bd-597e-5d8f-b41e-37511494f12b",
      "name": "Vrymdor: call a model",
      "type": "n8n-nodes-vrymnox.vrymnox",
      "typeVersion": 1,
      "position": [
        660,
        0
      ],
      "disabled": true
    },
    {
      "parameters": {
        "content": "## Optional: a model call through the node\nOff until your node has an upstream named `anthropic`. Then select the step and press **D** to turn it on. The node checks the policy and masks emails, card numbers, keys and tokens again before the model sees the prompt.",
        "height": 220,
        "width": 360
      },
      "id": "d9ab6bd5-180c-5ad4-b62e-b9fe71637c6b",
      "name": "The model step",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        600,
        -260
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Sample text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample text": {
      "main": [
        [
          {
            "node": "Vrymdor: remove PII",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vrymdor: remove PII": {
      "main": [
        [
          {
            "node": "Vrymdor: call a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
