n8n-free-templates/Misc/woo_order_mailchimp.json
2025-05-19 00:56:45 -05:00

355 lines
7.4 KiB
JSON

{
"name": "Woo Order Mailchimp",
"nodes": [
{
"parameters": {
"content": "Automated workflow: Woo Order Mailchimp",
"height": 530,
"width": 1100,
"color": 5
},
"id": "0dd507e4-f32b-4c4c-85d9-26316c63c0e0",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-480,
-240
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "woo-order-mailchimp"
},
"id": "42aa0b71-1c9f-48d7-b339-94919de26da1",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "38bd53d5-c599-45cb-bd28-f52fe513a687",
"name": "Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-130,
0
]
},
{
"parameters": {
"model": "embed-english-v3.0",
"options": {}
},
"id": "fbb0666b-b845-4490-ad86-25713c97a122",
"name": "Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
"typeVersion": 1,
"position": [
70,
0
],
"credentials": {
"cohereApi": {
"id": "COHERE_API",
"name": "Cohere"
}
}
},
{
"parameters": {
"mode": "insert",
"options": {},
"indexName": "woo_order_mailchimp"
},
"id": "d85253d5-b3b8-452b-8153-996f7b6c9bca",
"name": "Weaviate Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
"typeVersion": 1,
"position": [
270,
0
],
"credentials": {
"weaviateApi": {
"id": "WEAVIATE_API",
"name": "Weaviate account"
}
}
},
{
"parameters": {
"indexName": "woo_order_mailchimp"
},
"id": "6cefb367-4cde-4c48-bdb8-c90ecc5215fc",
"name": "Weaviate Query",
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
"typeVersion": 1,
"position": [
270,
-180
],
"credentials": {
"weaviateApi": {
"id": "WEAVIATE_API",
"name": "Weaviate account"
}
}
},
{
"parameters": {
"name": "Weaviate",
"description": "Vector context"
},
"id": "356012ed-5c87-4b07-8ddb-e0afe3c3faec",
"name": "Vector Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
450,
-180
]
},
{
"parameters": {},
"id": "12fd721e-e3f6-4f61-a709-2b4c9821e373",
"name": "Window Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
450,
-40
]
},
{
"parameters": {
"options": {}
},
"id": "a16d1695-9c1a-40f7-86a9-99b081045a20",
"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 'Woo Order Mailchimp':\n\n{{ $json }}",
"options": {
"systemMessage": "You are an assistant for Woo Order Mailchimp"
}
},
"id": "10ea4d67-7ee6-466f-b8c9-5847177d478a",
"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": "Woo Order Mailchimp"
},
"sheetName": {
"__rl": true,
"value": "Log",
"mode": "list",
"cachedResultName": "Log"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Status": "={{$json[\"RAG Agent\"].text}}"
},
"schema": []
}
},
"id": "fb5c5c60-aa5d-40fb-aeed-e6a47f4bc030",
"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": "Woo Order Mailchimp error: {$json.error.message}"
},
"id": "d54c4d1f-2ce2-431d-8a37-2f2e6d23f6da",
"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": "Weaviate Insert",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Embeddings": {
"ai_embedding": [
[
{
"node": "Weaviate Insert",
"type": "ai_embedding",
"index": 0
},
{
"node": "Weaviate Query",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Weaviate Insert": {
"ai_document": [
[]
]
},
"Weaviate 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
}