{
  "name": "Monitor AI chat interactions with Gemini 2.5 and Langfuse tracing",
  "nodes": [
    {
      "id": "c26d363f-53d2-446b-98db-d68a4b947bc5",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        880,
        540
      ]
    },
    {
      "id": "01f4841f-2e4d-4beb-8f19-258cb4e8f988",
      "name": "gemini-2.5",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1188,
        960
      ]
    },
    {
      "id": "f63d8101-0b24-4917-9126-ceccc926cb3c",
      "name": "mem",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1396,
        760
      ]
    },
    {
      "id": "c5c637fd-962d-4c2c-bb7a-c35faae85ee1",
      "name": "Langfuse LLM",
      "type": "@n8n/n8n-nodes-langchain.code",
      "position": [
        1100,
        762.5
      ]
    },
    {
      "id": "c5f53fbe-5603-4384-b4fa-076a69a1f6aa",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1204,
        540
      ]
    }
  ],
  "connections": {
    "mem": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        []
      ]
    },
    "gemini-2.5": {
      "ai_languageModel": [
        [
          {
            "node": "Langfuse LLM",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Langfuse LLM": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}