Memory Write Multi Component
Use the Memory Write Multi component to save multiple key–value pairs at once under a named memory. This is useful when you need to persist structured objects such as user profiles or settings.
Why this matters
Step 1: Configure Memory Name
As with all memory operations, you must set a Memory Name. This groups related keys together and ensures data consistency.
Setting | Required? | Description | Example |
---|---|---|---|
Memory Name | Yes | Namespace or group for stored keys. | user-profile |
Step 2: Provide JSON Object
Pass a valid JSON object containing the keys and values you want to store.
- Keys must be strings.
- Values can be strings, numbers, or booleans.
- Nested objects and arrays are not supported in this version.
Example
{{
"first-name": "John",
"last-name": "Smith",
"user-id": 12345,
"email": "[email protected]",
"age": 30,
"is-active": true
}}
Overwriting keys
Best Practices
- Validate your JSON before running the workflow.
- Use consistent naming for keys (e.g.,
firstName
,lastName
) across workflows. - Avoid special characters in keys except
-
or_
.
Troubleshooting Tips
If your memory write multi isn’t working...
What to Try Next
- Retrieve stored values with the Memory Read Component.
- Delete unused keys with the Memory Delete Component.
- Store a single value with the Memory Write Component.