{
    "name": "Predictive Maintenance Alert",
    "nodes": [
        {
            "parameters": {
                "content": "## Predictive Maintenance Alert",
                "height": 520,
                "width": 1100
            },
            "id": "2e0e493a-869a-4247-969b-201fc42e19cf",
            "name": "Sticky",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -500,
                -250
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "predictive_maintenance_alert"
            },
            "id": "f3fb69e8-a018-443e-9fc9-ab5f54df0198",
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "975ab9e6-e924-4225-ad2f-ab71e063b744",
            "name": "Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -100,
                0
            ]
        },
        {
            "parameters": {
                "model": "default"
            },
            "id": "2f19b9f0-eea2-41d7-af0c-7d40898f7369",
            "name": "Embeddings",
            "type": "@n8n\/n8n-nodes-langchain.embeddingsOpenAi",
            "typeVersion": 1,
            "position": [
                100,
                0
            ],
            "credentials": {
                "openAiApi": {
                    "id": "OPENAI_API",
                    "name": "OpenAI"
                }
            }
        },
        {
            "parameters": {
                "mode": "insert",
                "indexName": "predictive_maintenance_alert"
            },
            "id": "d64985d8-e50e-4010-9511-534318b2fcb5",
            "name": "Insert",
            "type": "@n8n\/n8n-nodes-langchain.vectorStoreWeaviate",
            "typeVersion": 1,
            "position": [
                300,
                0
            ],
            "credentials": {
                "weaviateApi": {
                    "id": "WEAVIATE_API",
                    "name": "Weaviate account"
                }
            }
        },
        {
            "parameters": {
                "indexName": "predictive_maintenance_alert"
            },
            "id": "4bb2206e-2811-4ffd-a7d9-066dcab52bd0",
            "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": "fb950c91-9101-40dc-a975-e674cbd6d2f0",
            "name": "Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                480,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "b7435da7-5ef7-4c2a-a024-6e97d698da8b",
            "name": "Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                480,
                -40
            ]
        },
        {
            "parameters": [],
            "id": "295cf4fb-3340-410b-879e-2bd1ef0a2233",
            "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": "0a77e315-a75c-460e-a902-33367c2983a7",
            "name": "Agent",
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 1,
            "position": [
                760,
                -40
            ]
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": "SHEET_ID",
                "sheetName": "Log"
            },
            "id": "f6f6a1fe-b857-45e7-a9f7-b0d9e5edac61",
            "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"
    }
}