Amazon SageMaker Unified Studio is in preview release and is subject to change.
Add a prompt to a flow app
In this procedure, you add a prompt to an existing flow app.
To add a prompt to a flow app
-
Navigate to the Amazon SageMaker Unified Studio landing page by using the URL from your admininstrator.
-
Access Amazon SageMaker Unified Studio using your IAM or single sign-on (SSO) credentials. For more information, see Access Amazon SageMaker Unified Studio.
If the project that you want to use isn't already open, do the following:
-
Choose the current project at the top of the page. If a project isn't already open, choose Select a project.
-
Select Browse all projects.
-
In Projects select the project that you want to use.
-
Choose the Build menu option at the top of the page.
In MACHINE LEARNING & GENERATIVE AI choose My apps.
-
In Apps choose the flow app that you want to add the prompt to.
-
In the flow builder pane, select the Nodes tab.
-
From the Orchestration section, drag a Prompt node onto the flow builder canvas.
-
In the the flow builder, select the Prompt node that you just added.
-
In the flow builder pane, choose the Configure tab and do the following:
-
For Node name, enter a name for the Prompt node.
-
For Prompt in the Prompt details section, select the prompt that you want to add.
-
For Version, select the version of the prompt that you want to add.
-
If you want to identify specific data from the upstream node that the prompt should use, change the value in Expression. For more information, see Define inputs with expressions.
-
-
The circles on the nodes are connection points. For each variable, draw a line from the circle on the upstream node (such as the Flow input node) to the circle for the variable in the Input section of the prompt node.
-
Connect the Output of the prompt node to the downstream node that you want the prompt to send its output to. The flow should look similar to the following image:
Choose Save to save your changes.