n8n-free-templates/Media/live_stream_chat_moderator.json
2025-05-19 01:08:15 -05:00

299 lines
5.9 KiB
JSON

{
"name": "Live Stream Chat Moderator",
"nodes": [
{
"parameters": {
"content": "## Live Stream Chat Moderator",
"height": 520,
"width": 1100
},
"id": "0477641f-1ff4-4ac3-aac2-244c57a4b6bd",
"name": "Sticky",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-500,
-250
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "live_stream_chat_moderator"
},
"id": "8c9bf83f-1b91-4b43-8ea6-c023f73625e9",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "fd0a3c84-6227-4b9d-b465-36e21b1251cb",
"name": "Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-100,
0
]
},
{
"parameters": {
"model": "default"
},
"id": "4caeff08-3ead-42c1-b9ac-6aa5f8e0eb78",
"name": "Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1,
"position": [
100,
0
],
"credentials": {
"openAiApi": {
"id": "OPENAI_API",
"name": "OpenAI"
}
}
},
{
"parameters": {
"mode": "insert",
"indexName": "live_stream_chat_moderator"
},
"id": "bd57b1a0-b6b9-4c9e-b2e6-a02a352d2cc2",
"name": "Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1,
"position": [
300,
0
],
"credentials": {
"supabaseApi": {
"id": "SUPABASE_API",
"name": "Supabase account"
}
}
},
{
"parameters": {
"indexName": "live_stream_chat_moderator"
},
"id": "29975a1f-52a0-43f9-bf8f-3024d8d204a7",
"name": "Query",
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1,
"position": [
300,
-180
],
"credentials": {
"supabaseApi": {
"id": "SUPABASE_API",
"name": "Supabase account"
}
}
},
{
"parameters": {
"name": "Supabase"
},
"id": "c2be4d8f-bf26-4f91-8086-d91b053fd030",
"name": "Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
480,
-180
]
},
{
"parameters": {},
"id": "730c0f23-e800-453d-9443-e0cf6aa11324",
"name": "Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
480,
-40
]
},
{
"parameters": {},
"id": "822318fd-aae5-4013-bf4b-1dbd3427f23f",
"name": "Chat",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1,
"position": [
480,
-340
],
"credentials": {
"anthropicApi": {
"id": "ANTHROPIC_API",
"name": "Anthropic"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json }}"
},
"id": "3b0f82a6-f252-4493-b48a-c936ad1163b2",
"name": "Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
760,
-40
]
},
{
"parameters": {
"operation": "append",
"documentId": "SHEET_ID",
"sheetName": "Log"
},
"id": "7cd9388a-03bf-4b50-91a8-be337e97bee8",
"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"
}
}