Trouble with simple memory

I’m having a problem with my Simple Memory; it started saying I have 2 keys, but I only see one. I wasn’t having this problem earlier, and everything was working great. I tried asking the AI Assistant, but it didn’t help. Does anyone know how to fix this?

Could it be caused by my agent?

Error message:
Error in sub-node ‘Simple Memory‘
Input values have 2 keys, you must specify an input key or pass only 1 key as input

Screenshots:

Starts with 1 item, then goes to 2 after a prompt?

AI Assistant:
Actionable solution:

  • Open your Simple Memory node settings.
  • Find the “Input Key” parameter (sometimes called “Input Field” or similar).
  • Set it to the name of the key you want the node to use (for example, if your input has keys “message” and “sessionId”, and you want to use “message”, set the Input Key to message).

I tried messing around with the key, but nothing I tried worked.

Information on my n8n setup:

  • n8n version: 1.94.1
  • Running on Google Chrome, I haven’t changed anything.
1 Like

So, it seems to be because of the node before running two times. Your current key should be correct if ran once. Could you share your workflow?

2 Likes

Thank you for responding. I looked at your deleted suggestion and it helped me connect the dots that I needed to put {{ $json.chatInput }} in the prompt space for my agent. It seems to be working fine now, Thank you.

1 Like

I’m glad that it helped :smile:

1 Like

I am having similar issue with just 3 inputs :')

Error in sub-node ‘Simple Memory‘

input values have 3 keys, you must specify an input key or pass only 1 key as input

Do you have any idea, what can be reasons?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.