{
    "name": "Solar Output Forecaster",
    "nodes": [
        {
            "parameters": {
                "content": "## Solar Output Forecaster",
                "height": 520,
                "width": 1100
            },
            "id": "0cc41add-c576-4eb2-a577-ba341538b4aa",
            "name": "Sticky",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -500,
                -250
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "solar_output_forecaster"
            },
            "id": "7a6895ad-c973-4829-abb3-52764e18563e",
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "4ab8e749-2da3-4702-aa03-92781f013c88",
            "name": "Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -100,
                0
            ]
        },
        {
            "parameters": {
                "model": "default"
            },
            "id": "2861dfd6-4500-4e90-b346-e67aefc38723",
            "name": "Embeddings",
            "type": "@n8n\/n8n-nodes-langchain.embeddingsHuggingFace",
            "typeVersion": 1,
            "position": [
                100,
                0
            ],
            "credentials": {
                "huggingFaceApi": {
                    "id": "HF_API",
                    "name": "HuggingFace"
                }
            }
        },
        {
            "parameters": {
                "mode": "insert",
                "indexName": "solar_output_forecaster"
            },
            "id": "bf0938ce-55ad-4563-b3ec-dbf0a747004f",
            "name": "Insert",
            "type": "@n8n\/n8n-nodes-langchain.vectorStoreSupabase",
            "typeVersion": 1,
            "position": [
                300,
                0
            ],
            "credentials": {
                "supabaseApi": {
                    "id": "SUPABASE_API",
                    "name": "Supabase account"
                }
            }
        },
        {
            "parameters": {
                "indexName": "solar_output_forecaster"
            },
            "id": "b3bb38c2-2d38-4938-be90-9a9adfe1918a",
            "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": "184775d4-7184-4c41-b8de-cc8c402c57c8",
            "name": "Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                480,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "ac64a220-22bf-4f5e-a59b-20b19efb0869",
            "name": "Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                480,
                -40
            ]
        },
        {
            "parameters": [],
            "id": "287861be-36e0-4424-9971-44020897bd2e",
            "name": "Chat",
            "type": "@n8n\/n8n-nodes-langchain.lmChatAnthropic",
            "typeVersion": 1,
            "position": [
                480,
                -340
            ],
            "credentials": {
                "anthropicApi": {
                    "id": "ANTHROPIC_API",
                    "name": "Anthropic"
                }
            }
        },
        {
            "parameters": {
                "promptType": "define",
                "text": "={{ $json }}"
            },
            "id": "ea57fd07-1636-4dc0-835e-904f6952caad",
            "name": "Agent",
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 1,
            "position": [
                760,
                -40
            ]
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": "SHEET_ID",
                "sheetName": "Log"
            },
            "id": "3d0a2489-f2f0-4787-8548-4f040a5836c6",
            "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"
    }
}