This workflow corresponds to n8n.io template #11025 — we link there as the canonical source.
This workflow follows the Google Sheets → Google Gemini Chat recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "fe9eb898-2207-41d5-827b-c0dd4319cadd",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
160
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "aed33dce-fc48-40ca-b1fb-a3132bfb77b7",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
48,
-1072
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "43e81b43-5c9a-4023-acc3-ae68de657574",
"name": "Keywords",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
576,
288
],
"parameters": {},
"typeVersion": 1
},
{
"id": "209c8da3-2cb4-4fdd-add2-4aa5e41f13ce",
"name": "Jailbreak",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
560,
-848
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2d6eb346-e59b-44ee-96b3-95ac8b66d460",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-192,
-880
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "84ec1c33-c5b6-4121-bacf-919b1fa9245b",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
-384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "829c62cb-2b88-41f7-b5c1-d6b0e95ebcdc",
"name": "NSFW",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
560,
-352
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ce2e7f80-d8a5-432a-bc2d-d63049fa8681",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-704
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2fdf57fa-f7c7-4f40-9718-e2b6ba9a3c21",
"name": "PII",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
560,
-672
],
"parameters": {},
"typeVersion": 1
},
{
"id": "72c913e3-b671-46ef-a16b-fceac72d9d10",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-544
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b8348a1d-c86c-4f15-aa57-145de3c69964",
"name": "Secret Keys",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
560,
-512
],
"parameters": {},
"typeVersion": 1
},
{
"id": "751b28d4-b2a6-46fe-a0fc-68711b89cfdd",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
352,
-16
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b3220fe9-e7d0-4504-b55e-750afa6565d2",
"name": "Topical Alignment",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
560,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "999a731e-a436-451b-b1ba-6f0ad22860d5",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
208,
-208
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4a51ba15-1733-459c-beb1-fff48b8ecc08",
"name": "URLs",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
560,
-176
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3fd19c80-375f-4715-a656-41788f3991a7",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
16,
896
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2a9be219-9206-4acf-b2c9-5ea5d50b641d",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
1024
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "25d23e65-1755-404f-902c-8a057e1dd594",
"name": "Sanitize PII",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
-176,
1120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9e03a17a-2ae9-4c2e-a60a-5e83c13b227b",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
1024
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ce5c6d90-9b02-4cbc-9ec5-4810a4474f3f",
"name": "Sanitize Keys",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
384,
1120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "78c80474-f587-4838-a4fd-2c51a2cc9f90",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
624,
1024
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f5955887-4346-4d9a-89d4-201478f62fd8",
"name": "Sanitize URLs",
"type": "@n8n/n8n-nodes-langchain.guardrails",
"position": [
912,
1120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c0949a08-a854-4321-9dac-728764b04f70",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
1152,
-320
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c8726a39-4d21-44a5-9bba-de64b53edee7",
"name": "Guadrails Test Data",
"type": "n8n-nodes-base.googleSheets",
"position": [
-480,
-304
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "cb55d217-c2e5-474a-9861-1cc7bbbf6e8e",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
-320,
-384
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "3aead24e-1d62-4a44-b5cf-4f4d63cdf9a7",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1744,
-1104
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "81090d0d-12dc-4d76-92e3-cf83f228a57e",
"name": "Personal Data",
"type": "n8n-nodes-base.set",
"position": [
-384,
1120
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "7537e370-f47e-45ed-b2f9-00e632c15837",
"name": "API Keys",
"type": "n8n-nodes-base.set",
"position": [
176,
1120
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "fed23f7a-0bb5-470a-a0ff-a2d972366d21",
"name": "URLS",
"type": "n8n-nodes-base.set",
"position": [
704,
1120
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "800f868e-c3f3-41f8-9a77-25ca0b3e1006",
"name": "When clicking \u2018Execute workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-688,
-304
],
"parameters": {},
"typeVersion": 1
},
{
"id": "af0a90f2-791a-4afc-a115-1fee55891e1c",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
-864,
-1120
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "39742d8e-90fc-4932-9055-f6e2ed1d1710",
"name": "Sticky Note14",
"type": "n8n-nodes-base.stickyNote",
"position": [
-752,
832
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"connections": {
"URLS": {
"main": [
[
{
"node": "Sanitize URLs",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Jailbreak",
"type": "main",
"index": 0
}
],
[
{
"node": "PII",
"type": "main",
"index": 0
}
],
[
{
"node": "Secret Keys",
"type": "main",
"index": 0
}
],
[
{
"node": "NSFW",
"type": "main",
"index": 0
}
],
[
{
"node": "URLs",
"type": "main",
"index": 0
}
],
[
{
"node": "Topical Alignment",
"type": "main",
"index": 0
}
],
[
{
"node": "Keywords",
"type": "main",
"index": 0
}
]
]
},
"API Keys": {
"main": [
[
{
"node": "Sanitize Keys",
"type": "main",
"index": 0
}
]
]
},
"Keywords": {
"main": [
[],
[]
]
},
"Personal Data": {
"main": [
[
{
"node": "Sanitize PII",
"type": "main",
"index": 0
}
]
]
},
"Guadrails Test Data": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Keywords",
"type": "ai_languageModel",
"index": 0
},
{
"node": "NSFW",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Secret Keys",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Jailbreak",
"type": "ai_languageModel",
"index": 0
},
{
"node": "PII",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Topical Alignment",
"type": "ai_languageModel",
"index": 0
},
{
"node": "URLs",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When clicking \u2018Execute workflow\u2019": {
"main": [
[
{
"node": "Guadrails Test Data",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This workflow provides a complete testing rig for evaluating text against seven essential AI guardrails used in production systems. It helps you detect jailbreak attempts, PII exposure, NSFW content, secret key leaks, malicious URLs, topical misalignment, and keyword violations.…
Source: https://n8n.io/workflows/11025/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow automates sentiment analysis of Reddit posts related to Apple's WWDC25 event. It extracts data, categorizes posts, analyzes sentiment of comments, and updates a Google Sheet with the res
This workflow scrapes the top 10 pages on SERP and conducts an in-depth analysis of the keyword intent for each ranking keyword, saving the information to a Google Sheet for further analysis. We add o
This workflow automatically collects all comments from a specified YouTube video and analyzes the sentiment of each comment using an AI model (e.g., GPT, Claude or Gemini). The sentiment (Positive, Ne
Ask questions like “How much did I spend on food last month?” and get instant answers from your financial data — directly in Telegram.
The Problem That it Solves