From the course: Build with AI: Create Custom Chatbots with n8n
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Customizing the memory buffer
From the course: Build with AI: Create Custom Chatbots with n8n
Customizing the memory buffer
- [Instructor] So as we just found out before, our assistant, our chat bot is already pretty smart, but it can't really remember anything. So how do we fix that? And luckily in n8n, then there's a convenience function here called Memory. So if you click this little plus icon, you'll get a list of options to actually store the current chat history. The easiest one to start with is this simple memory. The simple memory will allow you to just keep track of a number of previous messages inside one chat. If you want to store those chats to a database or have like a chat archive or so there are other options to do that. For now, let's keep it simple. And let's, for example, say that our bot should be able to retain the last two messages in our conversation. So let's click that and let's try it out. So for example, let's ask our bots something like, "what are employee benefits?" And you can see it lists those different benefits here. And now I can say, tell me more about the first. This is…