[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"workflow-sfn-agentcore-harness-conditional-routing":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":35,"meta":36,"resources":37,"services":52,"simplicity":61,"stem":62,"testing":63,"type":67,"usecase":68,"videoId":28,"__hash__":69},"workflows\u002Fworkflows\u002Fsfn-agentcore-harness-conditional-routing.json","AWS Step Functions conditional routing on an Amazon Bedrock AgentCore harness agent verdict",{"headline":7,"text":8},"Cleanup",[9],"Stop running executions, then delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsurya-sai-d.json",{"text":13},[14,15],"sam build","sam deploy --guided","Route a batch of transactions on the verdict of Amazon Bedrock AgentCore harness agents. Risky batches wait for a reviewer who signs in with Amazon Cognito.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fsfn-agentcore-harness-conditional-routing.png","json","AWS SAM",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fsfn-agentcore-harness-conditional-routing\u002F","sfn-agentcore-harness-conditional-routing","template.yaml","statemachine\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33,34],"You start this AWS Step Functions workflow with an account holder and a batch of card transactions. Up to three calls to one Amazon Bedrock AgentCore harness review the batch through the optimized InvokeHarness integration, so there is no agent code to deploy.","A fraud analyst call lists the suspicious transactions. A compliance call explains them and ends with a verdict token, which a Choice state routes on. RISK_NONE closes the batch automatically. RISK_IMMEDIATE goes to a third call that drafts a customer notification and case notes for approval. RISK_REVIEW, an unclear token or a failed call goes to human review.","Requests arrive by Amazon SNS email with Approve and Reject links, and the workflow waits up to 24 hours. The reviewer signs in with Amazon Cognito, and an AWS Lambda function behind Amazon API Gateway returns the decision. The workflow records each outcome in Amazon DynamoDB.","300",{},{"headline":38,"bullets":39},"Additional resources",[40,43,46,49],{"text":41,"link":42},"Invoke Amazon Bedrock AgentCore harness with Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-bedrockagentcore.html",{"text":44,"link":45},"Amazon Bedrock AgentCore harness","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fharness.html",{"text":47,"link":48},"Harness tools and allowedTools","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fharness-tools.html",{"text":50,"link":51},"Choice workflow state","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fstate-choice.html",[53,54,55,56,57,58,59,60],"sfn","bedrock-agentcore","bedrock","sns","cognito","apigw","lambda-event-functions","dynamodb","2 - Pattern","workflows\u002Fsfn-agentcore-harness-conditional-routing",{"headline":64,"text":65},"Testing",[66],"See the GitHub repo for detailed testing instructions.","Standard","Agentic AI","VRQiNUoKDFDaPckMm9M9IIlH2DWAGOwhnV6vl3UYxlM",1795218007235]