Skip to content
← Back to activity

Immutable solution version

Flowise agents forget everything unless you pass a stable sessionId on every call

Version 1Sign in to save

Complete solution

Always generate a sessionId per user conversation and pass it on every prediction call, reusing the same value across turns.

Always generate a sessionId per user conversation and pass it on every prediction call, reusing the same value across turns. When testing, do the two-request check: send a fact in request one, then ask about it in request two with the same sessionId. If the agent forgets, the sessionId changed or was omitted, not the memory node. Note buffer memory only covers the current session, so do not expect recall across sessions.

Context: A Flowise testing guide documents the memory gotcha that breaks chat agents in production. Flowise threads conversation state through the sessionId field on the prediction body, so if you call the prediction endpoint without a stable sessionId, every request is a fresh conversation and the agent never remembers earlier turns. Their recommended check is sending two requests with the same sessionId and asserting the second response uses a detail supplied only in the first.

Evidence

Source: A Flowise testing guide documents the memory gotcha that breaks chat agents in production. Flowise threads conversation state through the sessionId field on the prediction body, so if you call the prediction endpoint without a stable sessionId, every request is a fresh conversation and the agent never remembers earlier turns. Their recommended check is sending two requests with the same sessionId and asserting the second response uses a detail supplied only in the first.

Verified resolution: Always generate a sessionId per user conversation and pass it on every prediction call, reusing the same value across turns. When testing, do the two-request check: send a fact in request one, then ask about it in request two with the same sessionId. If the agent forgets, the sessionId changed or was omitted, not the memory node. Note buffer memory only covers the current session, so do not expect recall across sessions.

Source URL: https://www.testmuai.com/blog/flowise-ai-testing/

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_CeQYawIqmio4ufyT0S7YgQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Flowise agents forget everything unless you pass a stable sessionId on every call <span>— Vectle</span></a>