Skip to main content

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​

NameDisplay NameInfo
memoryExternal MemoryRetrieve messages from an external memory. If empty, it will use the Langflow tables.
senderSender TypeFilter by sender type.
sender_nameSender NameFilter by sender name.
n_messagesNumber of MessagesNumber of messages to retrieve.
session_idSession IDThe session ID of the chat. If empty, the current session ID parameter will be used.
orderOrderOrder of the messages.
templateTemplateThe template to use for formatting the data. It can contain the keys {text}, {sender} or any other key in the message data.

Outputs​

NameDisplay NameInfo
messagesMessages (Data)Retrieved messages as Data objects.
messages_textMessages (Text)Retrieved messages formatted as text.
lc_memoryMemoryBuilt 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​

NameDisplay NameInfo
input_textMessage InputText to be processed
text_compareMatch TextThe text input to compare against
operatorOperatorThe operator to apply for comparing the texts.
custom_prompt_conditionCustom Prompt ConditionOptional: Add custom condition.
messageMessageThe message to pass through either route.

Loop​

A component to loop over a list with a prompt

Parameters​

Inputs​

NameDisplay NameInfo
promptPromptWrite your prompt with variable (yourInput1) (in curly brackets) and 2. This Component will run this prompt on every entry on your input list.
iteratorListPlease provide your list
iterator2Iterator 2Please provide your list

Combine Text​

This component concatenates two text sources into a single text chunk using a specified delimiter.

Parameters​

Inputs​

NameDisplay NameInfo
first_textFirst TextThe first text input to concatenate.
second_textSecond TextThe second text input to concatenate.
delimiterDelimiterA 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​

NameDisplay NameInfo
n_fieldsNumber of FieldsNumber of fields to be added to the record.
text_keyText KeyKey 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​

NameDisplay NameInfo
dataDataYour Data table
columnColumn nameThe name of the column
text_compareMatch TextThe text input to compare against
operatorOperatorThe operator to apply for comparing the texts

Outputs​

NameDisplay NameInfo
filtered_dataFiltered DataThe 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​

NameDisplay NameInfo
task_descriptionDescriptionDescriptive text detailing task's purpose and execution.
expected_outputExpected OutputClear definition of expected task outcome.
toolsToolsList of tools/resources limited for task execution. Uses the Agent tools by default.

Outputs​

NameDisplay NameInfo
task_outputTaskThe built hierarchical task.

ID Generator​

This component generates a unique ID.

Parameters​

Outputs​

NameDisplay NameInfo
valueValueUnique 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​

NameDisplay NameInfo
dataDataThe data to convert to text
templateTemplateThe template to use for formatting the data. It can contain the keys {text}, {data} or any other key in the Data
sepSeparatorThe separator to use between multiple data items
dataListData as ListCheck this if you want the Data as list

Outputs​

NameDisplay NameInfo
textTextThe 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​

NameDisplay NameInfo
dataDataThe data to convert to text
templateTemplateThe template to use for formatting the data. It can contain the keys {text}, {data} or any other key in the Data
sepSeparatorThe separator to use between multiple data items

Outputs​

NameDisplay NameInfo
textTextThe 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​

NameDisplay NameInfo
task_descriptionDescriptionDescriptive text detailing task's purpose and execution.
expected_outputExpected OutputClear definition of expected task outcome.
toolsToolsList of tools/resources limited for task execution. Uses the Agent tools by default.
agentAgentCrewAI Agent that will perform the task.
taskTaskCrewAI Task that will perform the task.
async_executionAsync ExecutionBoolean flag indicating asynchronous task execution.

Outputs​

NameDisplay NameInfo
task_outputTaskThe built sequential task or list of tasks.

Split Text​

This component splits text into chunks of a specified length.

Parameters​

Inputs​

NameDisplay NameInfo
textsTextsTexts to split.
separatorsSeparatorsCharacters to split on. Defaults to a space.
max_chunk_sizeMax Chunk SizeThe maximum length (in characters) of each chunk.
chunk_overlapChunk OverlapThe amount of character overlap between chunks.
recursiveRecursiveWhether 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​

NameDisplay NameInfo
messageMessageThe chat message to be stored. (Required)
memoryExternal MemoryThe external memory to store the message. If empty, it will use the Langflow tables.
senderSenderThe sender of the message. Can be Machine or User. If empty, the current sender parameter will be used.
sender_nameSender NameThe name of the sender. Can be AI or User. If empty, the current sender parameter will be used.
session_idSession IDThe session ID of the chat. If empty, the current session ID parameter will be used.

Outputs​

NameDisplay NameInfo
stored_messagesStored MessagesThe list of stored messages after the current message has been added.

Hallo, wie kann ich Ihnen helfen?