Anthropic Chat Model throwing error in AI Agent

Describe the problem/error/question

When selecting ANY Claude model to use with the conversational agent, the workflow encounters the following error.

What is the error message (if any)?

{
“errorMessage”: “Conversational Agent requires Chat Model”,
“errorDetails”: {},
“n8nDetails”: {
“nodeName”: “AI Agent”,
“nodeType”: “@n8n/n8n-nodes-langchain.agent”,
“nodeVersion”: 1.5,
“time”: “13/03/2024, 21:53:25”,
“n8nVersion”: “1.33.0 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeOperationError: Conversational Agent requires Chat Model”,
" at Object.conversationalAgentExecute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js:14:15)“,
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/Agent.node.js:288:20)”,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:724:19)“,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20"
]
}
}

Please share your workflow

Share the output returned by the last node

Conversational Agent requires Chat Model

Information on your n8n setup

  • n8n version: 1.33.0
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • **Operating system:**MacOS Sonoma
1 Like

Same error here ;

Conversational Agent requires Chat Model
Error details

 Other info
Node type

@n8n/n8n-nodes-langchain.agent

Node version

1.2 (Latest version: 1.5)

n8n version

1.33.0 (Cloud)

Time

14/03/2024 23:54:12

Stack trace

NodeOperationError: Conversational Agent requires Chat Model
    at Object.conversationalAgentExecute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js:14:15)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/Agent.node.js:288:20)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:724:19)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20

@Jon any progress on this?

Same error here on 1.33.1.

I saw there’s a new 1.34 version. Is this fixed?

I just checked with 1.35, it is working.
For docker “latest” tag (1.33.1) it is not → use “next” tag or specific version.