Skip to main content

AWS AgentCore action

Runs an agent your developers host in AWS, on Bedrock AgentCore. In the action picker it is AWS AgentCore, under Integration Actions. The agent's progress streams into the run as it works, and the step waits at most 4 minutes for its reply.

note

During a dry run the agent is not called at all: the step logs what it would have run and returns its Test Output, or nothing. Unlike the built-in AI Agent, an agent in AWS can't be held to read-only tools, so skipping it is the only safe choice.

An AWS AgentCore step: the AWS account, the agent, a prompt holding the headline, and the memory scope

Fields​

FieldRequiredDescription
AWS AccountYesThe AWS connection whose runtimes this step can reach, in that account's region. Pick it first: everything below is drawn from it.
AgentYesThe hosted agent to run, chosen from the runtimes the selected account holds in its region.
InputYesWhat to send the agent: a Prompt, written as text, or JSON, a structured payload. Both accept variables, resolved before the request is sent.
Long-term Memory ScopeNoHow much the agent recalls between runs; see below.

Leaving AWS Account blank means the deployment's own AWS credentials, and only where the platform operator permits that; where they don't, the step cannot run until this field names an account.

Long-term Memory Scope​

This decides which prior runs an agent can recall. It has no effect unless long-term memory is enabled on the agent's own memory resource in AWS; where it is, facts and summaries accumulate per scope. Short-term recall within a single run works the same whichever scope you pick.

ScopeWhat shares a memory
Per NodeThis step alone. Two AgentCore steps in the same automation stay separate.
Per WorkflowEvery AgentCore step in this automation, across all its runs. The default.
Per Site AgentThe same agent, wherever it is run. Right for an agent that acts as a standing assistant rather than belonging to one automation.
Per SiteEvery AgentCore step in every automation.
EphemeralNothing. The run leaves no trace a later run can recall. Use it for test runs and for content that should not persist.
warning

Per Site is the broadest scope, and the easiest way for unrelated automations to leak context into each other: what one automation's agent learned about one piece of content becomes recallable by every other. Pick it only when sharing is the point.

Pausing for a person​

The step doesn't pause for a person. The agent runs as a black box in your AWS account, so an agent that needs someone's input or approval builds that into itself. An agent that asks the step for input fails the step.

Output​

What the agent replied, in a shape the agent decides:

  • An agent that replies in one piece gives what it returned.
  • An agent that streams its reply gives text, the text it streamed joined into one reply, and events, every other value it streamed, in order. The step finishes when the stream closes. For a single clean value that later steps can read directly, have the agent return its result rather than stream it.

An agent whose code fails partway through a streamed reply fails the step with the agent's error, and an agent still replying after 4 minutes fails the step.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.