Conversation Chat Memory
Conversation Chat Memory retrieves the message history of a conversation from what NappAI already stores of your flow’s chats. It needs no database or external service: it reads the messages of the session and conversation you point it to, starting with the most recent.
Use it when you want to control which conversation is retrieved and how many messages are taken into account, for example so a question-answering component keeps in mind what was said last.
When to use it
- An assistant that answers from your company documentation must understand follow-up questions like “and for the large model?”.
- You want to limit the history taken into account to the latest messages, so answers focus on what is recent.
- You want to retrieve the messages of a specific session, identified by a customer or case number.
Configuration
You need no credential and no database.
| Field | What it does |
|---|---|
| Max Messages | The maximum number of messages retrieved, starting with the most recent. Default: 10. |
Advanced options
| Field | What it does |
|---|---|
| Session ID | The session whose messages are retrieved. Type it or connect it, for example to the identifier you set with Set Session ID. If you leave it empty, no messages are retrieved. |
| Conversation ID | Optional. Limits the messages to a specific conversation within that session. |
Output
Memory is the conversation history. Connect it to the External Memory input of Retrieval QA History, which takes it into account before answering, or of Chat Memory, which reads the messages to use them elsewhere in the flow.
It does not connect to the Memory input of agents. To make an agent remember the conversation, turn on Use memory in the agent.
Example
Electrodomésticos Sauce has an assistant that answers from its product manuals:
- Add Conversation Chat Memory and leave Max Messages at 10.
- In the Advanced tab, connect Session ID to the customer’s identifier.
- Connect Memory to the External Memory input of Retrieval QA History.
When the customer asks “how do I clean the dishwasher filter?” and then “how often?”, the assistant understands the second question is also about the filter.