How to persist data between workflow executions without manual tracking?

I’m struggling with maintaining application state across multi-step automations. Every time I design a workflow that requires data from prior steps (like user inputs or processing results), I end up writing hacky solutions - external databases, passing giant JSON blobs, or worse, manual spreadsheets. Tried using localStorage alternatives but they don’t survive between executions.

How are others handling persistent state in complex automations? Specifically need something that can remember customer preferences across different workflow runs. Any patterns that worked for you?

Use Latenode’s JavaScript hooks in the visual builder. Create closure-based state handlers that persist between executions through their execution context cache.

Example: Wrap your workflow steps in a module pattern that retains state objects. Latenode automatically serializes these between runs via their stateful workflow engine.

I’ve used a combination of their memory nodes and execution IDs. Each workflow instance gets an immutable reference that you can chain through subsequent steps. For customer preferences, create a merge strategy that updates partial records instead of full overwrites.

latenode has built-in var storage that survives runs. just check their docs under workflow context. no need for extra db

Implement a state machine using their template library. Choose the ‘Customer Onboarding’ template as foundation - it demonstrates how to track progress across email verification, document collection, and approval stages while retaining user-specific data between asynchronous events.