blokboard/ Open app

OFFICIAL EXAMPLE

Remember a value

Read a workflow State key, save a message, and confirm that the next run remembers it.

StatePersistenceBeginner

WORKFLOW SNAPSHOT

Remember a value

4 nodes

Interactive workflow preview loads here. Download the JSON to inspect it in the app.

A saved example. Your imported copy is independent of this page.

Opens as a new, inactive workflow. Review the nodes before running.

Before you begin#

  • Use the Browser runtime and keep browser storage available. This example only writes the greeting key in its own workflow State.

Walk through the workflow#

  1. Import a new copy and run it once. The first Get State node reports found: false because the copy starts with no saved greeting.
  2. Set State saves the text Hello from a previous run. The final Get State reads it back with found: true.
  3. Run the same workflow again. The first Get State now finds the saved value before the write occurs.
  4. To start fresh, import another copy. State belongs to each workflow and the runtime where it runs; it is not included in downloaded files.
← All examples