This workflow follows the Agent → Execute Workflow 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": "Suporte",
"nodes": [
{
"parameters": {
"workflowInputs": {
"values": [
{
"name": "Mensagem"
},
{
"name": "chatID"
}
]
}
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "b2e9e350-a255-4077-9a52-81e2ae2657be",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-3.5-turbo",
"mode": "list",
"cachedResultName": "gpt-3.5-turbo"
},
"builtInTools": {},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
128,
304
],
"id": "835170be-7a0a-4d8d-bc3f-77222e5e5a46",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $json.chatID }}",
"contextWindowLength": 30
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
304,
304
],
"id": "8a4b01c5-0510-48b9-afe6-10faec7a8b0d",
"name": "Simple Memory"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.Mensagem }}",
"options": {
"systemMessage": "=# Identidade\nVoc\u00ea \u00e9 o Leo, Analista T\u00e9cnico da Hashtag Capital.\nSeu tom \u00e9: Especialista, did\u00e1tico, seguro e paciente (\ud83d\udcca, \ud83e\udde0).\n\n# Contexto Temporal\nA data e hora exata de hoje \u00e9: {{ $now }}.\nUse esta data como refer\u00eancia para falar sobre fechamento de mercado ou prazos.\n\n# SUA FUN\u00c7\u00c3O\n1. Educador: Tirar d\u00favidas conceituais sobre produtos (CDB, A\u00e7\u00f5es, FIIs, Tesouro). Explique como funcionam.\n\n# Exemplos de Atua\u00e7\u00e3o\n- \"O que \u00e9 Selic?\" -> Explique a taxa b\u00e1sica de juros e impacto na Renda Fixa.\n\n# Limite de Atua\u00e7\u00e3o\nVoc\u00ea explica O QUE \u00c9 o produto, mas N\u00c3O FAZ RECOMENDA\u00c7\u00c3O DE COMPRA (\"Compre PETR4 agora\").\nSe o cliente pedir indica\u00e7\u00e3o personalizada, diga: \"Para uma recomenda\u00e7\u00e3o personalizada para seu perfil, o ideal \u00e9 falar com nosso Assessor.\" (Mas n\u00e3o agende, deixe ele pedir ou sugira procurar o CS).\n\n# REGRA DE TEXTO (IMPORTANTE)\nVoc\u00ea est\u00e1 em um chat simples que quebra se receber c\u00f3digos.\n1. Escreva como se fosse um bloco de notas simples.\n2. NUNCA use negrito, it\u00e1lico, asteriscos ou c\u00f3digos de formata\u00e7\u00e3o.\n\n\n## Regra de sa\u00edda\nSe o assunto for FINANCEIRO (Pagamento, boletos, etc) ou AGENDAMENTO COM ASSESSOR (CS), responda apenas:\n##RESET##\n"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3,
"position": [
208,
0
],
"id": "7a98f01e-a59d-4723-b625-a88033db4883",
"name": "AI Agent"
},
{
"parameters": {
"content": "AGENTE SUPORTE",
"height": 656,
"width": 736
},
"type": "n8n-nodes-base.stickyNote",
"position": [
-128,
-144
],
"typeVersion": 1,
"id": "4fc762ac-cdc9-4dde-b46d-89c3820729f3",
"name": "Sticky Note"
}
],
"connections": {
"When Executed by Another Workflow": {
"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
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "0e1fd72e-d4fe-4b35-beb0-d36928c2f403",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "rEtAJbyUgzRJUdg5",
"tags": []
}
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
Suporte. Uses executeWorkflowTrigger, lmChatOpenAi, memoryBufferWindow, agent. Event-driven trigger; 5 nodes.
Source: https://github.com/ABCS89/AI_AGENTS/blob/5cd779cb2a64718dbff2f49b8748b8e5c968f961/n8n/workflows/Suporte.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.
Discord Agent. Uses executeWorkflowTrigger, agent, lmChatOpenAi, chatTrigger. Event-driven trigger; 13 nodes.
CoinMarketCap_Crypto_Agent_Tool. Uses executeWorkflowTrigger, agent, lmChatOpenAi, memoryBufferWindow. Event-driven trigger; 13 nodes.
Access real-time cryptocurrency prices, market rankings, metadata, and global stats—powered by GPT-4o and CoinMarketCap! This modular AI-powered agent is part of a broader CoinMarketCap multi-agent sy
📉 Detect key candlestick reversal patterns and volume divergence on Tesla (TSLA) using GPT-4.1 and real-time OHLCV data. This AI agent evaluates 1-hour and 1-day candles and is an essential part of th
Transforms your Discord server into an intelligent, responsive powerhouse of communication and automation! 💬 AI-Powered Messaging 🤝 Multi-Channel Interaction 🧠 Smart Response Generation 🔗 Seamless Wor