{
    "name": "MES Log Analyzer",
    "nodes": [
        {
            "parameters": {
                "content": "## MES Log Analyzer",
                "height": 520,
                "width": 1100
            },
            "id": "6a578e19-1308-4a5c-b6f6-6ebd3710b6e3",
            "name": "Sticky",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -500,
                -250
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "mes_log_analyzer"
            },
            "id": "39d4b641-9f59-4642-832e-79022bf495c7",
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "e3946bf7-7e37-46ad-8866-b336d591139c",
            "name": "Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -100,
                0
            ]
        },
        {
            "parameters": {
                "model": "default"
            },
            "id": "257bb0cf-c4c3-4ec5-a8fc-cc7af8cc82d8",
            "name": "Embeddings",
            "type": "@n8n\/n8n-nodes-langchain.embeddingsHuggingFace",
            "typeVersion": 1,
            "position": [
                100,
                0
            ],
            "credentials": {
                "huggingFaceApi": {
                    "id": "HF_API",
                    "name": "HuggingFace"
                }
            }
        },
        {
            "parameters": {
                "mode": "insert",
                "indexName": "mes_log_analyzer"
            },
            "id": "191047e8-a373-4f4d-89f5-d4befa1e1488",
            "name": "Insert",
            "type": "@n8n\/n8n-nodes-langchain.vectorStoreWeaviate",
            "typeVersion": 1,
            "position": [
                300,
                0
            ],
            "credentials": {
                "weaviateApi": {
                    "id": "WEAVIATE_API",
                    "name": "Weaviate account"
                }
            }
        },
        {
            "parameters": {
                "indexName": "mes_log_analyzer"
            },
            "id": "e5aceb69-fdc8-4ecb-bb40-9595579f44d1",
            "name": "Query",
            "type": "@n8n\/n8n-nodes-langchain.vectorStoreWeaviate",
            "typeVersion": 1,
            "position": [
                300,
                -180
            ],
            "credentials": {
                "weaviateApi": {
                    "id": "WEAVIATE_API",
                    "name": "Weaviate account"
                }
            }
        },
        {
            "parameters": {
                "name": "Weaviate"
            },
            "id": "69bf896b-cc84-4c27-ac84-53c42df7675c",
            "name": "Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                480,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "2dfcbeaa-32cc-411f-9804-33dbdc2cc1ff",
            "name": "Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                480,
                -40
            ]
        },
        {
            "parameters": [],
            "id": "22d5fa52-e851-4158-8b68-0bc099c7b712",
            "name": "Chat",
            "type": "@n8n\/n8n-nodes-langchain.lmChatOpenAi",
            "typeVersion": 1,
            "position": [
                480,
                -340
            ],
            "credentials": {
                "openAiApi": {
                    "id": "OPENAI_API",
                    "name": "OpenAI"
                }
            }
        },
        {
            "parameters": {
                "promptType": "define",
                "text": "={{ $json }}"
            },
            "id": "4b278a48-c97b-4720-8248-7e16a59e8a97",
            "name": "Agent",
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 1,
            "position": [
                760,
                -40
            ]
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": "SHEET_ID",
                "sheetName": "Log"
            },
            "id": "59f09444-e08f-4545-b83a-6e3113298e1c",
            "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"
    }
}