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": "Thunder Manager Agent (Final)",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "manager-agent",
"responseMode": "responseNode",
"options": {}
},
"id": "webhook-trigger",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"resource": "text",
"operation": "message",
"modelId": "gpt-4o",
"messages": {
"values": [
{
"role": "system",
"content": "Sen Thunder ERP'nin y\u00f6netici karar verme agent'\u0131s\u0131n.\n\nG\u00f6revlerin:\n1. Stratejik kararlar al\n2. \u00c7oklu agent konsens\u00fcs\u00fc olu\u015ftur\n3. Kritik onaylar\u0131 de\u011ferlendir\n4. Sistem performans\u0131n\u0131 analiz et\n5. \u0130\u015f s\u00fcre\u00e7lerini optimize et\n\nYan\u0131t format\u0131 JSON:\n{\n \"decision\": \"approved\" | \"rejected\" | \"needs_review\",\n \"reasoning\": \"Karar gerek\u00e7esi\",\n \"manager_analysis\": {\n \"consensus\": \"\",\n \"risk_assessment\": {},\n \"recommendations\": [],\n \"approval_required\": false\n },\n \"confidence\": 0.95\n}"
},
{
"role": "user",
"content": "={{ $json.body.prompt }}"
}
]
},
"options": {
"temperature": 0.7,
"maxTokens": 2048
},
"simplifyOutput": true
},
"id": "openai-agent",
"name": "Manager Agent (GPT-4o)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1,
"position": [
450,
300
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsCode": "// OpenAI node'dan gelen response'u al\nconst input = $input.item.json;\n\n// Response format\u0131n\u0131 kontrol et ve content'i \u00e7\u0131kar\nlet content = '';\n\n// Input bir object ise (simplifyOutput: true oldu\u011funda)\nif (input.message && input.message.content) {\n content = input.message.content;\n}\n// Input bir array ise\nelse if (Array.isArray(input) && input.length > 0) {\n if (input[0].message && input[0].message.content) {\n content = input[0].message.content;\n } else if (input[0].content) {\n content = input[0].content;\n } else {\n content = JSON.stringify(input[0]);\n }\n}\n// Di\u011fer formatlar\nelse if (input.content) {\n content = input.content;\n} else {\n // Fallback: t\u00fcm input'u string'e \u00e7evir\n content = JSON.stringify(input);\n}\n\n// Response olu\u015ftur\nconst response = {\n success: true,\n agent: \"manager\",\n response: content\n};\n\nreturn {\n json: response\n};"
},
"id": "code-node",
"name": "Format Response",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
650,
300
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ $json }}"
},
"id": "response",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
850,
300
]
}
],
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "Manager Agent (GPT-4o)",
"type": "main",
"index": 0
}
]
]
},
"Manager Agent (GPT-4o)": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
},
"Format Response": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2025-01-27T00:00:00.000Z",
"versionId": "1"
}
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
Thunder Manager Agent (Final). Uses openAi. Webhook trigger; 4 nodes.
Source: https://github.com/Huseyintabak/ERP-V2/blob/48823c94dce6339aa9fcdebba0bf9b9fb02d800b/n8n-workflows/manager-agent-final.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.
Are you drowning in daily operational chaos, desperately trying to juggle sales, projects, content, and client communication? Imagine an AI brain that handles it all, freeing you to lead your business
CLINICAINTEGRAL_secretary. Uses postgres, mcpClientTool, googleDriveTool, toolWorkflow. Webhook trigger; 89 nodes.
Remi 1.1. Uses lmChatOpenAi, memoryPostgresChat, openAi, postgres. Webhook trigger; 89 nodes.
This n8n workflow orchestrates a powerful suite of AI Agents and automations to manage and optimize various aspects of an e-commerce operation, particularly for platforms like Shopify. It leverages La
My workflow 7. Uses openAi, redis, httpRequest, agent. Webhook trigger; 77 nodes.