{
    "name": "Shift Handover Summary",
    "nodes": [
        {
            "parameters": {
                "content": "## Shift Handover Summary",
                "height": 520,
                "width": 1100
            },
            "id": "e21b4c7b-8945-458d-84f5-edea8d605c63",
            "name": "Sticky",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -500,
                -250
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "shift_handover_summary"
            },
            "id": "2032944d-a397-42e8-a145-3ce85fd48e71",
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "024c6eb0-bce1-40a9-8fff-2027c229258e",
            "name": "Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -100,
                0
            ]
        },
        {
            "parameters": {
                "model": "default"
            },
            "id": "61a509e3-ccec-4223-831f-3244d7ab5cd3",
            "name": "Embeddings",
            "type": "@n8n\/n8n-nodes-langchain.embeddingsHuggingFace",
            "typeVersion": 1,
            "position": [
                100,
                0
            ],
            "credentials": {
                "huggingFaceApi": {
                    "id": "HF_API",
                    "name": "HuggingFace"
                }
            }
        },
        {
            "parameters": {
                "mode": "insert",
                "indexName": "shift_handover_summary"
            },
            "id": "b47689d7-8679-48da-b9a3-ca2afcc4f597",
            "name": "Insert",
            "type": "@n8n\/n8n-nodes-langchain.vectorStoreSupabase",
            "typeVersion": 1,
            "position": [
                300,
                0
            ],
            "credentials": {
                "supabaseApi": {
                    "id": "SUPABASE_API",
                    "name": "Supabase account"
                }
            }
        },
        {
            "parameters": {
                "indexName": "shift_handover_summary"
            },
            "id": "ed7830fb-184a-474f-8bdd-2fae0383012c",
            "name": "Query",
            "type": "@n8n\/n8n-nodes-langchain.vectorStoreSupabase",
            "typeVersion": 1,
            "position": [
                300,
                -180
            ],
            "credentials": {
                "supabaseApi": {
                    "id": "SUPABASE_API",
                    "name": "Supabase account"
                }
            }
        },
        {
            "parameters": {
                "name": "Supabase"
            },
            "id": "b06cfa77-8233-42b3-86ef-f53a19fbd2e9",
            "name": "Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                480,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "e2b1b8d0-d4fa-45b2-9b3a-e08dd662e595",
            "name": "Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                480,
                -40
            ]
        },
        {
            "parameters": [],
            "id": "7ddd3795-472f-4f4e-a81f-b562179ef0b0",
            "name": "Chat",
            "type": "@n8n\/n8n-nodes-langchain.lmChatHf",
            "typeVersion": 1,
            "position": [
                480,
                -340
            ],
            "credentials": {
                "huggingFaceApi": {
                    "id": "HF_API",
                    "name": "HuggingFace"
                }
            }
        },
        {
            "parameters": {
                "promptType": "define",
                "text": "={{ $json }}"
            },
            "id": "4603bb8e-7edf-4dea-a8c3-eb7ed7f38233",
            "name": "Agent",
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 1,
            "position": [
                760,
                -40
            ]
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": "SHEET_ID",
                "sheetName": "Log"
            },
            "id": "f05a9bdc-cd55-4e0f-9e02-a1b9af498cb1",
            "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"
    }
}