Drop-down
Drop-down in AgenticFlow AI
What is a Drop-down Input?
A Drop-down Input is an input component that allows you to provide a list of options, one of which can be selected by the user.
When to Use the Drop-down Input Component
The Drop-down Input component is suitable for situations where users need to select an option. For example, you can use it to allow users to choose between "Basic Analysis" and "Advanced Analysis" in a workflow that provides two different analysis flows.
How to Add a Drop-down Input to Your Custom Workflow
The Drop-down Input component is listed under User Inputs. You can add it to your workflow using the main section or the sidebar.
Adding a Drop-down Input
Navigate to the Workflow page.
Click on + Create Workflow or select an existing workflow.
In the empty state or within your workflow, click on + Add Input.
Select Drop-down Input from the list of input components.
Drop-down Input Settings
Title
The title of your input component.
Description
Describe what this input is or will be used for. This helps users understand the purpose of the input.
Variable Name
Located on the bottom left and marked in green, you can rename the variable. Use this name to access the data in your workflow.
Optional/Required
Located on the top right, as the name suggests:
Optional: The input is not mandatory for the workflow to run.
Required: The input must be provided before your analysis starts.
Set a Default Value
To set a default value for a Drop-down Input component:
Enter the options to be shown in the drop-down menu.
Click on the small setting icon on the bottom right.
Click on Set Current Value to save the default value.
Ensure to save the default values after entering the options.
Accessing the Selected Option in the Drop-down
To access the selected option, use the variable name within double curly braces {{}}
.
For example, if the variable name is options
, you can access it as:
{{options}}
in most workflow steps.params.options
in a JavaScript step.
Example Usage in a Prompt:
By following these steps, you can effectively utilize Drop-down Input components in your workflows to capture and process user-selected options, enhancing the capabilities of your AI-driven automation in AgenticFlow AI.
Last updated