{
  "updatedAt": "2025-04-27T15:15:05.000Z",
  "createdAt": "2025-04-27T14:57:21.743Z",
  "id": "RJdrTOcsTmYEiBzt",
  "name": "Demo AI Agent anh Định",
  "description": null,
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ],
      "id": "ab03b261-df75-4d24-9656-0837567fc075",
      "name": "When chat message received",
      "webhookId": "7146901c-9e01-4514-804e-93e9b50990fb"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "bạn là trợ lý tìm contact\nnhiệm vụ của bạn là\n\n## tìm theo tên\nthì sẽ dùng field \"Name\" để tìm"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.9,
      "position": [
        220,
        0
      ],
      "id": "388bb47c-1942-4cc4-94f0-5ef9d20996e4",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        120,
        200
      ],
      "id": "3dc6e253-26e7-4c68-b0a0-1a4c29b75299",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "hY3IQYAWuJo2IGnB",
          "name": "OpenAi binh"
        }
      }
    },
    {
      "parameters": {},
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        300,
        200
      ],
      "id": "0fb5a38a-149f-49c1-84eb-ec036fc0d2da",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "operation": "search",
        "base": {
          "__rl": true,
          "value": "appWuXo6ujyQRa05r",
          "mode": "list",
          "cachedResultName": "MeCode Members",
          "cachedResultUrl": "https://airtable.com/appWuXo6ujyQRa05r"
        },
        "table": {
          "__rl": true,
          "value": "tbls4sS3rQ9xE5Ulx",
          "mode": "list",
          "cachedResultName": "Contact",
          "cachedResultUrl": "https://airtable.com/appWuXo6ujyQRa05r/tbls4sS3rQ9xE5Ulx"
        },
        "filterByFormula": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Filter_By_Formula', ``, 'string') }}",
        "options": {}
      },
      "type": "n8n-nodes-base.airtableTool",
      "typeVersion": 2.1,
      "position": [
        480,
        200
      ],
      "id": "ec40cc51-1f6e-480b-9433-2d7adf43ce0a",
      "name": "search_contact",
      "credentials": {
        "airtableTokenApi": {
          "id": "4s7laL0eLWa9ymhI",
          "name": "Binh airtable"
        }
      }
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "search_contact": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "pinData": {},
  "versionId": "5e506190-6c5f-4334-8fbb-0fe8247489c4",
  "activeVersionId": null,
  "versionCounter": 1,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2025-04-27T14:57:21.758Z",
      "createdAt": "2025-04-27T14:57:21.758Z",
      "role": "workflow:owner",
      "workflowId": "RJdrTOcsTmYEiBzt",
      "projectId": "Nlp7kXCVcAfb0cmG",
      "project": {
        "updatedAt": "2024-07-25T03:06:26.102Z",
        "createdAt": "2024-07-25T03:06:26.102Z",
        "id": "Nlp7kXCVcAfb0cmG",
        "name": "Bình Đặng <dangngocbinh.dnb@gmail.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "92f1ca82-c19e-4a7d-8458-93b65f67f4c7"
      }
    }
  ],
  "tags": [
    {
      "updatedAt": "2024-10-04T03:03:40.628Z",
      "createdAt": "2024-10-04T03:03:40.628Z",
      "id": "MW10UcI4NI01thiG",
      "name": "share"
    }
  ],
  "activeVersion": null
}