Helper components in Langflow
Helper components provide utility functions to help manage data, tasks, and other components in your flow.
Chat memory in Langflow is stored either in local Langflow tables with LCBufferMemory
, or connected to an external database.
The Store Message helper component stores chat memories as Data objects, and the Message History helper component retrieves chat messages as data objects or strings.
This example flow stores and retrieves chat history from an AstraDBChatMemory component with Store Message and Chat Memory components.

The Batch Run component runs a language model over each row of a DataFrame text column and returns a new DataFrame with the original text and the model's response.
Name | Display Name | Type | Info | Required |
---|
model | Language Model | HandleInput | Connect the 'Language Model' output from your LLM component here. | Yes |
system_message | System Message | MultilineInput | Multi-line system instruction for all rows in the DataFrame. | No |
df | DataFrame | DataFrameInput | The DataFrame whose column (specified by 'column_name') will be treated as text messages. | Yes |
column_name | Column Name | StrInput | The name of the DataFrame column to treat as text messages. Default='text'. | Yes |
Name | Display Name | Method | Info |
---|
batch_results | Batch Results | run_batch | A DataFrame with two columns: 'text_input' and 'model_response'. |
This component dynamically creates a record with a specified number of fields.
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. |
Name | Display Name | Info |
---|
list | List | The dynamically created list with the specified number of fields. |
The Current Date component returns the current date and time in a selected timezone. This component provides a flexible way to obtain timezone-specific date and time information within a Langflow pipeline.
Name | Display Name | Info |
---|
timezone | Timezone | Select the timezone for the current date and time. |
Name | Display Name | Info |
---|
current_date | Current Date | The resulting current date and time in the selected timezone. |
This component generates a unique ID.
Name | Display Name | Info |
---|
unique_id | Value | The generated unique ID. |
Name | Display Name | Info |
---|
id | ID | The generated unique ID. |
Message history
Prior to Langflow 1.1, this component was known as the Chat Memory component.
This component retrieves and manages chat messages from Langflow tables or an external memory.
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. |
Name | Display Name | Info |
---|
messages | Messages (Data) | Retrieved messages as Data objects. |
messages_text | Messages (Text) | Retrieved messages formatted as text. |
lc_memory | Memory | A constructed Langchain ConversationBufferMemory object |
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.
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. |
Name | Display Name | Info |
---|
stored_messages | Stored Messages | The list of stored messages after the current message has been added. |
This component transforms LLM responses into structured data formats.
Name | Display Name | Info |
---|
llm | Language Model | The language model to use to generate the structured output. |
input_value | Input message | The input message for the language model to process. |
schema_name | Schema Name | Provide a name for the output data schema. |
output_schema | Output Schema | Define the structure and data types for the model's output. |
multiple | Generate Multiple | Set to True if the model should generate a list of outputs instead of a single output. |
Name | Display Name | Info |
---|
stored_messages | Stored Messages | structured output based on the defined schema. |