Memory Reader
The Memory Reader component retrieves message history from the current flow based on the selected Sender and the specified number of past days. It enables workflows and agents to access historical conversation or execution context for downstream processing.
The component supports User and Machine sender types and can also be used in Tool Mode, allowing agents to dynamically retrieve relevant flow memory.
Note: The Memory Reader component works only in workflows that use an Agent with either an Input or Output node. The messages generated during execution are recorded in Menu > Memory. If memory data is available for the User or Machine sender, the component retrieves the corresponding message history based on the configured parameter.
Parameters
| Parameter | Description |
|---|---|
| Sender |
Specifies the sender type whose message history should be retrieved.
Available options: User, Machine |
| Number of Days |
Specifies the number of past days for which message history should be retrieved. The specified period includes the current day.
Note: The component retrieves message history for the current flow. |
Note: The component retrieves message history for the current flow.
Output
| Output | Description |
|---|---|
| Messages | Returns the retrieved message history based on the configured sender and date range. |
Tool Mode
The Memory Reader component supports Tool Mode, allowing an AI agent to invoke the component and dynamically retrieve relevant message history during workflow execution.
When Tool Mode is enabled, the component displays a unique Slug Name. Use this Slug Name when configuring the AI agent to invoke the component and provide the required input for retrieving message history. The component retrieves the matching memory from the current flow and makes it available through the Messages output.
Example Prompt
Fetch and provide the user’s details from the past 30 days.