{
  "name": "Chat-based financial analysis of P&L and balance sheets with GPT-4 & PostgreSQL",
  "nodes": [
    {
      "id": "9d80bab4-d014-4e2c-9f9c-15cb29f49545",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        416,
        192
      ]
    },
    {
      "id": "f3cd7b4d-0e89-403f-b505-4f9fdce05f30",
      "name": "P_L_Reports",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        608,
        400
      ]
    },
    {
      "id": "09825591-c77e-4635-a635-282a3cc0d98c",
      "name": "Balance_Sheets",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        752,
        400
      ]
    },
    {
      "id": "7da3e4a5-0861-493e-a427-9cecf010de3d",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        480,
        400
      ]
    },
    {
      "id": "d6e2fec8-9910-496f-a630-113ee0e94eb2",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        336,
        400
      ]
    },
    {
      "id": "ee289e2e-716f-49b5-aaf0-80737e1692bc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -32
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4da765c4-d0b7-46dd-b197-d0179bdf1c92",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        176,
        192
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        []
      ]
    },
    "P_L_Reports": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Balance_Sheets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}