mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-17 15:36:52 +00:00
299 lines
5.8 KiB
JSON
299 lines
5.8 KiB
JSON
{
|
|
"name": "NDA Risk Detector",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"content": "## NDA Risk Detector",
|
|
"height": 520,
|
|
"width": 1100
|
|
},
|
|
"id": "623f0f39-6ae9-4fbe-8d0d-b3436dc257e3",
|
|
"name": "Sticky",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-500,
|
|
-250
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "nda_risk_detector"
|
|
},
|
|
"id": "e49461a4-0769-4188-9b92-fe21b42df652",
|
|
"name": "Webhook",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-300,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"chunkSize": 400,
|
|
"chunkOverlap": 40
|
|
},
|
|
"id": "75634d4b-5829-40eb-b94f-39a3cec62398",
|
|
"name": "Splitter",
|
|
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-100,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"model": "default"
|
|
},
|
|
"id": "505940aa-8b4b-4480-9cb8-827413127240",
|
|
"name": "Embeddings",
|
|
"type": "@n8n/n8n-nodes-langchain.embeddingsHuggingFace",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"huggingFaceApi": {
|
|
"id": "HF_API",
|
|
"name": "HuggingFace"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "insert",
|
|
"indexName": "nda_risk_detector"
|
|
},
|
|
"id": "f587ee36-1078-43d2-bcc4-8b5cf712ec14",
|
|
"name": "Insert",
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreRedis",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"redisApi": {
|
|
"id": "REDIS_API",
|
|
"name": "Redis account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"indexName": "nda_risk_detector"
|
|
},
|
|
"id": "bcd0263d-70e7-4448-a03b-5dbf2219334e",
|
|
"name": "Query",
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreRedis",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
-180
|
|
],
|
|
"credentials": {
|
|
"redisApi": {
|
|
"id": "REDIS_API",
|
|
"name": "Redis account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"name": "Redis"
|
|
},
|
|
"id": "1e08d4d4-07eb-49c4-ac96-9a218e63e8ea",
|
|
"name": "Tool",
|
|
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
480,
|
|
-180
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "5d54e2b7-2cac-4be6-8f88-0eef2bc8981e",
|
|
"name": "Memory",
|
|
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
|
"typeVersion": 1.3,
|
|
"position": [
|
|
480,
|
|
-40
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "61ac3b74-d520-4777-a88c-0e5bea059266",
|
|
"name": "Chat",
|
|
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
480,
|
|
-340
|
|
],
|
|
"credentials": {
|
|
"openAiApi": {
|
|
"id": "OPENAI_API",
|
|
"name": "OpenAI"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"promptType": "define",
|
|
"text": "={{ $json }}"
|
|
},
|
|
"id": "d0996ab0-d491-47b1-87b5-9746bd8177e6",
|
|
"name": "Agent",
|
|
"type": "@n8n/n8n-nodes-langchain.agent",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
760,
|
|
-40
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "append",
|
|
"documentId": "SHEET_ID",
|
|
"sheetName": "Log"
|
|
},
|
|
"id": "e32daeb2-39e5-4b1b-bf51-f8995831e076",
|
|
"name": "Sheet",
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4,
|
|
"position": [
|
|
960,
|
|
-40
|
|
],
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "SHEETS_API",
|
|
"name": "Sheets"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"Webhook": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Splitter",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Memory",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Splitter": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Embeddings",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
],
|
|
"ai_textSplitter": [
|
|
[
|
|
{
|
|
"node": "Insert",
|
|
"type": "ai_textSplitter",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Embeddings": {
|
|
"ai_embedding": [
|
|
[
|
|
{
|
|
"node": "Insert",
|
|
"type": "ai_embedding",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Query",
|
|
"type": "ai_embedding",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Insert": {
|
|
"ai_document": [
|
|
[]
|
|
]
|
|
},
|
|
"Query": {
|
|
"ai_vectorStore": [
|
|
[
|
|
{
|
|
"node": "Tool",
|
|
"type": "ai_vectorStore",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Tool": {
|
|
"ai_tool": [
|
|
[
|
|
{
|
|
"node": "Agent",
|
|
"type": "ai_tool",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Memory": {
|
|
"ai_memory": [
|
|
[
|
|
{
|
|
"node": "Agent",
|
|
"type": "ai_memory",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Chat": {
|
|
"ai_languageModel": [
|
|
[
|
|
{
|
|
"node": "Agent",
|
|
"type": "ai_languageModel",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Agent": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
}
|
|
} |