cd /news/ai-agents/run-production-ai-agents-in-n8n-with… · home topics ai-agents article
[ARTICLE · art-88073] src=aws.amazon.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Run production AI agents in n8n with Amazon Bedrock AgentCore harness

Amazon Web Services (AWS) announced the general availability of Amazon Bedrock AgentCore harness, a managed capability for building production AI agents, and released an open-source community node, @aws/n8n-nodes-agentcore, that integrates it into n8n's visual editor. The node supports Amazon Bedrock, OpenAI, Google Gemini, and LiteLLM-supported providers, and allows users to create agents with persistent memory, tools, and skills without writing infrastructure code. The harness is powered by Strands Agents, AWS's open source agent framework, and the node is available under the MIT license.

read11 min views2 publishedAug 5, 2026
Run production AI agents in n8n with Amazon Bedrock AgentCore harness
Image: AWS ML Blog
[Artificial Intelligence](/blogs/machine-learning/)


If you build and automate workflows in [n8n](https://n8n.io/) without writing much code, you’ve probably used its AI Agent node to add a model call to a workflow. It’s a great start. But a production agent needs more than a single model call: memory that lasts beyond one run, tools it can actually use like a browser or a code sandbox, and room to work through longer tasks. Building that scaffolding yourself is the hard part.

Amazon Bedrock AgentCore is a platform to build, connect, and optimize agents at scale, with any framework or model. AgentCore harness, a capability of Amazon Bedrock AgentCore, is now generally available and provides that scaffolding for you. A new open-source community node brings it into n8n’s visual editor. You get production agents with persistent memory, real tools, and the model provider of your choice, without writing infrastructure or agent code. You’re not tied to one model either. The node works with Amazon Bedrock, OpenAI, Google Gemini, and LiteLLM-supported providers, and you can switch providers between turns of the same conversation.

In this post, you will install the node, @aws/n8n-nodes-agentcore, and build agents step by step in the n8n editor. You will start with an agent that remembers a conversation, scope memory to individual users, add a code interpreter tool, give the agent skills, and finish by running an agent privately in your own virtual private cloud (VPC). The node is open source under the MIT license, and AgentCore harness is powered by Strands Agents, the open source agent framework from AWS.

What the node does #

An agent is more than a model. The model reasons, but the harness does the work around it: it runs the orchestration loop, calls tools, manages the context window, keeps state across turns, recovers from failures, and isolates each session. Building that layer is where most teams spend their time.

AgentCore harness gives you that layer as a managed capability. You define an agent in configuration, including the model it uses, the tools it calls, the skills it has access to, and the instructions it follows, and AgentCore assembles and runs the loop for you. Each session runs in its own isolated environment with a filesystem and shell, memory across sessions, and web browsing. When configuration isn’t enough, you can export the harness to Strands code and keep running on the same system.

n8n’s built-in AI Agent node is a good fit for a single model call in a workflow. The community node goes further by exposing the full harness in the n8n editor. It has one operation with a single deciding field, Harness ARN:

  • Leave it blank and the node creates an agent for you on the first run, reuses it on later runs, and updates it when your configuration changes.
  • Paste an existing harness ARN and the node invokes that agent directly, so you can use agents you created outside n8n.

The node uses the same AWS credential pattern as the existing n8n AWS Lambda and Amazon Simple Storage Service (Amazon S3) nodes, so it feels familiar if you already automate AWS services in n8n.

Prerequisites #

Before you begin, make sure you have the following:

An n8n instance. You can run n8n either as a self-hosted install or on n8n Cloud. Both work with this node. If you’re new to n8n, see then8n deployment documentationto choose an option and set up your instance, then complete the initial sign-in so you land in the editor where you will build the workflows in this post.- The node installed.

@aws/n8n-nodes-agentcore is a verified community node, so you can find it directly in the n8n nodes panel. In the editor, add a node, search for Amazon Bedrock AgentCore, and select it — n8n installs it for you. (You can also install it from Settings, Community Nodes, Install by entering@aws/n8n-nodes-agentcore

.) This post uses node version 0.3. - An AWS account with access to AgentCore harness in a supported AWS Region. - AWS credentials for the caller (the identity whose keys go in the n8n credential) with the harness caller permissions, plus a separate AWS Identity and Access Management(IAM) execution role that the harness assumes at runtime. AWS maintains the least-privilege reference policies inAgentCore harness security documentationand thenode READMEmaps each feature to the permissions to add.

Important: Where you can, use temporary credentials from AWS IAM Identity Center or AWS Security Token Service (AWS STS), and follow the principle of least privilege when you configure IAM permissions. Don’t commit credentials to source control.

Note on cost: The AgentCore harness, the managed memory store it provisions, and (if you use it) VPC endpoints are billed AWS resources. Follow the Clean up section at the end to remove what you create for this walkthrough, and refer to the AgentCore documentation for pricing.

Set up the credential #

You configure the AWS credential once, the same way you would for other AWS nodes in n8n.

  • In n8n, go to Credentials and chooseNew. - Search for and select Amazon Bedrock AgentCore API. - Enter your Access Key ID andSecret Access Key, and a** Session Tokenif you use temporary credentials. - Select your Region and enter theExecution Role ARN** that the harness assumes at runtime. - Choose Test to confirm the connection, then chooseSave.

Build your first agent and give it memory #

In this walkthrough, you build an agent that remembers details across turns of a conversation. Memory is on by default, so the node provisions a managed memory store for you and there’s nothing extra to configure.

  • Add a manual trigger to a new workflow, add the Amazon Bedrock AgentCore node after it and attach your credential. - Leave Harness ARN blank so the node creates and reuses the agent. - Enter an Agent Name, such astravel_concierge

. - Set Model Provider toAmazon Bedrock and enter aModel ID, such as a Claude model. - Enter a System Prompt, such asYou are a warm, concise travel concierge, and aSession ID, such asdemo-travel-session

. Reusing this session ID is what continues the conversation on later runs. - Enter a Prompt for the first turn, such as “I love warm beaches and I’m vegetarian. Note that for me.”, and run the node.

The first run takes about 30-60 seconds while AWS provisions the agent. The output includes the agent’s response, token usage, and a summary of what the node provisioned, including the memory store it created for you.

Now change only the Prompt to Suggest one destination and one dish I’d enjoy, based on what you know about me, keep the same session ID, and run again.

The output field sessionSource

reads provided

when you supply a session ID, and the input token count rises on turn 2 because the node loads the prior conversation before the agent reasons. If you leave the session ID blank, each run starts a new conversation.

Scope memory per user with an actor ID #

When one agent serves many people, you can keep each person’s memory separate with an Actor ID. Memory is scoped by actor and session, so different actors get isolated histories from the same agent.

The scoping is a hierarchy: the agent holds the shared configuration, the Actor ID isolates one user’s memory from another’s, and the Session ID isolates individual conversations within an actor. One actor can have many sessions. A different actor with the same session ID still gets its own separate memory.

  • Use an agent such as team_assistant

with managed memory. - Under Additional Options, set** Actor ID**to a per-user value, such asuser-alice

, and set aSession ID for that user. - Run a first turn, such as Remember my project is codenamed Aurora. - Change the prompt to *What’s my project codename?*and run again with the same actor and session.

Add a tool: run code in a sandbox #

Agents become far more capable when they can use tools. In this walkthrough, you give the agent a code interpreter that runs code in a sandboxed environment.

  • Use an agent such as data_analyst

with a Claude model. - In the System Prompt, instruct the agent to write and run code to answer, then report the result. - Turn on Add Tools, then underTools, choose** Add Tooland set Typeto AgentCore Code Interpreter**, a capability of Amazon Bedrock AgentCore. - Enter a Prompt that requires computation, such as “Generate 500 random exam scores between 0 and 100, then report the mean, median, and standard deviation.”, and run the node.

You add other tools the same way, including a cloud browser, AgentCore Gateway (a capability of Amazon Bedrock AgentCore), and remote Model Context Protocol (MCP) servers.

Give the agent skills #

Skills are bundles of instructions and scripts that give an agent domain knowledge on demand. You load them from the AWS curated catalog, a Git repository, Amazon S3, or a filesystem path, and the harness loads them only when the task calls for them.

  • Use an agent such as aws_architect

with a Claude model. - Turn on Add Skills, then underSkills, choose** Add Skilland set the Source**. For the curated catalog, choose** AWS Skills**and enter a glob pattern such ascore-skills/*

. You can add more skills, for example aGit source that points to a public repository. - Enter a Prompt that benefits from the skill, such as “Outline a serverless image-upload pipeline on AWS”, and run the node.

Run in your VPC #

For agents that need private network access, you can run the harness in your VPC. You set the network configuration on the credential, so every agent that credential provisions runs privately.

  • Edit your Amazon Bedrock AgentCore API credential. - Set Network Mode toVPC. - Enter your VPC Subnet IDs andVPC Security Group IDs, then save.

Your subnets don’t need internet access. The harness pulls its managed container image from a private Amazon ECR repository in the same Region, so you need VPC endpoints for Amazon ECR and Amazon S3 rather than a NAT gateway. Refer to the AgentCore harness network configuration documentation for the required endpoints and the execution role permissions. Refer to the AgentCore harness security documentation for the required endpoints and the execution role permissions.

  • In a workflow, use an agent such as private_vpc_agent

with the VPC-enabled credential. - Enter a Prompt and run the node.

Clean up #

Each agent you create is a harness resource in your AWS account, and it can provision a managed memory store. To avoid ongoing charges, delete the agents you no longer need.

  • List your harnesses with the AWS Command Line Interface (AWS CLI) or the Amazon Bedrock AgentCore console.
  • Delete the ones you created for this post. For pricing details, refer to the
[AgentCore documentation](/bedrock/agentcore/pricing/).

If you enabled a VPC, you might also want to remove any interface VPC endpoints you created for this walkthrough, because interface endpoints incur charges while they exist.

Where to go next #

This post walked through memory, per-user scoping, a code interpreter tool, skills, and VPC networking. The node already supports more of the Amazon Bedrock AgentCore harness feature set. Here’s what to try next, each configured the same way you configured the features above:

Your choice of model provider, switchable mid-session. Use OpenAI, Google Gemini, or LiteLLM-supported providers alongside Amazon Bedrock. Set the provider and model on the node, and switch between turns of the same session without losing context. Non-Bedrock providers use an API key stored in AgentCore Identity (a capability of Amazon Bedrock AgentCore).More tools. Add a cloud browser, AgentCore Gateway with optional OAuth outbound authentication, and remote MCP servers alongside the code interpreter.Inline functions. Let the agent call back into your n8n workflow for a human-in-the-loop step, then return the result to the agent.Custom containers. Bring your own Linux/arm64 container image so the agent runs with your own dependencies.Filesystem mounts. Use managed session storage, or mount Amazon Elastic File System (Amazon EFS) or Amazon S3 for data that outlives a session.OAuth-authenticated invocation. Invoke agents protected by an inbound JSON Web Token (JWT) authorizer with a token from your identity provider, set on the AgentCore credential.Versions and endpoints. Every configuration change becomes an immutable version, and named endpoints let you pin staging and production to specific versions.

The examples folder in the GitHub repository includes importable workflows for many of these. For end-to-end use cases, the examples/templates folder has fuller workflows that show the agent working alongside other n8n nodes in complete, importable automations.

Conclusion #

In this post, you installed the open-source AgentCore harness community node for n8n and built agents that remember conversations, keep per-user memory separate, run code in a sandbox, use skills, and run privately in a VPC, all from the n8n editor and with no infrastructure or agent code. Because the node works with Amazon Bedrock, OpenAI, Gemini, and LiteLLM providers, you choose the model that fits each task.

To get started, add the Amazon Bedrock AgentCore node from the n8n nodes panel (or install @aws/n8n-nodes-agentcore

from Settings > Community Nodes), import an example workflow, and build your first agent. The node is open source under MIT and built on the open source Strands Agents framework, and contributions and feedback are welcome on the GitHub repository. To learn more about the underlying capability, refer to the AgentCore documentation. n8n is a trademark of n8n GmbH. All other trademarks are the property of their respective owners.

── more in #ai-agents 4 stories · sorted by recency
── more on @amazon web services 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/run-production-ai-ag…] indexed:0 read:11min 2026-08-05 ·