Skip to main content

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

Instead of writing keys one by one, you can pass a JSON object and store all values in a single step. This keeps your workflows simpler and more efficient.

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.

SettingRequired?DescriptionExample
Memory NameYesNamespace 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

If you save a value with the same key under the same memory name, the existing value is replaced.

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...
  • Error on save? Ensure the input is a flat JSON object, not an array or nested object.
  • Values not updating? Check if your workflow is writing to the correct memory name.
  • Unexpected overwrite? Confirm that unique keys are used or accept that duplicates overwrite.

What to Try Next