Memory Isolation Across Users and Workflows
Memory scope determines which stored messages a request can reuse. Authentication determines who is allowed to access resources. These concerns must remain separate.

Illustrative backend boundary, not StackAI SDK syntax. Resolve ownership before forwarding a supported conversation identifier. Use the identity fields documented for your chosen interface or API version; do not invent a universal session field.
Before you begin
Control over the conversation identifiers used by your interface or API client.
Key concepts
Memory scope
The project, node, and conversation context in which earlier exchanges can be reused. Keep unrelated users and conversations separate using the supported identity fields.
Conversation
Related messages grouped into one interaction history. Several runs can belong to one conversation.
User identity
The authenticated person or application acting on a resource. It determines access; a display name or conversation ID does not authenticate a caller.
Child workflow
The project executed by a project node or project-execution tool. Review its input contract, selected version, permissions, and run details.
Separate users’ conversation memory
Assign a consistent identifier to requests that belong to the same conversation.
Use a different scope for unrelated users or conversations.
Inspect child workflows and loops for their own memory behavior.
Requests reuse the intended history without treating a conversation key as an account credential.
Behavior and limitations
Memory belongs to the configured project, node, and conversation scope. Beta loop mode keeps each item’s conversation separate. Use the supported identity and conversation fields for your interface; omitting a field is not a reliable way to create a private new conversation. Resource access still depends on authentication and permissions.
Related resources
Was this helpful?

