# Remember something

> Saves a short note to remember in later runs and conversations. Keep to durable facts and preferences, never secrets. The same note saved twice is kept once.

Source: https://docs.go-lumen.ai/reference/steps/remember

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `remember` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | memory, - |
| **Credits** | **0** credits each time it succeeds |
| **Side effects** | no |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | nothing |
| **Produces** | `fields` |
| **Works on** | item: one document at a time |

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See [Documents and data](https://docs.go-lumen.ai/concepts/how-flows-run.md#documents-and-data).

## Outputs

A later node references an output as `{nodeId.field}` in text, or `nodeId.field` in a condition.

| Output | Type |
| --- | --- |
| `memoryId` | string |
| `memoryUpdated` | boolean |

## Settings

Set under `config:` on the flow node. Text settings may contain `{nodeId.field}` placeholders.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `text` (required) | string |  | Text is the note: a fact, a preference or an outcome worth keeping, short and plain, up to 2 KiB. (minLength 1; maxLength 2048) |
| `tags` | list of string |  | Tags are labels the note can also be found by, lower-cased: up to 8. (maxItems 8) |

The full JSON Schema of these settings: [remember.schema.json](https://docs.go-lumen.ai/schemas/steps/remember.schema.json).

## Use it in a flow

A node that runs `remember` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: remember-example
  namespace: tenant-acme
spec:
  displayName: "Remember something"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [assistant]
  nodes:
    - id: assistant
      stepRef: {name: chat-agent}
      config:
        instructions: Use the remember tool when the request needs it.
        tools: [remember]
```
