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!
2
3 comments
Abderrahmane Adjou
2
How to check if "Simple Memory" is empty using an external node?
AI Automation Network
skool.com/ai-automation-network
A community for mastering AI automation and agents. Share ideas, learn new skills, and connect with other AI builders.
Leaderboard (30-day)
Powered by