Hi, the “On message” node is having some problems. I’m using version 1.83.2, but I was previously using an earlier version and had no problems with this node. However, after updating, an error appears due to some parameter. I’ve already changed “messages” to all the other available options, but the problem persists.
I’m also using Docker.
If I don’t resolve this by next month my boss will rip my head off .
{
“nodes”: [
{
“parameters”: {
“updates”: [
“messages”
]
},
“type”: “n8n-nodes-base.whatsAppTrigger”,
“typeVersion”: 1,
“position”: [
-1220,
380
],
“id”: “659af56b-53df-4776-813c-9c95ba4ca7a7”,
“name”: “Receptor de chate”,
“webhookId”: “806f4a09-5b0f-49e8-8e67-5f4fb03f2cd0”,
“credentials”: {
“whatsAppTriggerApi”: {
“id”: “c0NEXmOKeVGsW8CI”,
“name”: “WhatsApp OAuth account”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “={{ $json.messages[0].text.body }}”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 1.8,
“position”: [
-480,
380
],
“id”: “0bc37363-4681-43ca-a9de-6a74fd9d8a11”,
“name”: “AI Agent”
},
{
“parameters”: {
“model”: {
“__rl”: true,
“mode”: “list”,
“value”: “gpt-4o-mini”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.2,
“position”: [
-520,
600
],
“id”: “1e09b3f6-e3cf-4bb0-b42a-5d8ecab59848”,
“name”: “OpenAI Chat Model”,
“credentials”: {
“openAiApi”: {
“id”: “awThERa1lZAsEFnv”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“sessionIdType”: “customKey”,
“sessionKey”: “={{ $(‘Receptor de chate’).item.json.contacts[0].wa_id }}”
},
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
-380,
600
],
“id”: “540e394c-d0d6-4d54-9f46-2cad1e8f043f”,
“name”: “Simple Memory”
},
{
“parameters”: {
“operation”: “send”,
“phoneNumberId”: “582181234982206”,
“recipientPhoneNumber”: “={{ $(‘Receptor de chate’).item.json.contacts[0].wa_id }}”,
“textBody”: “={{ $json.output }}”,
“additionalFields”: {}
},
“type”: “n8n-nodes-base.whatsApp”,
“typeVersion”: 1,
“position”: [
-60,
340
],
“id”: “605a3414-41d2-416a-ab31-c6d31c534dff”,
“name”: “WhatsApp Business Cloud”,
“webhookId”: “f3c2bbf3-8974-4971-ab7b-7aeaed19a3ff”,
“credentials”: {
“whatsAppApi”: {
“id”: “fTCtzzQlb8khW8e6”,
“name”: “WhatsApp account 2”
}
}
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “2094a61d-60f9-4aeb-9036-03344c14784b”,
“leftValue”: “={{ $json.messages[0].text.body }}”,
“rightValue”: “”,
“operator”: {
“type”: “string”,
“operation”: “exists”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.if”,
“typeVersion”: 2.2,
“position”: [
-880,
400
],
“id”: “f2c848cc-f8a3-4120-8e2b-324b8c2b35e4”,
“name”: “If”
}
],
“connections”: {
“Receptor de chate”: {
“main”: [
[
{
“node”: “If”,
“type”: “main”,
“index”: 0
}
]
]
},
“AI Agent”: {
“main”: [
[
{
“node”: “WhatsApp Business Cloud”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Simple Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“If”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “28f3097421e281bbde9498dab0c8830eeb4cf03e3c4d58cc543df4de5a43fc13”
}
}