How to check if "Simple Memory" is empty using an external node?
Hi everyone,
I am building a chatbot using the AI Agent node connected to a simple Memory node.
The Problem: My bot keeps repeating "Hello" or "Welcome" at every single message, even when the conversation is already ongoing. I tried adding instructions in the System Prompt like "If the conversation has started, do not say Hello", but the AI ignores it and greets the user every time.
My Question: Is there a way to inspect or read the content of the simple Memory node using a standard node (like an If node or Code node) before the AI Agent runs?
I want to implement this logic:
  1. Check if the Memory is empty.
  2. If Empty → Instruct the Agent to say "Hello".
  3. If Not Empty → Instruct the Agent to skip the greeting.
Thanks!
4
1 comment
Abderrahmane Adjou
2
How to check if "Simple Memory" is empty using an external node?
powered by
AI n8n Automation Collective
skool.com/ai-n8n-automation-collective-8312
Ready to escape the grind? Connect with others using AI & n8n to offload boring, repetitive work—so you can spend your time on more meaningful things.
Build your own community
Bring people together around your passion and get paid.
Powered by