{
  "name": "Build a smart personal assistant with GROQ, LLaMA & search tools",
  "nodes": [
    {
      "id": "67423dee-9bdc-4d37-8d55-ffe22afa1496",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        700,
        -80
      ]
    },
    {
      "id": "e376fcb1-851f-43f0-bdb8-3aa8a157de7e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1040,
        -80
      ]
    },
    {
      "id": "d63f63bc-db0d-41f3-9bf3-e8b972f1cc11",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1280,
        120
      ]
    },
    {
      "id": "9abedfcd-fc7a-4a06-8712-3059f2dd3a9b",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        1640,
        120
      ]
    },
    {
      "id": "a160b2b1-d8b1-4699-94c5-1856ce06e18c",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        1460,
        120
      ]
    },
    {
      "id": "733e0cc3-5bfd-412e-9e57-63d3d2a98b5c",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1100,
        120
      ]
    },
    {
      "id": "0ca4de96-0a6b-47c6-8110-2c3074f30eef",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        -80
      ],
      "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": "b19cd5f5-e802-4527-b7ba-fefa0fba79a5",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        260
      ],
      "parameters": {
        "width": 150,
        "height": 180,
        "content": "## 👆\nThis is a short term memory. It will remember the 5 previous interactions during the chat"
      }
    },
    {
      "id": "598cd112-c395-404c-bd01-e1218826cf2e",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        260
      ],
      "parameters": {
        "width": 170,
        "height": 180,
        "content": "## 👆\nYou can use  the free Google Gemini options."
      }
    },
    {
      "id": "140122d5-4835-4157-b3e9-8e3ef3d74531",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        260
      ],
      "parameters": {
        "width": 150,
        "height": 180,
        "content": "## 👆\nThe Calculator is a tool that allows an agent to run mathematical calculations."
      }
    },
    {
      "id": "7cffe43a-1d47-42df-849e-dbb72f68f2d1",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1260,
        260
      ],
      "parameters": {
        "width": 150,
        "height": 180,
        "content": "## 👆\nThe Think is a tool Enables step-by-step reasoning before answering."
      }
    },
    {
      "id": "acacf20e-c28d-43da-83c8-7f5568c5500d",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        260
      ],
      "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."
      }
    },
    {
      "id": "c2a726ed-e53d-46c0-809d-102a080e305e",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        920,
        120
      ]
    }
  ],
  "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
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}