n8n-free-templates/Misc/rss_headlines_slack.json

365 lines
7.7 KiB
JSON
Raw Normal View History

2025-05-19 00:56:45 -05:00
{
"name": "RSS Headlines Slack",
"nodes": [
{
"parameters": {
"content": "Automated workflow: RSS Headlines Slack",
"height": 530,
"width": 1100,
"color": 5
},
"id": "eef04ed8-9911-437e-a4de-a97bb4008584",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-480,
-240
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "rss-headlines-slack"
},
"id": "9a8d1358-96d4-4234-a729-4e0e4ced17f3",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "b65c9914-f17c-40e3-b297-4829b6ca48c0",
"name": "Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-130,
0
]
},
{
"parameters": {
"model": "embed-english-v3.0",
"options": {}
},
"id": "794ba230-95a3-4309-ab88-e048833c8f32",
"name": "Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
"typeVersion": 1,
"position": [
70,
0
],
"credentials": {
"cohereApi": {
"id": "COHERE_API",
"name": "Cohere"
}
}
},
{
"parameters": {
"mode": "insert",
"options": {},
"pineconeIndex": {
"__rl": true,
"value": "rss_headlines_slack",
"mode": "list",
"cachedResultName": "rss_headlines_slack"
}
},
"id": "121535eb-291a-43da-beef-22fb7b8e61e2",
"name": "Pinecone Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1,
"position": [
270,
0
],
"credentials": {
"pineconeApi": {
"id": "PINECONE_API",
"name": "Pinecone account"
}
}
},
{
"parameters": {
"pineconeIndex": {
"__rl": true,
"value": "rss_headlines_slack",
"mode": "list",
"cachedResultName": "rss_headlines_slack"
}
},
"id": "1007022a-f3f8-45e0-a172-3a722ef55013",
"name": "Pinecone Query",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1,
"position": [
270,
-180
],
"credentials": {
"pineconeApi": {
"id": "PINECONE_API",
"name": "Pinecone account"
}
}
},
{
"parameters": {
"name": "Pinecone",
"description": "Vector context"
},
"id": "45bba375-133f-4e21-b3f5-44129052232c",
"name": "Vector Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
450,
-180
]
},
{
"parameters": {},
"id": "4260b8fd-8881-4c50-8d0c-ec3ff10dd94e",
"name": "Window Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
450,
-40
]
},
{
"parameters": {
"options": {}
},
"id": "5dc099ae-249d-409d-acf2-1f6a50ecc270",
"name": "Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
450,
-340
],
"credentials": {
"openAiApi": {
"id": "OPENAI_API",
"name": "OpenAI"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "Process the following data for task 'RSS Headlines Slack':\n\n{{ $json }}",
"options": {
"systemMessage": "You are an assistant for RSS Headlines Slack"
}
},
"id": "f799ca8c-9622-4a74-b21a-6c84c8ec458a",
"name": "RAG Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
720,
-40
]
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "SHEET_ID",
"mode": "list",
"cachedResultName": "RSS Headlines Slack"
},
"sheetName": {
"__rl": true,
"value": "Log",
"mode": "list",
"cachedResultName": "Log"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Status": "={{$json[\"RAG Agent\"].text}}"
},
"schema": []
}
},
"id": "24e74dce-aaf5-48d8-abd9-4a052dbb378c",
"name": "Append Sheet",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4,
"position": [
930,
-40
],
"credentials": {
"googleSheetsOAuth2Api": {
"id": "SHEETS_API",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"channel": "#alerts",
"text": "RSS Headlines Slack error: {$json.error.message}"
},
"id": "b225130c-f97e-4652-baac-a2afd1049a9d",
"name": "Slack Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [
930,
120
],
"credentials": {
"slackApi": {
"id": "SLACK_API",
"name": "Slack"
}
}
}
],
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "Text Splitter",
"type": "main",
"index": 0
},
{
"node": "Window Memory",
"type": "main",
"index": 0
}
]
]
},
"Text Splitter": {
"main": [
[
{
"node": "Embeddings",
"type": "main",
"index": 0
}
]
],
"ai_textSplitter": [
[
{
"node": "Pinecone Insert",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Embeddings": {
"ai_embedding": [
[
{
"node": "Pinecone Insert",
"type": "ai_embedding",
"index": 0
},
{
"node": "Pinecone Query",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Pinecone Insert": {
"ai_document": [
[]
]
},
"Pinecone Query": {
"ai_vectorStore": [
[
{
"node": "Vector Tool",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"Vector Tool": {
"ai_tool": [
[
{
"node": "RAG Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Window Memory": {
"ai_memory": [
[
{
"node": "RAG Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Chat Model": {
"ai_languageModel": [
[
{
"node": "RAG Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"RAG Agent": {
"main": [
[
{
"node": "Append Sheet",
"type": "main",
"index": 0
}
]
],
"onError": [
[
{
"node": "Slack Alert",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"triggerCount": 1
}