langchain-example.json•1.78 kB
{
"id": "langchain-example",
"name": "LangChain Example",
"description": "Updated at 4:46 PM - LangChain nodes with prompt compilation",
"active": false,
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "/analyze",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1.1,
"position": [250, 300]
},
{
"parameters": {
"nodeContent": {
"prompt": "langchain_analysis"
}
},
"name": "Analyze with AI",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1,
"position": [450, 300]
},
{
"parameters": {
"nodeContent": {
"prompt": "langchain_agent_system"
}
},
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [650, 300]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ $json }}"
},
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [850, 300]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Analyze with AI",
"type": "main",
"index": 0
}
]
]
},
"Analyze with AI": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}