Skip to main content

Sauvegarde Memoire

Saves information to the agent's persistent memory. Saved data can be retrieved via memory_search.

Parameters

ParameterTypeRequiredVariableDescription
contentdynamic valueYesYesContent to save to long-term memory. Can be text, a variable, or an expression.
entityIddynamic valueNoYesEntity identifier to associate the memory with.
tagsarrayNoNoTags to categorize the memory (e.g. fact, preference, context).
importancechoice (low, medium, high)NoNoMemory importance level. Influences retrieval priority. (Default: "medium")
deduplicatebooleanNoNoEnable automatic deduplication: avoids semantically similar duplicates. (Default: false)
dedupeThresholdnumberNoNoSimilarity threshold for deduplication (between 0 and 1). Only used if deduplicate is enabled. (min 0, max 1)
expirationDaysnumberNoNoTime to live in days (0 = permanent). The memory is deleted after this period. (Default: 0, min 0)
metadataobjectNoNoAdditional metadata to attach to the memory (source, confidence, etc.).
outputVariabletextNoNoOutput 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.