After you’ve created a flow, you will have a working draft. The working draft is a version of the flow that you can iteratively build and test. Each time you make changes to your flow, the working draft is updated.
When you test your flow Amazon Bedrock first verifies the following and throws an exception if the verification fails:
-
Connectivity between all flow nodes.
-
At least one flow output node is configured.
-
Input and output variable types are matched as required.
-
Condition expressions are valid and a default outcome is provided.
If the verification fails, you'll need to fix the errors before you can test and validate the performance of your flow. Following are steps for testing your flow, choose the tab for your preferred method, and then follow the steps:
To test your flow
-
If you're not already in the Flow builder, do the following:
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at Getting Started with the AWS Management Console.
-
Select Amazon Bedrock Flows from the left navigation pane. Then, in the Amazon Bedrock Flows section, select a flow you want to test.
-
Choose Edit in flow builder.
-
-
In the Flow builder page, in the right pane, enter an input to invoke your flow. Check that the input data type matches the output data type that you configured for the flow input node.
-
Choose Run.
-
Nodes or connections in the flow configuration that trigger errors become higlighted in red and ones that trigger warnings become highlighted in yellow. Read the error messages and warnings, fix the identified issues, save the flow, and run your test again.
Note
You must save the flow for the changes you made to be applied when you test the flow.
-
(Optional) To view the inputs, outputs, and execution duration for each node, choose Show trace in the response. For more information, see Track each step in your flow by viewing its trace in Amazon Bedrock. To return to the visual builder, choose Hide trace or select the collapse icon.
-
After you are satisfied with your flow performance, choose Save and exit.
-
You can continue to iterate on building your flow. When you're satisfied with it and are ready to deploy it to production, create a version of the flow and an alias to point to the version. For more information, see Deploy a flow to your application using versions and aliases.