---
title: "create memory · RUAL Documentation"
description: "Open (or create) a persistent memory by id. The same id returns the same memory across runs, so Claude can pick a conversation back up weeks later. Feed…"
canonical: https://docs.rual.nl/block-types/anthropic/anthropicconnection_create_memory
language: en
---

# create memory

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Open (or create) a persistent memory by id. The same id returns the same memory across runs, so Claude can pick a conversation back up weeks later. Feed the memory into a send message block.

- flow `flow`

- id required `value` Your identifier for this memory (e.g. a user id, a chat id). The same id always resolves to the same memory.

- expiry (days) `number` How long the memory lives without being used. Each open/use extends it. Default 90.

- flow `flow`

- success `condition`

- memory `anthropicmemory` The memory handle; wire into a send message block (or get/delete memory).

- created `condition` True when a new memory was created (false when an existing one was reopened).

- errors `array ` Error codes when the call fails (success=false): config_error, internal_error.

- error detail `value`

| `memory` |
| --- |
| `open memory` |
| `session` |
| `conversation` |
| `chat memory` |

A typical wiring for [create memory](https://docs.rual.nl/block-types/anthropic/anthropicconnection_create_memory): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `id` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the create memory block: typical wiring for create memory.](https://docs.rual.nl/canvas-examples/anthropicconnection_create_memory.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
