n8n-sse.json•2.69 kB
{
"name": "My workflow",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "e027c796-ca4f-44cf-93be-9e5c8e5563c6",
"name": "When chat message received",
"webhookId": "3cc25d72-3420-4da9-be6c-33dcdccfe9da"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
220,
0
],
"id": "3dcb0b87-10d4-48d9-83cf-2f5dbb82c23f",
"name": "AI Agent"
},
{
"parameters": {
"sseEndpoint": "http://localhost:3000/sse",
"authentication": "bearerAuth"
},
"type": "@n8n/n8n-nodes-langchain.mcpClientTool",
"typeVersion": 1,
"position": [
480,
220
],
"id": "0c5182de-167c-4448-8cbc-a2042cc9740e",
"name": "MCP Client",
"credentials": {
"httpBearerAuth": {
"id": "uCWgSgzbfK2VCyHp",
"name": "NWC default Bearer Auth account"
}
}
},
{
"parameters": {
"model": "anthropic/claude-3.7-sonnet",
"options": {
"maxTokens": 10000
}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"typeVersion": 1,
"position": [
260,
220
],
"id": "6b9ab27d-ebb7-4e4b-beca-f6a9a5efc7e4",
"name": "OpenRouter Chat Model",
"credentials": {
"openRouterApi": {
"id": "Nf72kYqXR9WwGx1n",
"name": "OpenRouter account"
}
}
}
],
"pinData": {},
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"MCP Client": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "4d294e9a-4f09-4f9a-9077-4941d5c36ee5",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "d0a2265a2322c708aba889ae9378f25ca9e7eb32526f017f425ec772ae5f5245"
},
"id": "4HiRB1dXViekkBDZ",
"tags": []
}