{
  "name": "Complete AI safety suite: test 9 guardrail layers with Groq LLM",
  "nodes": [
    {
      "id": "14b7149f-c602-489d-b367-d9ef7bb22532",
      "name": "Start - Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -688,
        704
      ]
    },
    {
      "id": "b882a4f0-0009-41c8-bc33-6d292f769452",
      "name": "Test Cases Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -464,
        704
      ]
    },
    {
      "id": "1b814950-daaf-45d1-b145-a9e612038971",
      "name": "Split Test Cases",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -240,
        704
      ]
    },
    {
      "id": "ca99166f-65ad-4bbc-b401-0b48c829eadc",
      "name": "Format Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -16,
        704
      ]
    },
    {
      "id": "2a93f168-0da1-4dfe-b1ec-aa627876026f",
      "name": "Case 1 - Keyword Blocking",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        -64
      ]
    },
    {
      "id": "72a600b4-1aea-4da7-925e-47a31d0d9209",
      "name": "Case 2 - Jailbreak Detection",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        128
      ]
    },
    {
      "id": "c838199b-a3b2-4bd9-84e4-f7176457ddfe",
      "name": "Case 3 - NSFW Content",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        320
      ]
    },
    {
      "id": "8e7f2c23-272a-4ca1-8fe1-a0343001bc45",
      "name": "Case 4 - PII Detection (Sanitize)",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        512
      ]
    },
    {
      "id": "fc79921e-d7f5-47a7-8741-1e606441150f",
      "name": "Case 5 - Secret Key Detection",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        704
      ]
    },
    {
      "id": "190e1574-6a5d-4bbb-97ef-d192970f3bb5",
      "name": "Case 6 - Topical Alignment",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        896
      ]
    },
    {
      "id": "2e48a5de-6007-463a-91be-6fcb2f6bfec9",
      "name": "Case 7 - URL Whitelisting",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        1088
      ]
    },
    {
      "id": "657739a2-c98b-49d4-8d79-f945d334b4fd",
      "name": "Case 8 - Block URLs with Credentials",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        1280
      ]
    },
    {
      "id": "dc0d90bb-8bc8-4c25-9a4e-33fd6be636b6",
      "name": "Case 9 - Custom Regex",
      "type": "@n8n/n8n-nodes-langchain.guardrails",
      "position": [
        208,
        1472
      ]
    },
    {
      "id": "264919fc-94a6-4d13-80c3-04585eef868a",
      "name": "Format Results",
      "type": "n8n-nodes-base.set",
      "position": [
        592,
        704
      ]
    },
    {
      "id": "c25e4b38-8cb7-4843-958c-58325b6efa8c",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        208,
        1616
      ]
    },
    {
      "id": "a20b78d5-5d58-402e-bb22-39cb3a56bd74",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        -176
      ],
      "parameters": {
        "width": 464,
        "height": 1936,
        "content": "# GUARDRAIL USE CASES"
      }
    },
    {
      "id": "e548d076-b8a3-42d6-91e1-87d203492099",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        656
      ],
      "parameters": {
        "width": null,
        "height": 192,
        "content": "## Raw Data"
      }
    },
    {
      "id": "4042470f-ab07-463d-9929-99e0142d83d8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        656
      ],
      "parameters": {
        "width": 336,
        "height": 192,
        "content": "## Clean Data"
      }
    },
    {
      "id": "394d7448-39dc-42b9-b195-ef953a13258a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1168,
        -192
      ],
      "parameters": {
        "width": 464,
        "height": 1972,
        "content": "# Guardrail 9-Case Suite\n\n# 🎥 **Watch the Tutorial**  \n[![Watch on YouTube](https://img.youtube.com/vi/jd4EUA71ehc/hqdefault.jpg)](https://youtu.be/jd4EUA71ehc)\n\n\nBuild a full safety layer inside n8n "
      }
    }
  ],
  "connections": {
    "Format Data": {
      "main": [
        [
          {
            "node": "Case 1 - Keyword Blocking",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 2 - Jailbreak Detection",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 3 - NSFW Content",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 4 - PII Detection (Sanitize)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 5 - Secret Key Detection",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 6 - Topical Alignment",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 7 - URL Whitelisting",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 8 - Block URLs with Credentials",
            "type": "main",
            "index": 0
          },
          {
            "node": "Case 9 - Custom Regex",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Case 1 - Keyword Blocking",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 3 - NSFW Content",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 4 - PII Detection (Sanitize)",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 5 - Secret Key Detection",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 6 - Topical Alignment",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 7 - URL Whitelisting",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 8 - Block URLs with Credentials",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 9 - Custom Regex",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Case 2 - Jailbreak Detection",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Test Cases Data": {
      "main": [
        [
          {
            "node": "Split Test Cases",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Test Cases": {
      "main": [
        [
          {
            "node": "Format Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 3 - NSFW Content": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 9 - Custom Regex": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start - Manual Trigger": {
      "main": [
        [
          {
            "node": "Test Cases Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 1 - Keyword Blocking": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 7 - URL Whitelisting": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 6 - Topical Alignment": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 2 - Jailbreak Detection": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 5 - Secret Key Detection": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 4 - PII Detection (Sanitize)": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case 8 - Block URLs with Credentials": {
      "main": [
        [
          {
            "node": "Format Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}