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

  1. Navigate to the Workflow page.

  2. Click on + Create Workflow or select an existing workflow.

  3. In the empty state or within your workflow, click on + Add Input.

  4. Select Drop-down Input from the list of input components.

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:

  1. Enter the options to be shown in the drop-down menu.

  2. Click on the small setting icon on the bottom right.

  3. Click on Set Current Value to save the default value.

  4. 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:

Perform the selected analysis type: "{{options}}"

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