{
    "name": "Weekly Shopify Sales Summary",
    "nodes": [
        {
            "parameters": {
                "content": "Placeholder for Weekly Shopify Sales Summary",
                "height": 530,
                "width": 1100,
                "color": 5
            },
            "id": "48cbb971-b7f5-439b-9ff7-51e48fe8cd99",
            "name": "Sticky Note",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -480,
                -240
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "weekly-shopify-sales-summary"
            },
            "id": "986a4dbf-6fd1-468e-9404-891be5d7e982",
            "name": "Webhook Trigger",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "fe85f7f9-ec98-496c-9623-73934248c4dd",
            "name": "Text Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -130,
                0
            ]
        },
        {
            "parameters": {
                "model": "embed-english-v3.0",
                "options": []
            },
            "id": "91db179a-59d3-4335-a3f8-5a1767283536",
            "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": "weekly_shopify_sales_summary",
                    "mode": "list",
                    "cachedResultName": "weekly_shopify_sales_summary"
                }
            },
            "id": "12e2e6d8-9882-4e5e-958d-1a5263f3d498",
            "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": "weekly_shopify_sales_summary",
                    "mode": "list",
                    "cachedResultName": "weekly_shopify_sales_summary"
                }
            },
            "id": "86e1304a-cb0e-42ae-a608-576468de3977",
            "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": "1b99ec18-874c-4238-947b-4208a7187782",
            "name": "Vector Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                450,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "f57ed2d1-31f6-48e0-9d49-a34d828a2b21",
            "name": "Window Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                450,
                -40
            ]
        },
        {
            "parameters": {
                "options": []
            },
            "id": "8bd35d96-4b86-4db9-8df1-3e1234a598b6",
            "name": "Chat Model",
            "type": "@n8n\/n8n-nodes-langchain.lmChatAnthropic",
            "typeVersion": 1,
            "position": [
                450,
                -340
            ],
            "credentials": {
                "anthropicApi": {
                    "id": "ANTHROPIC_API",
                    "name": "Anthropic"
                }
            }
        },
        {
            "parameters": {
                "promptType": "define",
                "text": "Handle data",
                "options": {
                    "systemMessage": "You are an assistant for Weekly Shopify Sales Summary"
                }
            },
            "id": "339b9829-f9ab-4521-a6f7-d57972f5960d",
            "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": "Weekly Shopify Sales Summary"
                },
                "sheetName": {
                    "__rl": true,
                    "value": "Log",
                    "mode": "list",
                    "cachedResultName": "Log"
                },
                "columns": {
                    "mappingMode": "defineBelow",
                    "value": "Status",
                    "schema": []
                }
            },
            "id": "913c3b44-b464-492a-9214-d9dc1952c96b",
            "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": "Weekly Shopify Sales Summary error: {$json.error.message}"
            },
            "id": "7e04b6aa-2c81-4491-8383-48f48f5e47d5",
            "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
}