New Tool Radar

AI Agents & Automation

How to Set a Memory Buffer Window on a Flowise Chatflow

Add a memory node to a Flowise chatflow and set how many past messages it keeps so follow-up questions work.

Schematic diagram with three steps: Add a memory node, Set the window size, then Test a follow-up.

A Flowise chatflow without memory treats every message as the first one. A memory node keeps the recent messages so the agent can answer follow-ups, and the window size decides how far back it can reach.

Before you start

You need a working Flowise chatflow with a chat model node. Decide how long your conversations run: a support chat that refers back over ten turns needs a longer window than a three-question check.

Add the memory node and set the window

Add a memory node to the chatflow and connect it to the chain. Set the buffer window to the number of past messages to keep, for example 10 for a support chat. Save the chatflow and start a fresh chat so the new memory applies from the first message.

Test with a follow-up that needs an earlier turn

Ask a first question that names a detail, then ask a follow-up that only makes sense if the detail is remembered, such as asking for the price of the item from the first question without naming it again. If the agent asks you to repeat it, the window is too short or the memory node is not connected.

Worked example: A six-turn chat with a fictional bookshop flow

Maple Books is a fictional bookshop. Its chatflow keeps a memory window of 10 messages. The test chat shows what should be remembered.

Turn User message Agent should remember
1 I want a book about bicycle repair. Topic: bicycle repair
2 Something under 30 dollars. Budget: under 30 dollars
3 Is it in stock? A bicycle repair book under 30 dollars
4 Who wrote it? The same book
5 What was the budget again? Under 30 dollars

Expected result (UNTESTED): turns 3 to 5 are answered without asking the user to repeat the topic or the budget. We checked the Flowise documentation summary, which lists memory among the chatflow building blocks, but we did not set the memory node on a live Flowise instance.

Limits

A buffer window only keeps the last few messages, so a long chat still loses early details. A bigger window costs more tokens on every turn. For memory that must last across days, a persistent store is a better fit than a buffer.

Sources

See all