Overview
This node manages chat sessions for Symbiosika by storing, retrieving, and deleting session data in memory during workflow execution. It is useful when you need to maintain state or context across multiple steps or executions within a single workflow run, such as tracking ongoing conversations or user interactions.
Practical examples:
- Storing a chat session ID with an associated chat identifier to keep track of active conversations.
- Retrieving a stored session to continue a chat if it is still valid based on a configurable duration.
- Deleting a session when it is no longer needed or has expired.
Properties
| Name | Meaning |
|---|---|
| Session ID | A unique identifier for this chat session. |
For the "Delete Session" operation, only the "Session ID" property is required.
Output
The node outputs JSON objects that include the original input merged with additional fields describing the result of the operation:
operation: The action performed (deletedfor delete operation).existed: A boolean indicating whether the session existed before deletion.
Example output JSON for deleting a session:
{
"sessionId": "abc123",
"operation": "deleted",
"existed": true
}
No binary data is produced by this node.
Dependencies
- This node uses an internal in-memory Map object to store session data temporarily during workflow execution.
- No external services, API keys, or environment variables are required.
- Sessions are not persisted beyond the lifetime of the workflow execution.
Troubleshooting
Common issues:
- Attempting to delete a session that does not exist will still succeed but indicate
"existed": false. - Providing an empty or missing Session ID will cause an error.
- Attempting to delete a session that does not exist will still succeed but indicate
Error messages:
"No session ID provided": Occurs if the Session ID property is empty or missing. Ensure you provide a valid session identifier.
Since sessions are stored in memory, they do not persist between workflow runs. If persistence is needed, consider integrating with an external database or storage system.