N8N-Flows/MCP_Beispiel_AirBNB.json
2025-03-29 12:46:12 +00:00

211 lines
4.5 KiB
JSON

{
"name": "MCP Beispiel AirBNB",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
-1200,
-240
],
"id": "5186242f-52e8-4bdf-acd8-dd914645a935",
"name": "When chat message received",
"webhookId": "a96249be-f30b-43c8-90dc-d9be8a80abbc"
},
{
"parameters": {
"options": {
"systemMessage": "You are a helpful assistant"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
-920,
-240
],
"id": "21fadf42-dcef-4e6f-995a-7fab75c8c4f2",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
-1020,
-60
],
"id": "813258dd-515c-4796-9d63-42faf86c0c0e",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "EMit4K7TeV8y43su",
"name": "OpenAi account"
}
}
},
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
-860,
-60
],
"id": "e55e3058-4fed-4f9d-9208-cc7608e957fb",
"name": "Simple Memory"
},
{
"parameters": {
"operation": "executeTool",
"toolName": "={{ $fromAI(\"tool\", \"Selected tool to execute\")}}",
"toolParameters": "{\"location\" : \"Muenchen\"}"
},
"type": "n8n-nodes-mcp.mcpClientTool",
"typeVersion": 1,
"position": [
-560,
-40
],
"id": "f2ad46a3-792f-4a3e-b112-81b4e4584f2b",
"name": "MCP Execute AIRBNB",
"credentials": {
"mcpClientApi": {
"id": "MJJFSt4h2hvA4GfK",
"name": "MCP Client (STDIO) account"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-mcp.mcpClientTool",
"typeVersion": 1,
"position": [
-700,
-40
],
"id": "b832fb58-5bfd-466b-8915-d22381c78bb8",
"name": "MCP Client AirBNB",
"credentials": {
"mcpClientApi": {
"id": "MJJFSt4h2hvA4GfK",
"name": "MCP Client (STDIO) account"
}
}
},
{
"parameters": {
"chatId": "617681859",
"text": "={{ $json.output }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
-560,
-240
],
"id": "01a5c83c-bd4d-4cc9-93f2-fc9bf9f220dd",
"name": "Telegram",
"webhookId": "0c5d2fc6-bdb1-48b2-8f5a-5fe26f4f11d7",
"credentials": {
"telegramApi": {
"id": "0KdRGNWELOCJWeJK",
"name": "Telegram account"
}
}
}
],
"pinData": {},
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"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
}
]
]
},
"MCP Execute AIRBNB": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"MCP Client AirBNB": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"callerPolicy": "workflowsFromSameOwner"
},
"versionId": "8adef6cb-77d3-4378-b255-271759d3ac71",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "30c75264a206eec49d4c38a892fd65da80b5ccd70231d5bfaa83c4000c45aa34"
},
"id": "hx5mvKksB7ijACJY",
"tags": []
}