This workflow follows the Agent → Chat Trigger 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 →
{
"name": "AI Agent \u2014 \u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u0437\u0432\u0456\u043d\u043a\u0456\u0432 (\u0427\u0430\u0442)",
"nodes": [
{
"parameters": {
"options": {}
},
"id": "chat-trigger",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
0,
0
]
},
{
"parameters": {
"options": {
"systemMessage": "=\u0422\u0438 \u2014 AI-\u0430\u0441\u0438\u0441\u0442\u0435\u043d\u0442 \u0430\u043d\u0430\u043b\u0456\u0442\u0438\u043a\u0438 \u0434\u0437\u0432\u0456\u043d\u043a\u0456\u0432 \u043a\u043e\u043d\u0434\u0438\u0442\u0435\u0440\u0441\u044c\u043a\u043e\u0457 \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u0457 \"\u0421\u043e\u043b\u043e\u0434\u043a\u0430 \u041c\u0440\u0456\u044f\".\n\n\u0422\u0432\u043e\u0457 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456:\n- \u041d\u0430\u0434\u0430\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u0438\u0445 \u0432\u0456\u0434\u0433\u0443\u043a\u0430\u0445 \u0437\u0430 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u043f\u0435\u0440\u0456\u043e\u0434\n- \u0410\u043d\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0442\u0438 \u0442\u0440\u0435\u043d\u0434\u0438 \u0443 \u0432\u0456\u0434\u0433\u0443\u043a\u0430\u0445 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432\n- \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0442\u0438 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f \u043f\u0440\u043e \u044f\u043a\u0456\u0441\u0442\u044c \u043e\u0431\u0441\u043b\u0443\u0433\u043e\u0432\u0443\u0432\u0430\u043d\u043d\u044f\n\n\u041f\u043e\u0442\u043e\u0447\u043d\u0430 \u0434\u0430\u0442\u0430: {{ $now.format('yyyy-MM-dd') }}\n\n\u041a\u043e\u043b\u0438 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437\u0430\u043f\u0438\u0442\u0443\u0454 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0437\u0430 \u043f\u0435\u0440\u0456\u043e\u0434:\n1. \u0412\u0438\u0437\u043d\u0430\u0447 startDate \u0442\u0430 endDate \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0437\u0430\u043f\u0438\u0442\u0443 (\u0444\u043e\u0440\u043c\u0430\u0442: YYYY-MM-DD)\n2. \u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0439 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"Get Call Stats\" \u0437 \u0446\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438\n3. \u0421\u0444\u043e\u0440\u043c\u0443\u043b\u044e\u0439 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u0443 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u0438\u0433\u043b\u044f\u0434\u0456 \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u044e \u043c\u043e\u0432\u043e\u044e\n\n\u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456:\n\"\u0417 2026-01-01 \u043f\u043e 2026-01-31 \u0431\u0443\u043b\u043e \u043e\u0431\u0440\u043e\u0431\u043b\u0435\u043d\u043e 150 \u0434\u0437\u0432\u0456\u043d\u043a\u0456\u0432, \u0437 \u043d\u0438\u0445 12 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u0438\u0445 (8%).\"\n\n\u042f\u043a\u0449\u043e \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043a\u0430\u0436\u0435 \"\u043c\u0438\u043d\u0443\u043b\u0438\u0439 \u043c\u0456\u0441\u044f\u0446\u044c\" \u2014 \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0439 \u0434\u0430\u0442\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0434\u0430\u0442\u0438.\n\u042f\u043a\u0449\u043e \u043a\u0430\u0436\u0435 \"\u0446\u0435\u0439 \u043c\u0456\u0441\u044f\u0446\u044c\" \u2014 \u0432\u0456\u0434 \u043f\u0435\u0440\u0448\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043c\u0456\u0441\u044f\u0446\u044f \u0434\u043e \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0434\u0430\u0442\u0438.\n\u042f\u043a\u0449\u043e \u043a\u0430\u0436\u0435 \"\u043c\u0438\u043d\u0443\u043b\u0438\u0439 \u0442\u0438\u0436\u0434\u0435\u043d\u044c\" \u2014 \u0432\u0456\u0434 \u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430 \u0434\u043e \u043d\u0435\u0434\u0456\u043b\u0456 \u043c\u0438\u043d\u0443\u043b\u043e\u0433\u043e \u0442\u0438\u0436\u043d\u044f.\n\n\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0439 \u0437\u0430\u0432\u0436\u0434\u0438 \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u044e \u043c\u043e\u0432\u043e\u044e, \u0432\u0432\u0456\u0447\u043b\u0438\u0432\u043e \u0442\u0430 \u043f\u0440\u043e\u0444\u0435\u0441\u0456\u0439\u043d\u043e."
}
},
"id": "ai-agent",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
224,
0
]
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "GPT-4O-MINI"
},
"options": {
"temperature": 0.3
}
},
"id": "openai-model",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
224,
208
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"contextWindowLength": 16000
},
"id": "memory-window",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
432,
208
]
},
{
"parameters": {
"name": "get_call_stats",
"description": "\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0434\u0437\u0432\u0456\u043d\u043a\u0456\u0432 \u0437\u0430 \u043f\u0435\u0440\u0456\u043e\u0434. \u041f\u0440\u0438\u0439\u043c\u0430\u0454 startDate (YYYY-MM-DD) \u0442\u0430 endDate (YYYY-MM-DD). \u041f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 JSON \u0437 totalCalls, negativeCalls, negativeCallPercent.",
"workflowId": {
"__rl": true,
"value": "93ivchE097dKJZcI",
"mode": "list",
"cachedResultUrl": "/workflow/93ivchE097dKJZcI",
"cachedResultName": "Get Call Stats \u2014 Sub-workflow"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {
"startDate": "={{ $fromAI('startDate', 'Start date in YYYY-MM-DD format', 'string') }}",
"endDate": "={{ $fromAI('endDate', 'End date in YYYY-MM-DD format', 'string') }}"
},
"matchingColumns": [],
"schema": [
{
"id": "startDate",
"displayName": "startDate",
"required": true,
"defaultMatch": false,
"canBeUsedToMatch": true,
"type": "string"
},
{
"id": "endDate",
"displayName": "endDate",
"required": true,
"defaultMatch": false,
"canBeUsedToMatch": true,
"type": "string"
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"id": "tool-get-call-stats",
"name": "Get Call Stats Tool",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"typeVersion": 2,
"position": [
624,
208
]
}
],
"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
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Get Call Stats Tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"callerPolicy": "workflowsFromSameOwner",
"availableInMCP": false
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
AI Agent — Статистика дзвінків (Чат). Uses chatTrigger, agent, lmChatOpenAi, memoryBufferWindow. Chat trigger; 5 nodes.
Source: https://github.com/neuron7xLab/ai-automation-portfolio/blob/main/flagship-callsense/workflows/03_ai_agent_chat.json — 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.
OpenSea AI-Powered Insights via Telegram. Uses chatTrigger, telegramTrigger, lmChatOpenAi, memoryBufferWindow. Chat trigger; 13 nodes.
Track NFT market trends, collections, and trades in real time—directly from Telegram! This master workflow integrates the OpenSea API, GPT-4o-mini AI, and Telegram, allowing users to request natural-l
Expense Tracker. Uses chatTrigger, agent, lmChatOpenAi, memoryBufferWindow. Chat trigger; 12 nodes.
Copywriting Agent (Team). Uses chatTrigger, toolWorkflow, lmChatOpenAi, googleDocs. Chat trigger; 11 nodes.
📝 Overview This workflow transforms n8n into a smart real-estate concierge by combining an AI chat interface with Bright Data’s marketplace datasets. Users interact via chat to specify city, price, be