Sauvegarde Memoire
Saves information to the agent's persistent memory. Saved data can be retrieved via memory_search.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
content | dynamic value | Yes | Yes | Content to save to long-term memory. Can be text, a variable, or an expression. |
entityId | dynamic value | No | Yes | Entity identifier to associate the memory with. |
tags | array | No | No | Tags to categorize the memory (e.g. fact, preference, context). |
importance | choice (low, medium, high) | No | No | Memory importance level. Influences retrieval priority. (Default: "medium") |
deduplicate | boolean | No | No | Enable automatic deduplication: avoids semantically similar duplicates. (Default: false) |
dedupeThreshold | number | No | No | Similarity threshold for deduplication (between 0 and 1). Only used if deduplicate is enabled. (min 0, max 1) |
expirationDays | number | No | No | Time to live in days (0 = permanent). The memory is deleted after this period. (Default: 0, min 0) |
metadata | object | No | No | Additional metadata to attach to the memory (source, confidence, etc.). |
outputVariable | text | No | No | Output variable name containing the saved memory identifier. |
Parameters marked Variable = Yes accept the
{{blockName.field}}syntax.
Output
Output variable : memorySaveResult
{
"success": false,
"memoryId": "...",
"isNew": false,
"corroborated": false,
"message": "..."
}
Example
Save a customer preference.
Input :
{"content": "Le client Acme prefere les livraisons le mardi", "key": "client-acme"}
Output :
{"success": true, "key": "client-acme"}
Tip
Use descriptive keys to facilitate later searches. The content is automatically vectorized for semantic search.