{
  "name": "Anthropic AI agent: Claude Sonnet 4 and Opus 4 with Think and Web Search tool",
  "nodes": [
    {
      "id": "4f01cd9b-16b6-4b6a-a55b-64531e867dcc",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        20,
        60
      ]
    },
    {
      "id": "c0a5e6b1-9c43-4f92-884e-95b1e91ff54a",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        420,
        280
      ]
    },
    {
      "id": "e46a6a64-8875-44f0-830e-febebaa10dd7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -180
      ],
      "parameters": {
        "width": 840,
        "height": 180,
        "content": "## Dynamic Model Selector for Optimal AI Responses\n\nThe **New Anthropic Agent Decisioner** is a dynamic, AI-powered routing system that automatically selects the most appropriate large language model "
      }
    },
    {
      "id": "0f4208aa-c4f5-44aa-ba43-4c3143751a79",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        600,
        60
      ]
    },
    {
      "id": "0e08600f-f35c-408a-9b8a-f886aeea37d6",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        800,
        280
      ]
    },
    {
      "id": "5adf09be-e278-49f0-bb66-d7e3d265b120",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        900,
        280
      ]
    },
    {
      "id": "d5fa04bf-e40b-41d7-9d48-c71cd7ced93f",
      "name": "Anthropic Routing Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        240,
        60
      ]
    },
    {
      "id": "0f358356-37d4-4693-a694-382a8bc1b20f",
      "name": "Sonnet 4 or Opus 4",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        600,
        280
      ]
    },
    {
      "id": "c92104a6-9aa4-4a55-84b1-484df25f83ac",
      "name": "Sonnet 3.7",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        220,
        280
      ]
    },
    {
      "id": "513642ef-b4d6-46fc-8542-319dd54271f8",
      "name": "Simple Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        720,
        280
      ]
    },
    {
      "id": "6c81dcd9-7faf-4b34-8e78-a471de80fa1e",
      "name": "web_search",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1020,
        280
      ]
    }
  ],
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Sonnet 3.7": {
      "ai_languageModel": [
        [
          {
            "node": "Anthropic Routing Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "web_search": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Sonnet 4 or Opus 4": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Routing Agent": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Anthropic Routing Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Anthropic Routing Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}