{
  "name": "Chat with your HubSpot data",
  "nodes": [
    {
      "id": "3be8d3e0-a672-4c85-95fb-9e21a1efe1b0",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        16,
        -32
      ]
    },
    {
      "id": "f81e185d-07b4-4cd5-8442-9bea79577e70",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        -32
      ]
    },
    {
      "id": "308d44ba-3d87-4405-900e-f5c6fb41c919",
      "name": "Search contacts in HubSpot",
      "type": "n8n-nodes-base.hubspotTool",
      "position": [
        448,
        176
      ]
    },
    {
      "id": "f7fa3e15-296a-41d9-9e0c-4bf92d7cec1e",
      "name": "Search for deals in HubSpot",
      "type": "n8n-nodes-base.hubspotTool",
      "position": [
        624,
        176
      ]
    },
    {
      "id": "7ce28fb1-809f-4d6b-be7d-2707dece9fed",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        272,
        176
      ]
    },
    {
      "id": "5ffea926-84dc-48ad-a0d3-1b9c9967c7cd",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -544,
        -128
      ],
      "parameters": {
        "width": 480,
        "height": 464,
        "content": "## Chat with HubSpot (Contacts + Deals)\n\n### How it works\n1. Start a chat (Chat Trigger).\n2. **AI Agent** (OpenAI) interprets your question.\n3. Runs live HubSpot **Contacts** and **Deals** searches vi"
      }
    },
    {
      "id": "1ab36139-3a8b-4cc3-9dd5-0af717b4b969",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        96,
        176
      ]
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Search contacts in HubSpot": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search for deals in HubSpot": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}