Documentation Index
Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Memory lets you store variables that persist between conversations, workflows, and nodes. Unlike Context (which is only available during the current conversation), Memory keeps data available for future interactions with the user.Key features
| Feature | Description |
|---|---|
| Configurable TTL | Define the time-to-live of each variable in seconds |
| Multiple types | Supports primitives, JSON, and files |
| File storage | Store images, videos, audio, and documents up to 10 MB |
| Specific methods | Differentiated API for each data type |
Data types
| Type | Max size | TTL | Max TTL |
|---|---|---|---|
| String | 255 characters | Optional | - |
| Number | 15 digits | Optional | - |
| Boolean | - | Optional | - |
| JSON | 15 KB | Required | 86,400 s (1 day) |
| File | 10 MB | Required | 604,800 s (1 week) |
TTL (Time To Live): Lifetime in seconds. Once the TTL elapses, the variable is automatically deleted. For example,
3600 = 1 hour, 86400 = 1 day.Saving variables
Using the Variable node
To save variables without code, use the Variable node inside theLogic section. In Variable enter the name and in Value what you want to save; it can be plain text, another variable, or a context value.
Each Variable node allows a maximum of 20 variables. If you need more, use multiple nodes or save the values from a code node.
Using code nodes
For greater control over TTL and complex data types, use the$memory methods in code nodes:
Reading variables
In any node
Inside any node you can access Memory with the syntax{{$memory.variableName}}. For example, if the variables in memory are:
{{$memory.name}}showsJohn{{$memory.lastOrder.status}}showson the way
In code nodes
Use the specific methods according to the data type:Working with files
When saving a file in Memory, you must provide the content in base64, the TTL, and the MIME type:$memory.getFile() you get a FileHandle with three methods to access the content:
| Method | Description | Async |
|---|---|---|
.toUrl() | Temporary URL for download (S3) | No |
.toBase64() | Content as a base-64 string | Yes |
.toRaw() | Buffer / Uint8Array | Yes |
Allowed MIME types
| Category | MIME types |
|---|---|
| Text | text/plain |
| JSON | application/json |
| XML | application/xml, text/xml |
| Images | image/jpeg, image/png, image/gif |
| Videos | video/mp4, video/ogg, video/webm, video/x-msvideo, video/mpeg |
| Audio | audio/mpeg, audio/wav, audio/ogg, audio/aac, audio/flac |
| Documents | application/pdf |