This workflow corresponds to n8n.io template #3160 — we link there as the canonical source.
This workflow follows the Agent → Chainllm recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "ff92638f-f419-49f0-875b-e455becaa2cf",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
760,
140
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "e44a7eff-26ca-4f29-8b53-1f2a15ea89a1",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
1080,
380
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "de59fe8e-ec3c-4ff2-91a8-9ad2533260c3",
"name": "Set 'response' value",
"type": "n8n-nodes-base.set",
"position": [
3200,
120
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "49b10639-d643-4a38-b649-8dd6507600c6",
"name": "Download Chart",
"type": "n8n-nodes-base.httpRequest",
"position": [
2700,
120
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "75aeadf7-0a3a-4aac-99bd-62093f090486",
"name": "Tradingview Chart",
"type": "n8n-nodes-base.httpRequest",
"position": [
2520,
120
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "953e85a8-68fb-44d6-aaa0-8b95f40c4870",
"name": "Extract analyst question and management response",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
2880,
120
],
"parameters": {},
"typeVersion": 1.4
},
{
"id": "e5d0a653-d9a2-4941-a3c9-cde2d5c70031",
"name": "Sonnet 3_7",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
2860,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "54a14a3e-553b-4903-b35b-fa417a4ab4a6",
"name": "When Executed by Another Workflow",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
1780,
140
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "7f409b02-d1bb-4066-9dae-828940ed87f0",
"name": "Technical Analysis Tool",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1220,
380
],
"parameters": {},
"typeVersion": 2
},
{
"id": "b2ca76f1-619e-46e8-ab4e-c50c5579dbf1",
"name": "Lookup Exchange",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
2180,
120
],
"parameters": {},
"typeVersion": 1.5
},
{
"id": "08620692-c2dc-4808-8997-b5aef354661b",
"name": "Response",
"type": "n8n-nodes-base.set",
"position": [
2520,
560
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "a35b2957-274a-42b8-a102-a2952d9a2e4f",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
1960,
140
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "8873042a-bb9b-44c9-a2ae-90c1cfd8ee84",
"name": "Perplexity Tool",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1360,
380
],
"parameters": {},
"typeVersion": 2
},
{
"id": "1fcb0f7d-3024-49e0-9657-98a7b7d11757",
"name": "Perplexity Sonar",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
2220,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9cfb5c19-f4b0-4c07-ad00-cfb6641f21da",
"name": "Gmail",
"type": "n8n-nodes-base.gmailTool",
"position": [
1520,
380
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "75f01eed-9a3a-4bf7-a53d-5af8c2811c59",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
2400,
300
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "759c7d67-31be-4cc1-a58b-910dc95602f9",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2160,
20
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4e314f00-b5ac-4dcb-ac6e-87bccf49f9f0",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2160,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "657dc607-cd26-4efd-9d51-49db5d7ae029",
"name": "Sonnet 37",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
940,
380
],
"parameters": {},
"typeVersion": 1
},
{
"id": "702c02a8-cf40-4ba7-9b03-49e9c08cc1b7",
"name": "Technical Analyst Leader",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1080,
140
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "7349b3d0-f68f-4cf5-8cba-36a81ecb1944",
"name": "Perplexity",
"type": "n8n-nodes-base.httpRequest",
"position": [
2220,
560
],
"parameters": {},
"typeVersion": 4.2
}
],
"connections": {
"Gmail": {
"ai_tool": [
[
{
"node": "Technical Analyst Leader",
"type": "ai_tool",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Lookup Exchange",
"type": "main",
"index": 0
}
],
[
{
"node": "Perplexity",
"type": "main",
"index": 0
}
]
]
},
"Sonnet 37": {
"ai_languageModel": [
[
{
"node": "Technical Analyst Leader",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Perplexity": {
"main": [
[
{
"node": "Response",
"type": "main",
"index": 0
}
]
]
},
"Sonnet 3_7": {
"ai_languageModel": [
[
{
"node": "Extract analyst question and management response",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Download Chart": {
"main": [
[
{
"node": "Extract analyst question and management response",
"type": "main",
"index": 0
}
]
]
},
"Lookup Exchange": {
"main": [
[
{
"node": "Tradingview Chart",
"type": "main",
"index": 0
}
]
]
},
"Perplexity Tool": {
"ai_tool": [
[
{
"node": "Technical Analyst Leader",
"type": "ai_tool",
"index": 0
}
]
]
},
"Perplexity Sonar": {
"ai_languageModel": [
[
{
"node": "Lookup Exchange",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Tradingview Chart": {
"main": [
[
{
"node": "Download Chart",
"type": "main",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "Technical Analyst Leader",
"type": "ai_memory",
"index": 0
}
]
]
},
"Technical Analysis Tool": {
"ai_tool": [
[
{
"node": "Technical Analyst Leader",
"type": "ai_tool",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Lookup Exchange",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Technical Analyst Leader",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Extract analyst question and management response": {
"main": [
[
{
"node": "Set 'response' value",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
[](https://youtu.be/D11S0s3PDNc)
Source: https://n8n.io/workflows/3160/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This comprehensive workflow automates the complete financial document processing pipeline using AI. Upload invoices via chat, drop expense receipts into a folder, or add bank statements - the system a
This template attempts to create an AI-powered content assistant for WordPress sites using Mistral AI, enabling article recommendations, content summarization, and contextual Q&A capabilities.
by Varritech Technologies
Airtable AI Agent. Uses lmChatOpenAi, agent, toolWorkflow, toolCode. Chat trigger; 42 nodes.
Ai Agent To Chat With Airtable And Analyze Data. Uses lmChatOpenAi, agent, stickyNote, memoryBufferWindow. Chat trigger; 41 nodes.