n8n-free-templates/Media/pr_crisis_detector.json

299 lines
5.8 KiB
JSON
Raw Normal View History

2025-05-19 01:08:15 -05:00
{
"name": "PR Crisis Detector",
"nodes": [
{
"parameters": {
"content": "## PR Crisis Detector",
"height": 520,
"width": 1100
},
"id": "51e4daa8-b45b-4ae4-96fe-2105f1999677",
"name": "Sticky",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-500,
-250
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "pr_crisis_detector"
},
"id": "01d0bfb2-001d-451e-ba33-1da3c3294f0f",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "f654bb12-4c8c-452d-981f-b6effb15296f",
"name": "Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-100,
0
]
},
{
"parameters": {
"model": "default"
},
"id": "696b4bad-e80b-4942-bd49-e151946f3d2c",
"name": "Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1,
"position": [
100,
0
],
"credentials": {
"openAiApi": {
"id": "OPENAI_API",
"name": "OpenAI"
}
}
},
{
"parameters": {
"mode": "insert",
"indexName": "pr_crisis_detector"
},
"id": "5c7f4d37-57c1-48db-9892-5919bdd40f34",
"name": "Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreRedis",
"typeVersion": 1,
"position": [
300,
0
],
"credentials": {
"redisApi": {
"id": "REDIS_API",
"name": "Redis account"
}
}
},
{
"parameters": {
"indexName": "pr_crisis_detector"
},
"id": "8a661be2-e7e6-4e37-8414-5487209e95c2",
"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": "31c589e0-6733-40bf-ae02-61562fdecd14",
"name": "Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
480,
-180
]
},
{
"parameters": {},
"id": "d45746f9-7752-4c7f-be93-ff50ab2cfd3c",
"name": "Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
480,
-40
]
},
{
"parameters": {},
"id": "54a2dcbd-8d45-4d51-8674-3f13dcb766be",
"name": "Chat",
"type": "@n8n/n8n-nodes-langchain.lmChatHf",
"typeVersion": 1,
"position": [
480,
-340
],
"credentials": {
"huggingFaceApi": {
"id": "HF_API",
"name": "HuggingFace"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json }}"
},
"id": "80fd174e-e101-408f-9464-0c4f39719567",
"name": "Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
760,
-40
]
},
{
"parameters": {
"operation": "append",
"documentId": "SHEET_ID",
"sheetName": "Log"
},
"id": "2aa18194-afda-418b-b37c-d608cb5e9bf6",
"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"
}
}