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
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 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:
Enter the value in the input field.
Click on the small setting icon on the bottom right.
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:
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