Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Include guardrails in your flow in Amazon Bedrock

Focus mode
Include guardrails in your flow in Amazon Bedrock - Amazon Bedrock

Amazon Bedrock Flows integrates with Amazon Bedrock Guardrails to let you identify and block or filter unwanted content in your flow. To learn how to apply guardrails to supported node types in a flow, see the following table:

Node type Console API
Prompt node When you create or update a flow, select the prompt node and specify the guardrail in the Configure section. When you define the prompt node in the nodes field in a CreateFlow or UpdateFlow request, include a guardrailConfiguration field in the PromptFlowNodeConfiguration.
Knowledge base node When you create or update a flow, select the knowledge base node and specify the guardrail in the Configure section. You can only include a guardrail when generating responses based on retrieved results. When you define the knowledge base node in the nodes field in a CreateFlow or UpdateFlow request, include a guardrailConfiguration field in the KnowledgeBaseFlowNodeConfiguration. You can only include a guardrail when using RetrieveAndGenerate so you must include a modelId.

For more information about guardrails, see Stop harmful content in models using Amazon Bedrock Guardrails.

For more information about node types, see Node types in flow.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.