mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-17 15:36:52 +00:00
363 lines
7.6 KiB
JSON
363 lines
7.6 KiB
JSON
{
|
|
"name": "Forward Attachments",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"content": "Placeholder for Forward Attachments",
|
|
"height": 530,
|
|
"width": 1100,
|
|
"color": 5
|
|
},
|
|
"id": "15ea4b74-7127-48af-9f59-629bb14a2bd4",
|
|
"name": "Sticky Note",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-480,
|
|
-240
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "forward-attachments"
|
|
},
|
|
"id": "8a67f7cf-b9f0-4c6c-9560-e9d746f29c98",
|
|
"name": "Webhook Trigger",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-300,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"chunkSize": 400,
|
|
"chunkOverlap": 40
|
|
},
|
|
"id": "9bad17f7-55c2-41d5-99dd-ba0fd211777b",
|
|
"name": "Text Splitter",
|
|
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-130,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"model": "text-embedding-3-small",
|
|
"options": {}
|
|
},
|
|
"id": "e135820c-3de0-4731-b76b-1ca54b2f6ed3",
|
|
"name": "Embeddings",
|
|
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
70,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"openAiApi": {
|
|
"id": "OPENAI_API",
|
|
"name": "OpenAI"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "insert",
|
|
"options": {},
|
|
"pineconeIndex": {
|
|
"__rl": true,
|
|
"value": "forward_attachments",
|
|
"mode": "list",
|
|
"cachedResultName": "forward_attachments"
|
|
}
|
|
},
|
|
"id": "dd4b9606-bfb4-44bd-a9f8-fbdce7127924",
|
|
"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": "forward_attachments",
|
|
"mode": "list",
|
|
"cachedResultName": "forward_attachments"
|
|
}
|
|
},
|
|
"id": "fb46a67f-195f-44a8-ae68-383e70e3ca41",
|
|
"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": "3ef19169-0bbf-4f8c-a01e-e66d7c8e9c92",
|
|
"name": "Vector Tool",
|
|
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
450,
|
|
-180
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "8a4d7ddf-836b-49b9-8a57-d6bf92b44cdd",
|
|
"name": "Window Memory",
|
|
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
|
"typeVersion": 1.3,
|
|
"position": [
|
|
450,
|
|
-40
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"id": "e208345d-1ccb-43fa-ae90-5f90e8d40d9a",
|
|
"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": "Handle data",
|
|
"options": {
|
|
"systemMessage": "You are an assistant for Forward Attachments"
|
|
}
|
|
},
|
|
"id": "06cce445-64df-4a85-a1d0-e5d3960583b1",
|
|
"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": "Forward Attachments"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "Log",
|
|
"mode": "list",
|
|
"cachedResultName": "Log"
|
|
},
|
|
"columns": {
|
|
"mappingMode": "defineBelow",
|
|
"value": "Status",
|
|
"schema": []
|
|
}
|
|
},
|
|
"id": "df7aa3a4-ff0d-4289-bbc1-c06bcd3596b7",
|
|
"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": "Forward Attachments error: {$json.error.message}"
|
|
},
|
|
"id": "d59d6048-34a9-481e-b729-51bed8088528",
|
|
"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
|
|
} |