{
    "name": "Dealer Lead Qualifier",
    "nodes": [
        {
            "parameters": {
                "content": "## Dealer Lead Qualifier",
                "height": 520,
                "width": 1100
            },
            "id": "10cea33a-c000-4e24-9f0d-2171b4677fc1",
            "name": "Sticky",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -500,
                -250
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "dealer_lead_qualifier"
            },
            "id": "6efd10a1-1894-49b8-86db-299fc884d2b0",
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "c3617701-6658-4f40-8050-b84d2f4b92a6",
            "name": "Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -100,
                0
            ]
        },
        {
            "parameters": {
                "model": "default"
            },
            "id": "294923f9-1194-4e09-929f-0f65cfc40184",
            "name": "Embeddings",
            "type": "@n8n\/n8n-nodes-langchain.embeddingsCohere",
            "typeVersion": 1,
            "position": [
                100,
                0
            ],
            "credentials": {
                "cohereApi": {
                    "id": "COHERE_API",
                    "name": "Cohere"
                }
            }
        },
        {
            "parameters": {
                "mode": "insert",
                "indexName": "dealer_lead_qualifier"
            },
            "id": "0e73daad-2242-453e-af1c-bd6d96acacd5",
            "name": "Insert",
            "type": "@n8n\/n8n-nodes-langchain.vectorStorePinecone",
            "typeVersion": 1,
            "position": [
                300,
                0
            ],
            "credentials": {
                "pineconeApi": {
                    "id": "PINECONE_API",
                    "name": "Pinecone account"
                }
            }
        },
        {
            "parameters": {
                "indexName": "dealer_lead_qualifier"
            },
            "id": "0c18eeed-c8c9-4771-8495-1ad3c1724145",
            "name": "Query",
            "type": "@n8n\/n8n-nodes-langchain.vectorStorePinecone",
            "typeVersion": 1,
            "position": [
                300,
                -180
            ],
            "credentials": {
                "pineconeApi": {
                    "id": "PINECONE_API",
                    "name": "Pinecone account"
                }
            }
        },
        {
            "parameters": {
                "name": "Pinecone"
            },
            "id": "513fa07f-a331-473a-82d1-a5be5d7deedb",
            "name": "Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                480,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "caa6f351-58ce-405d-98d8-24a036970942",
            "name": "Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                480,
                -40
            ]
        },
        {
            "parameters": [],
            "id": "fca8e004-a059-4362-bad5-1497d584cd69",
            "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": "47f4542b-b789-4c81-99b2-3b44d5e19ba5",
            "name": "Agent",
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 1,
            "position": [
                760,
                -40
            ]
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": "SHEET_ID",
                "sheetName": "Log"
            },
            "id": "6879e7bb-3330-4068-b9a3-a568447e9a22",
            "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"
    }
}