Graphiti Memory
AI-generatedSummary
Creates a GraphitiChatMemory instance for managing short‑ and long‑term memory in AI workflows.
Inputs
- Item (required) — Input data used to extract a session ID when Session ID Type is set to 'Take From Previous Node Automatically'. The node inspects the first item’s JSON fields
sessionIdorchatSessionId; if neither is present, a random UUID is generated.
Output shape
object
The node returns a single object with a
responseproperty containing the initialized GraphitiChatMemory instance, which can be passed to downstream AI nodes.
Examples
Example 1: Use the memory from a previous chat node
Set Session ID Type to 'Take From Previous Node Automatically' (default). Provide Graphiti API credentials. Leave Context Window Length and Search Limit at their defaults unless you need to tune memory size or retrieval depth.
Example 2: Define a custom session identifier
Set Session ID Type to 'Define Below'. Enter an expression (e.g., ={{ $json.userId }}) in Session Key to determine the session ID. The node will fall back to a random UUID if the expression evaluates to an empty value.