{
  "name": "Build a personalized birthday AI companion with GPT-4 and PostgreSQL",
  "nodes": [
    {
      "id": "238f19a4-7c99-4c5c-85c7-45640f604c6b",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "f6b5d030-400e-4206-9be2-59a402e8eb21",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1696,
        0
      ]
    },
    {
      "id": "91cd57bb-867b-4ead-99c3-eb1ff6b7007a",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "829f5aff-2ccd-4662-9875-e4d4b01c01a9",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        340,
        180
      ]
    },
    {
      "id": "93e6ecfe-3284-414b-8adb-d381cc30cca5",
      "name": "Postgres",
      "type": "n8n-nodes-base.postgres",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "8fb1224f-eb54-4b5b-95eb-3b33793a4dd7",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1020,
        0
      ]
    },
    {
      "id": "73d2b146-eb3f-4a89-912e-a4954cfecd22",
      "name": "Postgres1",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1240,
        0
      ]
    },
    {
      "id": "4d7d68ae-b0c9-4923-a19e-225565747e51",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        1460,
        0
      ]
    },
    {
      "id": "fad9e0c0-43a0-446b-929f-71ef3e28702e",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        540,
        220
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Postgres1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Postgres",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres1": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "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
          }
        ]
      ]
    }
  }
}