{
  "name": "Build your first AI agent – powered by Google Gemini with memory",
  "nodes": [
    {
      "id": "348eb0af-3b44-41f4-85be-05af1def4eb5",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -180,
        -180
      ]
    },
    {
      "id": "6c914256-d2b6-4156-99e3-d88f62bfca66",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        -180
      ]
    },
    {
      "id": "85b68f2c-e656-44f2-8e2a-27066c99a0c6",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        460,
        20
      ]
    },
    {
      "id": "1c1c954c-ef1a-4114-9898-65bb4626fbb8",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        880,
        20
      ]
    },
    {
      "id": "8791e2c2-89f7-4e40-9520-8b8f35c0c6ba",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        40,
        20
      ]
    },
    {
      "id": "9e4704ec-e498-4d0c-a3ea-ab08fa7bf7ac",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        680,
        20
      ]
    },
    {
      "id": "bcf984a7-774e-454f-a082-4fea25741e83",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        260,
        20
      ]
    },
    {
      "id": "e9f7eca2-5ad3-43e8-bde2-f8e7e75756f0",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -180
      ],
      "parameters": {
        "width": 320,
        "height": 580,
        "content": "## Author\n![Digimetalab](https://gravatar.com/avatar/8238cf8143845ac216cad8b70057892b?size=256?r=pg&d=retro&size=100)\n## Digimetalab\nAutomation consultant from Bali, with 3+ years helping Sales & Mark"
      }
    },
    {
      "id": "d78f8043-0a68-454d-a7dd-aea9e4773432",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 180,
        "content": "## 👆\nThis is a short term memory. It will remember the 5 previous interactions during the chat"
      }
    },
    {
      "id": "59e98d56-42ea-4251-a287-82e8643f46aa",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        160
      ],
      "parameters": {
        "width": 170,
        "height": 180,
        "content": "## 👆\nYou can use  the free Google Gemini options."
      }
    },
    {
      "id": "a2dd7685-4702-41af-8124-e4d307317d65",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 180,
        "content": "## 👆\nThe Calculator is a tool that allows an agent to run mathematical calculations."
      }
    },
    {
      "id": "8bad0027-784a-403d-b1db-149d68a6d022",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 180,
        "content": "## 👆\nThe Think is a tool Enables step-by-step reasoning before answering."
      }
    },
    {
      "id": "c98f150a-cfd4-4edb-8d6c-5f48178e08a8",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 240,
        "content": "## 👆\nThe SerpAPI is a tool that allows Performs real-time Google Search using SerpAPI to retrieve factual, up-to-date information."
      }
    }
  ],
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "When chat message received",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}