{
  "name": "AgentCore \u2014 Code Interpreter Data Analysis",
  "nodes": [
    {
      "parameters": {},
      "id": "1",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "agentName": "data_analyst",
        "modelId": "global.anthropic.claude-opus-4-8",
        "systemPrompt": "You are a data analyst. When given data or computational tasks, write and execute Python code in the sandbox to produce results. Show your work.",
        "prompt": "Generate 1000 random numbers between 0 and 100. Compute mean, median, standard deviation, and produce a histogram description (no actual image needed). Return all results as JSON.",
        "tools": {
          "tool": [
            {
              "type": "agentcore_code_interpreter",
              "name": "code_interpreter"
            }
          ]
        },
        "additionalOptions": {
          "timeoutSeconds": 300,
          "maxTokens": 4096
        }
      },
      "id": "2",
      "name": "Data Analyst",
      "type": "@aws/n8n-nodes-agentcore.agentCoreHarness",
      "typeVersion": 1,
      "position": [
        480,
        300
      ],
      "credentials": {
        "agentCoreApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Data Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}