Text Input

Text Input in AgenticFlow AI

What is a Text Input?

A Text Input is an input component that allows you to enter a line of text. The value can be entered by the user or fetched later from an uploaded dataset during a bulk-run.

When to Use the Text Input Component

The Text Input component is suitable for short pieces of text, such as:

  • A question

  • A name

  • A topic

How to Add a Text Input to Your Custom Workflow

The Text Input component is listed under User Inputs. You can add it to your workflow using the main section or the side-bar.

Adding a Text 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 Text Input from the list of input components.

Text 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.

Setting a Default Value

To set a default value for a Text Input component:

  1. Enter the value in the input field.

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

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

Accessing the Entered Text

To access the entered text, use the variable name within double curly braces {{}}.

For example, if the variable name is text, you can access it as:

  • {{text}} in most workflow steps.

  • params.text in a JavaScript step.

Example Usage in a Prompt:

Create an engaging Instagram caption based on the following: "{{topic}}"

By following these steps, you can effectively utilize Text Input components in your workflows to capture and process user-entered text or data from datasets, enhancing the capabilities of your AI-driven automation in AgenticFlow AI.

Last updated