Long text input
Long Text Input in AgenticFlow AI
What is a Long Text Input?
A Long Text Input is an input component that allows you to enter multiple lines 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 Long Text Input Component
The Long Text Input component is suitable for longer pieces of text, such as:
Responses
Audio transcriptions
Detailed descriptions
How to Add a Long Text Input to Your Custom Workflow
The Long Text Input component is listed under User Inputs. You can add it to your workflow using the main section or the sidebar.
Adding a Long 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 Long Text Input from the list of input components.
Long 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 Long 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 long_text
, you can access it as:
{{long_text}}
in most workflow steps.params.long_text
in a JavaScript step.
Example Usage in a Prompt:
By following these steps, you can effectively utilize Long Text Input components in your workflows to capture and process user-entered long text or data from datasets, enhancing the capabilities of your AI-driven automation in AgenticFlow AI.
Last updated