Blocks

Shared Memory

Store and retrieve shared state between agents

Provides a shared memory store for agents to read and write data. Supports atomic operations, versioning, and scoped access.

Back to Catalog
Agentsshared_memory

Block Preview

Shared Memory

Store and retrieve shared state between agents

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the shared_memory block with monitoring enabled in production.

Inputs (UI)

Operation

dropdown

Layout: half

Options: Get, Set, Delete, Increment

Scope

dropdown

Layout: half

Options: Execution, Workflow, Global

Key

short-input

Placeholder: memory.key.name

Layout: full

Value

code

Placeholder: { "data": "value" }

Layout: full

Condition: operation = ["set","append","cas"]

Increment By

short-input

Placeholder: 1

Layout: half

Condition: operation = "increment"

Expected Version

short-input

Placeholder: Version for CAS operation

Layout: half

Condition: operation = "cas"

TTL (seconds)

short-input

Placeholder: Time to live (optional)

Layout: half

Condition: operation = ["set","append"]

Default Value

code

Placeholder: Default if key not found

Layout: full

Condition: operation = "get"

Inputs (API)

operation

string

Required

scope

string

Optional

key

string

Required

value

json

Optional

incrementBy

number

Optional

expectedVersion

number

Optional

ttlSeconds

number

Optional

defaultValue

json

Optional

Outputs

Primary response type:

{
  "success": "boolean",
  "key": "string",
  "value": "json",
  "version": "number",
  "previousValue": "json",
  "scope": "string",
  "expiresAt": "string"
}

Tool Access

shared_memory
Shared Memory | NowFlow Blocks