I have full chat history in bubble.io (between user and LLM). I want to send the entire chat history to the Agent’s Memory. I cant figure out how to do this.
When you attach a Memory node to your agent, it automatically stores all chat messages.
Chat sessions are identified by a session_id (automatically generated by the Chat Trigger).
If you want persistent history for a specific user, for example, you can use the user_id from your platform instead. This way, every time that user interacts with the agent, it will recall their past conversations.
Considering you’re receiving the request in your webhook, you can send the user_id to n8n too and use that as the session id.
Thanks @solomon. I understand how to start new chats and continue them later. However, I have old chat conversations before starting with n8n - I previously went directly to OpenRouter and saved all chat history in my bubble database.
I want n8n to get up to speed on a previous conversation, in which n8n never had access to.
Here’s an example conversation history I have with an LLM, which is stored in my bubble databe. It’s the first time n8n is seeing this conversation.
I’m able to successfully pass this info to n8n via webhook and use the chat history dynamically in later steps. I just can’t insert to memory. In short - I cant get my n8n agent up to speed with conversations that happened without n8n in the loop.
I thought the chatmemory manager node could help. And it feels like it will, but when I run it never takes my old messages - it never gets up to speed.
In summary: My problem is that I have old chat history stored in his Bubble database from before I started using n8n, and I want n8n’s memory to recognize and continue those old conversations. While I can pass the old messages into n8n via webhook, the Memory Manager node won’t load them (neither will simple memory off Agent), so n8n never “gets up to speed” on past chats. This makes it impossible to migrate my API with old conversations to n8n
I see. n8n doesn’t offer a database for you to edit like Bubble does. You need an external database.
I usually go with Supabase because it’s very easy to use. You can replace your Simple Memory node for any database.
The Simple Memory node uses n8n’s internal database. But there’s no clear way of editing that. And if you’re deploying your solution to the public, you’ll need an external database anyways.
bubble is my external database, and I’m sending the chat history from the bubble databse. When I tap the memory [+] it does not give me an option for supabase or bubble.
you can see the only few options for memeory in this image.
simple memory does not persist it will be cleared when n8n instance restarts.
for longtime memory storage you can use persistent storage solution like PostgreSQL it will store as many number of chats as you want and it will be there if you have access to database.