# Problem with simple memory node

**URL:** <https://community.n8n.io/t/problem-with-simple-memory-node/92475>\
**Category:** Questions\
**Created:** [25. März 2025 um 08:22 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475 "2025-03-25T08:22:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bergfelder](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bergfelder](https://community.n8n.io/u/Bergfelder)\
**Post date:** [25. März 2025 um 08:22 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/1 "2025-03-25T08:22:55Z")

</div>

Dear n8n Community,

Describe the problem/error/question

I tried to create an AI agent following the YouTube instructions. Unfortunately, an error occurs after inserting the “simple memory node.”

I first set up a Telegram trigger.

From there, it goes to a switch node that distinguishes between voice and text messages. {{ $json.message.text }} or {{ $json.message.voice.file\_id }}

The text message is edited from “message.text” to “text.”

Then it goes to the AI ​​agent. Without the memory node, the output via Telegram works.

 ![grafik](https://europe1.discourse-cdn.com/n8n/original/3X/5/5/5505ddf963b41439140c27e55b34bbc77c6f22f7.png)

When I now insert the memory node and trigger the workflow, the memory node flashes green briefly, but then turns red as shown in the image.

 ![grafik](https://europe1.discourse-cdn.com/n8n/original/3X/c/f/cf8c1f001748b69bfa26f270380d923de15abc2a.png)

## What is the error message (if any)?

Cannot create property ‘additional\_kwargs’ on number ‘6407142739’

{  
“nodes”: [  
{  
“parameters”: {  
“promptType”: “define”,  
“text”: “={{ $(‘Switch’).item.json.message.chat.id }}”,  
“options”: {  
“systemMessage”: “=# ROLLE\nDu bist ein freundlicher und hilfreicher Agent.\n\n# EXTRA INFORMATION\nDu sprichts gerade mit {{ $(‘Switch’).item.json.message.from.first\_name }}”  
}  
},  
“type”: “@n8n/n8n-nodes-langchain.agent”,  
“typeVersion”: 1.8,  
“position”: [  
1320,  
0  
],  
“id”: “55a1acc1-f13b-4d5a-a6d0-2f64fc8b1d76”,  
“name”: “AI Agent”  
}  
],  
“connections”: {  
“AI Agent”: {  
“main”: [  
  
]  
}  
},  
“pinData”: {},  
“meta”: {  
“templateCredsSetupCompleted”: true,  
“instanceId”: “31ca1c67a3c7e76535e44397c465cad5d69925544f50cfe7ba32b9a7bf7a61fc”  
}  
}

## Please share your workflow

KI-Agent

{  
“nodes”: [  
{  
“parameters”: {  
“promptType”: “define”,  
“text”: “={{ $(‘Switch’).item.json.message.chat.id }}”,  
“options”: {  
“systemMessage”: “=# ROLLE\nDu bist ein freundlicher und hilfreicher Agent.\n\n# EXTRA INFORMATION\nDu sprichts gerade mit {{ $(‘Switch’).item.json.message.from.first\_name }}”  
}  
},  
“type”: “@n8n/n8n-nodes-langchain.agent”,  
“typeVersion”: 1.8,  
“position”: [  
1320,  
0  
],  
“id”: “55a1acc1-f13b-4d5a-a6d0-2f64fc8b1d76”,  
“name”: “AI Agent”  
}  
],  
“connections”: {  
“AI Agent”: {  
“main”: [  
  
]  
}  
},  
“pinData”: {},  
“meta”: {  
“templateCredsSetupCompleted”: true,  
“instanceId”: “31ca1c67a3c7e76535e44397c465cad5d69925544f50cfe7ba32b9a7bf7a61fc”  
}  
}

Memorynode:

{  
“nodes”: [  
{  
“parameters”: {  
“sessionIdType”: “customKey”,  
“sessionKey”: “={{ $(‘Telegram Trigger’).item.json.message.chat.id }}”,  
“contextWindowLength”: 30  
},  
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,  
“typeVersion”: 1.3,  
“position”: [  
1440,  
200  
],  
“id”: “1968ecb5-e489-43dc-b555-bb95779c0f73”,  
“name”: “Simple Memory”  
}  
],  
“connections”: {  
“Simple Memory”: {  
“ai\_memory”: [  
  
]  
}  
},  
“pinData”: {},  
“meta”: {  
“templateCredsSetupCompleted”: true,  
“instanceId”: “31ca1c67a3c7e76535e44397c465cad5d69925544f50cfe7ba32b9a7bf7a61fc”  
}  
}

## Share the output returned by the last node

Cannot create property ‘additional\_kwargs’ on number ‘6407142739’

## Information on your n8n setup

- **n8n version:** 1.84.1
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** n9n.cloud
- **Operating system:** Win 11

What am I doing wrong? What can I do?

Thank you for your help.

Best regards,  
Andreas

---

<div class="post-metadata">

**Author:** ![Franz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/franz/32/66008_2.png) [@Franz](https://community.n8n.io/u/Franz)\
**Post date:** [25. März 2025 um 13:00 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/2 "2025-03-25T13:00:55Z")

</div>

To use the **Simple Memory** , you need to pass a `sessionId`, when using without **Chat** trigger.

I suggest to place am **Edit** node right before the **Agent** node

- Check **Include Other Input Fields**
- add the `sessionId`
- optionally set / modify `chatInput`

---

<div class="post-metadata">

**Author:** ![Bergfelder](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bergfelder](https://community.n8n.io/u/Bergfelder)\
**Post date:** [26. März 2025 um 10:16 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/3 "2025-03-26T10:16:57Z")

</div>

Thank you for your answer.

I’ll try it that way.

---

<div class="post-metadata">

**Author:** ![Bergfelder](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bergfelder](https://community.n8n.io/u/Bergfelder)\
**Post date:** [27. März 2025 um 07:29 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/4 "2025-03-27T07:29:12Z")

</div>

The error remains the same.

I hope I implemented it correctly.

 ![grafik](https://europe1.discourse-cdn.com/n8n/original/3X/8/3/832fc91e783d107586528cb5db754d1dfcc339b1.png)

 ![grafik](https://europe1.discourse-cdn.com/n8n/original/3X/b/8/b860db5bb68b296a4d219993deca6a1fc8554962.png)

---

<div class="post-metadata">

**Author:** ![Franz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/franz/32/66008_2.png) [@Franz](https://community.n8n.io/u/Franz)\
**Post date:** [27. März 2025 um 07:36 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/5 "2025-03-27T07:36:25Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/b/fb5ec9630674330a7a9af95e9c8201994ae675b6.png)

This must be `sessionId`

---

<div class="post-metadata">

**Author:** ![Bergfelder](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bergfelder](https://community.n8n.io/u/Bergfelder)\
**Post date:** [27. März 2025 um 08:27 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/6 "2025-03-27T08:27:43Z")

</div>

The Error remains:

{  
“nodes”: [  
{  
“parameters”: {  
“assignments”: {  
“assignments”: [  
{  
“id”: “95e85dda-c46d-4605-82f4-dd7c9da19fb1”,  
“name”: “sessionId”,  
“value”: “={{ $execution.id }}”,  
“type”: “string”  
}  
]  
},  
“includeOtherFields”: true,  
“options”: {}  
},  
“type”: “n8n-nodes-base.set”,  
“typeVersion”: 3.4,  
“position”: [  
1320,  
0  
],  
“id”: “81b14efe-cd0b-4adb-9031-716e8e5262a2”,  
“name”: “Edit Fields1”  
}  
],  
“connections”: {  
“Edit Fields1”: {  
“main”: [  
  
]  
}  
},  
“pinData”: {},  
“meta”: {  
“templateCredsSetupCompleted”: true,  
“instanceId”: “31ca1c67a3c7e76535e44397c465cad5d69925544f50cfe7ba32b9a7bf7a61fc”  
}  
}

---

<div class="post-metadata">

**Author:** ![Bergfelder](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bergfelder](https://community.n8n.io/u/Bergfelder)\
**Post date:** [27. März 2025 um 08:31 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/7 "2025-03-27T08:31:38Z")

</div>

Sorry.

It did work.

Thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![Monolight\_9211](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/monolight_9211/32/74531_2.png) [@Monolight\_9211](https://community.n8n.io/u/Monolight_9211)\
**Post date:** [20. April 2025 um 21:54 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/8 "2025-04-20T21:54:00Z")

</div>

Hi, I see you’re having the same problem.

You can solve it by setting the Telegram Trigger ID to Simple Memory.

Simple Memory Settings  
Define below  
Key

message\_id ---- X  
Id: ----- ok

And that’s it

---

<div class="post-metadata">

**Author:** ![Jack\_Hansen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jack_hansen/32/58683_2.png) [@Jack\_Hansen](https://community.n8n.io/u/Jack_Hansen)\
**Post date:** [23. Juni 2025 um 20:40 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/10 "2025-06-23T20:40:55Z")

</div>

Hello,

I am very new to the N8N community so this question may seem under informed, but what are you actually putting into your simple memory settings?

I dragged the message id schema into my simple memory key, but I am still getting the same error as before.

 ![Screenshot 2025-06-23 153859](https://europe1.discourse-cdn.com/n8n/original/3X/a/a/aa8ab054f64a90ee793dd1b69b11f5a2930e3414.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/a/aac559ac3da368c1ddd8e9ab2ca611fcdd2e7b29.png)  
 ![Screenshot 2025-06-23 153648](https://europe1.discourse-cdn.com/n8n/original/3X/6/b/6b831d784f8d8636d0a8e6034d5f76010d02f5a7.png)  
 ![Screenshot 2025-06-23 153624](https://europe1.discourse-cdn.com/n8n/original/3X/4/b/4b67604a6de3abc3af66e78bc902e3a6aade382f.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [21. September 2025 um 20:41 UTC](https://community.n8n.io/t/problem-with-simple-memory-node/92475/11 "2025-09-21T20:41:01Z")

</div>

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