AWS Builder Center
Stop Building AI Agents That Just Chat. Make Them Execute Real AWS Workflows.

Stop Building AI Agents That Just Chat. Make Them Execute Real AWS Workflows.

AI agents are moving beyond conversations into real business automation. Discover how Amazon Bedrock AgentCore Gateway connects AI agents with AWS Step Functions through MCP, enabling controlled execution, reliable workflows, and human approval.

Stop Building AI Agents That Just Chat. Make Them Execute Real AWS Workflows.
Imagine asking an AI agent:
"Process this customer's refund."
Instead of simply explaining the refund policy, the agent can initiate a real workflow that checks eligibility, requests approval, processes the refund, and reports the result.
But here is the important question:
Should an AI model decide every step of a business-critical workflow?
Probably not.
AI agents are excellent at understanding requests, selecting tools, and making context-based decisions. However, business processes often require predictable execution, strict validation, approvals, and traceability.
This is where AWS Step Functions becomes interesting.
1. A New Direction for AI Agents on AWS
On October 29, 2026, AWS announced that existing AWS Step Functions workflows can be exposed as AI agent tools through Amazon Bedrock AgentCore Gateway.
The integration uses the Model Context Protocol (MCP).
This creates an interesting division of responsibility:
- The AI agent decides when to initiate a workflow and what input to provide. - Step Functions controls which steps execute and in what order. - The workflow handles its defined execution logic.
The integration supports existing Standard and Express workflows.
Even better, developers can expose existing state machines without rewriting them or creating a separate Lambda function or MCP server just to connect them.
This is an important step toward making AI agents useful in real business applications.
2. Understand the Architecture
Consider an AI-powered customer support platform.
A customer asks:
"Can you refund my order #12345?"
A possible architecture looks like this:
CUSTOMER
|
v
AI AGENT
(Amazon Bedrock)
|
v
AgentCore Gateway
(MCP)
|
v
AWS STEP FUNCTIONS
Refund Workflow
|
+-------+-------+
\| | |
v v v
Check Manager Process
Eligibility Approval Refund
\| | |
+-------+-------+
|
v
Update Order Status
|
v
Return Result to Agent
|
v
CUSTOMER
The agent does not need to invent the refund process every time.
It initiates the approved workflow, and Step Functions executes the defined sequence.
That distinction matters.
3. Why This Combination Is Powerful
A. Deterministic execution
An AI model can produce different reasoning paths for similar requests.
A business workflow should not randomly change its execution order.
For example, a refund process might require:
1. Validate the order. 2. Check refund eligibility. 3. Obtain manager approval. 4. Process the payment reversal. 5. Update the order status. 6. Notify the customer.
Step Functions controls this sequence instead of allowing the model to improvise the business process.
B. Built-in error handling
Real-world workflows fail.
An external payment API might time out. A database operation might fail. An approval may remain pending.
Step Functions provides workflow-level retries, error handling, and state transitions.
For Standard workflows, execution history also provides a record of the individual steps.
This makes failures easier to investigate.
C. Human approval
Not every operation should be autonomous.
Consider a high-value refund or a production infrastructure change.
With the Step Functions callback pattern, a Standard workflow can pause and wait for an external task to complete before continuing.
The agent can perform the assigned task and signal success or failure through the task-token mechanism.
The important point is that the workflow remains responsible for controlling when execution resumes.
D. Reuse existing workflows
Many organizations already have business processes implemented using Step Functions.
Exposing them as agent tools means teams can connect AI capabilities to existing workflows instead of rebuilding business logic inside an agent.
That can reduce duplicated logic and make adoption more practical.
4. How the MCP Integration Works
The technical flow is worth understanding.
Step 1: Configure AgentCore Gateway
Create a Gateway target using the built-in Step Functions connector.
Step 2: Select the workflow operations
Choose which Step Functions operations should become available to the agent.
Examples include:
- StartExecution - DescribeExecution - ListExecutions - GetExecutionHistory - StopExecution
Step 3: Discover available tools
The agent discovers configured tools through the MCP "tools/list" operation.
Step 4: Invoke the workflow
The agent calls the selected tool through MCP "tools/call", passing the workflow input.
Step 5: Track execution
The agent can use the returned execution information to check status and inspect execution history where supported.
The Gateway handles tool schemas and authenticates to Step Functions using its configured service role.
This integration removes the need to build a separate MCP server simply to expose Step Functions operations.
5. Security: Don't Give Your Agent Unlimited Workflow Access
Connecting AI agents to business workflows introduces another security responsibility.
An agent that can initiate a workflow should not automatically have permission to control every state machine in your AWS account.
Important controls include:
- Apply least-privilege IAM permissions to the Gateway service role. - Expose only the operations required by the use case. - Pin state machines to the intended operations. - Restrict execution access using appropriate IAM resource scopes. - Treat task tokens as sensitive credentials. - Require human approval for high-impact actions.
One particularly important detail: pinning a state machine and restricting IAM permissions are complementary controls, not replacements for each other.
A tool connection is not a security boundary by itself.
6. A Project Developers Can Actually Build
Here is a practical project idea:
AI-Powered Order Management Agent on AWS
Suggested architecture:
Component| AWS service AI capabilities| Amazon Bedrock Agent tool integration| Amazon Bedrock AgentCore Gateway Workflow orchestration| AWS Step Functions Order data| Amazon DynamoDB Notifications| Amazon SNS Application monitoring| Amazon CloudWatch
Possible features:
1. Understand customer requests using an AI agent. 2. Retrieve relevant order information. 3. Start an order-processing workflow. 4. Validate business rules. 5. Pause for approval when required. 6. Process approved operations. 7. Report workflow status to the customer.
Start with a simple refund workflow. Then add approval handling, failure scenarios, and execution monitoring.
Do not try to automate everything in the first version.
Build one reliable workflow before introducing more agents and tools.
7. When Should You Use This Architecture?
This combination is particularly useful when:
- A task requires multiple steps in a defined order. - Business policies must be followed consistently. - Some actions require human approval. - Existing Step Functions workflows need to become accessible to AI agents. - Teams need execution history and operational visibility.
It is less useful when the task is a simple, stateless question that does not require a workflow.
Not every AI interaction needs an orchestrator.
Choose architecture based on the problem, not the excitement around new services.
8. The Bigger Shift: From AI Conversations to AI Execution
The next stage of generative AI is not simply building chatbots with better responses.
It is connecting reasoning systems to real applications and business processes.
But autonomy without control creates risk.
A strong architecture separates responsibilities:
AI Agent: Understands the request and selects an appropriate tool.
AgentCore Gateway: Exposes and manages the tool integration.
Step Functions: Executes the defined workflow.
IAM: Controls AWS permissions.
Human approval: Provides oversight for sensitive operations.
This is how AI can become more useful without allowing the model to control everything.
Final Thoughts
The interesting part of this AWS development is not just that an AI agent can call another tool.
It is that organizations can connect intelligent decision-making with workflows they already trust.
The agent can decide what needs to happen.
The workflow ensures how it happens.
And the security layer determines what is actually permitted.
The future of AI agents isn't just better conversations. It's reliable execution of real-world work. 🚀☁️
Let's discuss
Would you allow an AI agent to initiate a business-critical AWS workflow automatically?
Or should every sensitive operation require human approval?
What architecture would you choose for production: direct agent tool execution or agent + Step Functions orchestration?
I'd like to hear how other AWS builders are approaching this.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article