Helpers
Helper components provide utility functions to help manage data, tasks, and other components in your flow.
Chat Memoryβ
This component retrieves and manages chat messages from Langflow tables or an external memory.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
memory | External Memory | Retrieve messages from an external memory. If empty, it will use the Langflow tables. |
sender | Sender Type | Filter by sender type. |
sender_name | Sender Name | Filter by sender name. |
n_messages | Number of Messages | Number of messages to retrieve. |
session_id | Session ID | The session ID of the chat. If empty, the current session ID parameter will be used. |
order | Order | Order of the messages. |
template | Template | The template to use for formatting the data. It can contain the keys {text} , {sender} or any other key in the message data. |
Outputsβ
Name | Display Name | Info |
---|---|---|
messages | Messages (Data) | Retrieved messages as Data objects. |
messages_text | Messages (Text) | Retrieved messages formatted as text. |
lc_memory | Memory | Built LangChain memory object. |
Conditionβ
This component checks if a condition is true or false. If the condition is true, the true route is executed, otherwise the false route.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
input_text | Message Input | Text to be processed |
text_compare | Match Text | The text input to compare against |
operator | Operator | The operator to apply for comparing the texts. |
custom_prompt_condition | Custom Prompt Condition | Optional: Add custom condition. |
message | Message | The message to pass through either route. |
Loopβ
A component to loop over a list with a prompt
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
prompt | Prompt | Write your prompt with variable (yourInput1) (in curly brackets) and 2. This Component will run this prompt on every entry on your input list. |
iterator | List | Please provide your list |
iterator2 | Iterator 2 | Please provide your list |
Combine Textβ
This component concatenates two text sources into a single text chunk using a specified delimiter.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
first_text | First Text | The first text input to concatenate. |
second_text | Second Text | The second text input to concatenate. |
delimiter | Delimiter | A string used to separate the two text inputs. Defaults to a space. |
Create Listβ
This component dynamically creates a record with a specified number of fields.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
n_fields | Number of Fields | Number of fields to be added to the record. |
text_key | Text Key | Key used as text. |
Custom Componentβ
Use this component as a template to create your custom component.
Filter Dataβ
This component filters a column against an match text with an operator
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
data | Data | Your Data table |
column | Column name | The name of the column |
text_compare | Match Text | The text input to compare against |
operator | Operator | The operator to apply for comparing the texts |
Outputsβ
Name | Display Name | Info |
---|---|---|
filtered_data | Filtered Data | The filtered Data |
Hierarchical Taskβ
This component creates and manages hierarchical tasks for CrewAI agents in a Playground environment.
For more information, see the CrewAI documentation.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
task_description | Description | Descriptive text detailing task's purpose and execution. |
expected_output | Expected Output | Clear definition of expected task outcome. |
tools | Tools | List of tools/resources limited for task execution. Uses the Agent tools by default. |
Outputsβ
Name | Display Name | Info |
---|---|---|
task_output | Task | The built hierarchical task. |
ID Generatorβ
This component generates a unique ID.
Parametersβ
Outputsβ
Name | Display Name | Info |
---|---|---|
value | Value | Unique ID generated. |
Merge Data 1 and 2β
With this Component you can Merge to Data tables into one Data table. You need to use Part 1 and 2.
Output Parserβ
Parse the output of an LLM into specified ouput. You have to put this Component into a prompt Component.
Parse Dataβ
The ParseData component converts Data objects into plain text or a Data Object using a specified template. This component transforms structured data into human-readable text formats, allowing for customizable output through the use of templates.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
data | Data | The data to convert to text |
template | Template | The template to use for formatting the data. It can contain the keys {text} , {data} or any other key in the Data |
sep | Separator | The separator to use between multiple data items |
dataList | Data as List | Check this if you want the Data as list |
Outputsβ
Name | Display Name | Info |
---|---|---|
text | Text | The resulting formatted text string as a Message or Data object |
Parse Data to Textβ
The ParseData component converts Data objects into plain text using a specified template. This component transforms structured data into human-readable text formats, allowing for customizable output through the use of templates.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
data | Data | The data to convert to text |
template | Template | The template to use for formatting the data. It can contain the keys {text} , {data} or any other key in the Data |
sep | Separator | The separator to use between multiple data items |
Outputsβ
Name | Display Name | Info |
---|---|---|
text | Text | The resulting formatted text string as a Message object |
Sequential Taskβ
This component creates and manage sequential tasks for CrewAI agents. It builds a SequentialTask object with the provided description, expected output, and agent, allowing for the specification of tools and asynchronous execution.
For more information, see the CrewAI documentation.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
task_description | Description | Descriptive text detailing task's purpose and execution. |
expected_output | Expected Output | Clear definition of expected task outcome. |
tools | Tools | List of tools/resources limited for task execution. Uses the Agent tools by default. |
agent | Agent | CrewAI Agent that will perform the task. |
task | Task | CrewAI Task that will perform the task. |
async_execution | Async Execution | Boolean flag indicating asynchronous task execution. |
Outputsβ
Name | Display Name | Info |
---|---|---|
task_output | Task | The built sequential task or list of tasks. |
Split Textβ
This component splits text into chunks of a specified length.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
texts | Texts | Texts to split. |
separators | Separators | Characters to split on. Defaults to a space. |
max_chunk_size | Max Chunk Size | The maximum length (in characters) of each chunk. |
chunk_overlap | Chunk Overlap | The amount of character overlap between chunks. |
recursive | Recursive | Whether to split recursively. |
Store Messageβ
This component stores chat messages or text into Langflow tables or an external memory.
It provides flexibility in managing message storage and retrieval within a chat system.
Parametersβ
Inputsβ
Name | Display Name | Info |
---|---|---|
message | Message | The chat message to be stored. (Required) |
memory | External Memory | The external memory to store the message. If empty, it will use the Langflow tables. |
sender | Sender | The sender of the message. Can be Machine or User. If empty, the current sender parameter will be used. |
sender_name | Sender Name | The name of the sender. Can be AI or User. If empty, the current sender parameter will be used. |
session_id | Session ID | The session ID of the chat. If empty, the current session ID parameter will be used. |
Outputsβ
Name | Display Name | Info |
---|---|---|
stored_messages | Stored Messages | The list of stored messages after the current message has been added. |