I made a chatbot using lovable and connected to n8n using a webhook. But the simple memory is not working. How to manage the session Id part of the simple memory?
If you’re using Lovable + n8n with a webhook:
- Lovable must send a
sessionId(or userId) with each message. - In n8n, use the Simple Memory node and map the
sessionIdfield as an Expression, not fixed string—e.g.{{ $json.body.sessionId }}. - Ensure your Lovable frontend doesn’t regenerate the sessionId on each input (avoid using timestamps or dates).
- This allows Simple Memory to correctly isolate each user’s chat context.
1 Like
Thanks Zion. Its working now.
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.