This workflow follows the Agent → HTTP Request 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 →
{
"createdAt": "2025-04-24T09:58:48.104Z",
"updatedAt": "2025-04-24T12:16:45.778Z",
"id": "wQ4LLh7ixdhFQ9nN",
"name": "Atendimento",
"active": false,
"isArchived": false,
"nodes": [
{
"parameters": {
"operation": "push",
"list": "={{ $('Edit Fields2').item.json.telefone }}",
"messageData": "={{ $('Edit Fields2').item.json.mensagem }}",
"tail": true
},
"id": "8e59acf0-5ab2-4ac9-9c1e-c6ef462e06f1",
"name": "Redis",
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
-2220,
420
],
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"amount": 8
},
"id": "ef05dfca-fa10-4877-ae2d-fb6976d46a95",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
-2000,
420
]
},
{
"parameters": {
"operation": "get",
"key": "={{ $('Edit Fields2').item.json.telefone }}",
"options": {}
},
"id": "8a8f35e3-2c31-4fa0-b004-4ec56d4d88b6",
"name": "Redis1",
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
-1780,
420
],
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "21fd20d7-f940-4a66-91d5-5ea4c031bb50",
"leftValue": "={{ $json.propertyName?.last() }}",
"rightValue": "={{ $('Edit Fields2').item.json.mensagem }}",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"id": "0cfb2cc6-d7c8-4994-b199-2059f7cf6542",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
-1560,
420
]
},
{
"parameters": {},
"id": "b60dd233-8f0d-4aaa-88b4-1becb7547fd2",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1560,
660
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "37f63b88-4a52-4421-aa95-db9114e521bc",
"name": "listaMensagens",
"value": "={{ $json.propertyName.join(', ') }}",
"type": "string"
}
]
},
"options": {}
},
"id": "51c4df2b-028e-4c15-aa5b-37af2740b04f",
"name": "Edit Fields1",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-1340,
400
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Webhook').item.json.body.server_url }}/message/sendText/{{ $('Webhook').item.json.body.instance }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "l7jacAmaJjEScKIBietpf3y6OpOBtGJB"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"number\": \"{{ $('Webhook').item.json[\"body\"][\"data\"][\"key\"][\"remoteJid\"] }}\",\n \"text\": \"{{ $json.text.replace(/\\n/g, \"\\\\n\").replace(/['\"]/g, '') }}\"\n}",
"options": {}
},
"id": "78502fb5-2a67-41ec-a4da-1e5584e9664a",
"name": "Responde texto",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1100,
40
]
},
{
"parameters": {
"operation": "delete",
"key": "={{ $('Edit Fields2').item.json.telefone }}"
},
"id": "653c1ee1-ad86-4eef-a828-0ca654c02cc5",
"name": "Redis2",
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
-1080,
400
],
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "664b8a4c-fe27-44c8-8169-e495e7b25266",
"name": "dataBase",
"value": "120",
"type": "string"
},
{
"id": "b1cab398-5b2a-47d0-8707-31dd95d02920",
"name": "tableID",
"value": "579",
"type": "string"
},
{
"id": "8d88c137-383f-4307-b3cc-1f6a560ea67b",
"name": "telefone",
"value": "={{ $json.body.data.key.remoteJid }}",
"type": "string"
},
{
"id": "7e2f520e-4952-425b-82ca-792cc46680d4",
"name": "mensagem",
"value": "={{ $json.body.data.message.conversation }}{{ $json.body.data.message.extendedTextMessage.text }}",
"type": "string"
}
]
},
"options": {}
},
"id": "491cf16c-8805-4d98-9a03-89aff42bee02",
"name": "Edit Fields2",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-3940,
620
]
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "data",
"options": {
"fileName": "file.ogg",
"mimeType": "application/ogg"
}
},
"id": "8d8fa544-5cda-4190-a862-dcaa9b7b7710",
"name": "Convert to File",
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
-3120,
580
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "3c5ccbc9-69d1-4b13-a7c3-e6945bc8c655",
"name": "data",
"value": "={{ $('Webhook').item.json.body.data.message.base64 }}",
"type": "string"
}
]
},
"options": {}
},
"id": "312f7cf9-7448-4eec-a614-eb750b7d4287",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-3360,
580
]
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "data",
"options": {
"fileName": "file.png",
"mimeType": "image/png"
}
},
"id": "090fc737-9e48-420f-92b7-e4fd3a48de03",
"name": "Convert to File1",
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
-3120,
800
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "3c5ccbc9-69d1-4b13-a7c3-e6945bc8c655",
"name": "data",
"value": "={{ $('Webhook').item.json.body.data.message.base64 }}",
"type": "string"
}
]
},
"options": {}
},
"id": "94363bf9-ce0c-4c1a-afb2-1a0a49f3319c",
"name": "Edit Fields3",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-3360,
800
]
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 1
},
"conditions": [
{
"id": "52aaf749-fe4f-44e4-880e-15b2bfc027f1",
"leftValue": "={{ $('Webhook').item.json[\"body\"][\"data\"][\"messageType\"] }}",
"rightValue": "extendedTextMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "text"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 1
},
"conditions": [
{
"id": "e514e613-fd6a-48bd-b0ae-bae2448c810e",
"leftValue": "={{ $('Webhook').item.json[\"body\"][\"data\"][\"messageType\"] }}",
"rightValue": "conversation",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "text"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 1
},
"conditions": [
{
"leftValue": "={{ $('Webhook').item.json[\"body\"][\"data\"][\"messageType\"] }}",
"rightValue": "audioMessage",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "audio"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 1
},
"conditions": [
{
"id": "c0e434dd-1268-421d-b81b-3a5e90ed9550",
"leftValue": "={{ $('Webhook').item.json[\"body\"][\"data\"][\"messageType\"] }}",
"rightValue": "imageMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "image"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 1
},
"conditions": [
{
"id": "ead847ea-debe-4c53-bc85-e658f6f79321",
"leftValue": "={{ $('Webhook').item.json.body.data.message.documentMessage.url }}",
"rightValue": "url",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "document"
}
]
},
"options": {}
},
"id": "4bbd9d11-6e74-40db-bcd8-2b942a84e640",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 3,
"position": [
-3700,
580
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 1
},
"conditions": [
{
"id": "ade56c50-1520-4760-8df5-e99617d6d3ad",
"leftValue": "={{ $('Webhook').item.json[\"body\"][\"data\"][\"message\"][\"imageMessage\"][\"caption\"] }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "empty",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"id": "b9bbc419-92ae-413d-b504-01d738c6b461",
"name": "If3",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
-2680,
800
]
},
{
"parameters": {
"operation": "push",
"list": "={{ $('Edit Fields2').item.json.telefone }}",
"messageData": "={{ $('Edit Fields2').item.json.mensagem }}",
"tail": true
},
"id": "b9d09eab-f812-450e-97bf-34fc3f31d75a",
"name": "Redis3",
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
-2680,
580
],
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "push",
"list": "={{ $('Edit Fields2').item.json.telefone }}",
"messageData": "={{ $('Webhook').item.json[\"body\"][\"data\"][\"message\"][\"imageMessage\"][\"caption\"] }}, {{ $json.content.replace(/\\n/g, \"\\\\n\").replace(/['\"]/g, '').trim() }}",
"tail": true
},
"id": "cdb94cce-6895-4035-94f1-c5b6389438e6",
"name": "Redis4",
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
-2420,
900
],
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "push",
"list": "={{ $('Edit Fields2').item.json.telefone }}",
"messageData": "={{ $json.content.replace(/\\n/g, \"\\\\n\").replace(/['\"]/g, '').trim() }}",
"tail": true
},
"id": "fcf08c2e-580b-45aa-8820-aa8b4741231f",
"name": "Redis5",
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
-2420,
720
],
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "84b6e91c-5e7c-4604-8609-f8a0e6fa8b01",
"leftValue": "={{ $json.text }}",
"rightValue": ".wav,. mp3, .mov, .mkv, .pdf, .jpeg, .jpg, .png, .webp",
"operator": {
"type": "string",
"operation": "notContains"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "texto"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.text.match(/https:\\/\\/.*\\.(jpeg|jpg|png|webp)/g) != null }}",
"rightValue": "https",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "imagem"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "7e5907c4-8b5b-4803-b269-3c1453efee15",
"leftValue": "={{ $json.text.match(/https:\\/\\/.*\\.(pdf)/g) != null }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "pdf"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "220dfbb2-989f-466f-978c-8a5d76410ddb",
"leftValue": "={{ $json.text.match(/https:\\/\\/.*\\.(wav|mp3|mov|mkv)/g) != null }}",
"rightValue": "video",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "video"
}
]
},
"options": {}
},
"id": "d4e60d61-9872-4024-a41b-d432dafc3bd2",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
600,
400
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Webhook').item.json.webhookUrl }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "=\n{\n \"number\": \"{{ $('Webhook').item.json[\"body\"][\"data\"][\"key\"][\"remoteJid\"] }}\",\n \"options\": {\n \"delay\": 1200,\n \"presence\": \"composing\"\n },\n \"mediaMessage\": {\n \"mediatype\": \"image\",\n \"caption\": \"This is an example JPG image file sent by Evolution-API via URL.\",\n \"media\": \"https://evolution-api.com/files/evolution-api.jpg\"\n }\n}",
"options": {}
},
"id": "7cd4d76b-d3ff-45b0-80bd-dbd0b51e0819",
"name": "Responde imagem",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1100,
200
]
},
{
"parameters": {
"method": "POST",
"url": "=seu endpoint",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "sua api"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"number\": \"{{ $('Webhook').item.json[\"body\"][\"data\"][\"key\"][\"remoteJid\"] }}\",\n \"options\": {\n \"delay\": 1200,\n \"presence\": \"composing\",\n \"linkPreview\": false\n },\n \"textMessage\": {\n \"text\": \"{{ $('Envia ao Flowise texto').item.json[\"text\"].replace(/\\n/g, \"\\\\n\").replace(/['\"]/g, '') }}\"\n\n }\n}",
"options": {}
},
"id": "21b2df76-1180-4b43-af22-8751a1b13c2e",
"name": "Responde pdf",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1100,
360
]
},
{
"parameters": {
"method": "POST",
"url": "=seu endpoint",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "sua api"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"number\": \"{{ $('Webhook').item.json[\"body\"][\"data\"][\"key\"][\"remoteJid\"] }}\",\n \"options\": {\n \"delay\": 1200,\n \"presence\": \"composing\",\n \"linkPreview\": false\n },\n \"textMessage\": {\n \"text\": \"{{ $('Envia ao Flowise texto').item.json[\"text\"].replace(/\\n/g, \"\\\\n\").replace(/['\"]/g, '') }}\"\n\n }\n}",
"options": {}
},
"id": "fef4381f-dee7-408c-a625-a53f25262e2f",
"name": "Responde v\u00eddeo",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1100,
520
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "50cebc66-2dbc-4c7a-a09e-83ffb0f52991",
"name": "mensagem",
"value": "={{ $('Edit Fields2').item.json.mensagem }}",
"type": "string"
}
]
},
"options": {}
},
"id": "f07cf8f9-c232-4f23-8112-bd5513a6b91a",
"name": "Edit Fields4",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-3360,
400
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "a1e66db0-00dc-481d-951c-1fde558e268e",
"name": "text",
"value": "={{ $json.output.split('\\n\\n') }}",
"type": "array"
}
]
},
"options": {}
},
"id": "0ed25e5f-411a-4b99-b6ec-8efa631e5ba4",
"name": "Edit Fields5",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-300,
400
]
},
{
"parameters": {
"fieldToSplitOut": "text",
"options": {}
},
"id": "b6c8cbf2-7ec0-4d1f-9508-c00319e546de",
"name": "Split Out",
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
-140,
400
]
},
{
"parameters": {
"options": {}
},
"id": "f6d0d929-9a85-45b3-b4aa-0a0b53671136",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
80,
400
]
},
{
"parameters": {},
"id": "a1172437-7f6a-4709-af56-8ee0cd5436e5",
"name": "Replace Me",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
340,
280
]
},
{
"parameters": {
"amount": 3
},
"id": "7b8f2be7-15e8-4b8c-b79c-2263d07ccea1",
"name": "Wait1",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
340,
540
]
},
{
"parameters": {
"resource": "audio",
"operation": "transcribe",
"options": {}
},
"id": "a481fe20-0641-4ab8-af52-d4b1b44b6ae3",
"name": "OpenAI",
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.6,
"position": [
-2900,
580
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"resource": "image",
"operation": "analyze",
"modelId": {
"__rl": true,
"value": "gpt-4o-mini",
"mode": "list",
"cachedResultName": "GPT-4O-MINI"
},
"text": "Descreva todo o conteudo da imagem. Responda sem acento, sem hifens",
"inputType": "base64",
"options": {}
},
"id": "756fdf42-7a08-4e66-b632-e2fc11192b6f",
"name": "OpenAI1",
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.6,
"position": [
-2900,
800
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"id": "667e04dc-63a2-4978-9c0f-fb2d5db077f0",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
-880,
620
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"httpMethod": "POST",
"path": "ruy2",
"options": {}
},
"id": "4c403f83-80d1-4db9-ab83-51d3978a718f",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-4160,
620
]
},
{
"parameters": {
"promptType": "define",
"text": "={{$json.listaMensagens.replace(/\\n/g, \"\\\\n\").replace(/['\"]/g, '')}}",
"options": {
"systemMessage": "=# ROLE:\n\nVoc\u00ea \u00e9 a Marcela, Assistente da Maven AI Solutions. Voc\u00ea \u00e9 gentil e comunicativa e consegue engajar com muita efici\u00eancia as conversas com nossos leads utilizando um tom informal para criar relacionamentos e mesmo assim mantendo o profissionalismo.\n\n# TASK:\nSua tarefa \u00e9 prestar o atendimento do Lead e tirar todas as suas d\u00favidas. Siga esse passo a passo para prestar seu atendimento:\n1- Se a primeira mensagem que o usu\u00e1rio te enviar for uma mensagem positiva, inicie a tool de HTTP Request para fazer as perguntas.\n2- Se o Lead tiver qualquer d\u00favida, responda essas d\u00favidas e retome o rumo da conversa para entender se o lead est\u00e1 interessado em contratar os servi\u00e7os da Maven AI Solutions\n3- Se o Lead estiver interessado em contratar os servi\u00e7os da Maven AI Solutions, inicie a tool de HTTP Request para fazer as perguntas.\n4- Fa\u00e7a uma pergunta de cada vez. Nunca envie todas de uma vez igual um formul\u00e1rio. Converse com o lead.\n\n\n\n## CONTEXT:\n\nA Maven AI Solutions \u00e9 uma ag\u00eancia de automa\u00e7\u00e3o com intelig\u00eancia artificial. Oferecemos servi\u00e7os de automa\u00e7\u00e3o para Vendas, Marketing, Atendimento ao Cliente e Opera\u00e7\u00f5es. Desenvolvemos agentes de IA personalizados, automa\u00e7\u00f5es de IA, chatbots e agentes de voz.\n\n## Perguntas Frequentes:\n\n**P: Quanto custa essa automa\u00e7\u00e3o?** \n\"N\u00e3o posso fornecer pre\u00e7os exatos para projetos de automa\u00e7\u00e3o nesta chamada. As taxas de implementa\u00e7\u00e3o da Maven AI come\u00e7am em 3500 reais, mas dependem do projeto espec\u00edfico. Ele pode dar mais detalhes sobre os pre\u00e7os na chamada.\"\n\n**P: Posso falar com o Well Pires?** \n\"Claro! O Well entrar\u00e1 em contato com voc\u00ea em breve para agendar uma chamada.\"\n\n\n\n#NOTAS:\n\n-N\u00c3O RETORNE UMA RESPOSTA EM MARKDOWN\n-N\u00c3O RETORNE RESPOSTAS COM CARACTERES ESPECIAIS.\n"
}
},
"id": "548af09a-a1c5-42f2-8fc1-28d90fc53935",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
-760,
400
]
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $('Edit Fields2').item.json.telefone }}"
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
-680,
620
],
"id": "83ebf544-a5e0-49cd-b279-52456d5b276c",
"name": "Window Buffer Memory"
},
{
"parameters": {
"toolDescription": "Use essa tool toda vez que o usu\u00e1rio expressar desejo em contratar os servi\u00e7os da Maven AI Solutions ou enviar uma resposta positiva como ''sim'' ou ''claro'' ou ''ok''.\n\nVoc\u00ea deve fazer 4. perguntas. A primeira \u00e9 pra entender se o usu\u00e1rio est\u00e1 de acordo que os servi\u00e7os da Maven AI Solutions iniciam no valor de R$3.500, Salve a resposta na vari\u00e1vel \"budget\". A segunda \u00e9 pra entender se o usu\u00e1rio \u00e9 o tomador de decis\u00e3o da empresa dele, salve a resposta na vari\u00e1vel \"autoridade\". A terceira \u00e9 pra entender qual a necessidade do lead, pe\u00e7a um breve contexto da necessidade dele e salve na vari\u00e1vel \"necessidade\". A quarta \u00e9 pra entender quando que a empresa do lead est\u00e1 pronta para receber os servi\u00e7os da Maven AI Solutions, salve a resposta na vari\u00e1vel \"time\". \n\nIMPORTANTE: Fa\u00e7a uma pergunta de cada vez. Nunca envie todas de uma vez igual um formul\u00e1rio. Converse com o lead.",
"method": "POST",
"url": "seu webhook",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"budget\": \"{budget}\",\n \"autoridade\": \"{autoridade}\",\n \"necessidade\": \"{necessidade}\",\n \"time\": \"{time}\",\n \"telefone\": \"{{ $('Edit Fields2').item.json.telefone }}\"\n}\n"
},
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"typeVersion": 1.1,
"position": [
-480,
620
],
"id": "8b314f69-809f-431e-a2f0-6db262b9f99b",
"name": "HTTP Request"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Data Handler').item.json.evo.server_url }}/message/sendText/{{ $('Data Handler').item.json.evo.instance }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "={{ $('Data Handler').item.json.evo.apikey }}"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "number",
"value": "={{ $('Data Handler').item.json.data.remoteJid }}"
},
{
"name": "text",
"value": "={{ $json.splitText }}"
},
{
"name": "delay",
"value": "={{ 2000 }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"id": "2f41bca8-5168-42ae-b777-bd17ab5e8644",
"name": "Send Text"
}
],
"connections": {
"Redis": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Redis1",
"type": "main",
"index": 0
}
]
]
},
"Redis1": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields1": {
"main": [
[
{
"node": "Redis2",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields2": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields3": {
"main": [
[
{
"node": "Convert to File1",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Edit Fields4",
"type": "main",
"index": 0
}
],
[
{
"node": "Edit Fields4",
"type": "main",
"index": 0
}
],
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
],
[
{
"node": "Edit Fields3",
"type": "main",
"index": 0
}
]
]
},
"Convert to File1": {
"main": [
[
{
"node": "OpenAI1",
"type": "main",
"index": 0
}
]
]
},
"If3": {
"main": [
[
{
"node": "Redis5",
"type": "main",
"index": 0
}
],
[
{
"node": "Redis4",
"type": "main",
"index": 0
}
]
]
},
"Redis2": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "Responde texto",
"type": "main",
"index": 0
}
],
[
{
"node": "Responde imagem",
"type": "main",
"index": 0
}
],
[
{
"node": "Responde pdf",
"type": "main",
"index": 0
}
],
[
{
"node": "Responde v\u00eddeo",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields4": {
"main": [
[
{
"node": "Redis",
"type": "main",
"index": 0
}
]
]
},
"Redis3": {
"main": [
[
{
"node": "Redis",
"type": "main",
"index": 0
}
]
]
},
"Redis5": {
"main": [
[
{
"node": "Redis",
"type": "main",
"index": 0
}
]
]
},
"Redis4": {
"main": [
[
{
"node": "Redis",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields5": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Wait1": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Responde texto": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Responde imagem": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Responde pdf": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Responde v\u00eddeo": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"main": [
[
{
"node": "Redis3",
"type": "main",
"index": 0
}
]
]
},
"OpenAI1": {
"main": [
[
{
"node": "If3",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Edit Fields2",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Edit Fields5",
"type": "main",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"HTTP Request": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"meta": {
"templateCredsSetupCompleted": true
},
"versionId": "aec5b19e-7871-495e-be19-0ff148b54d93",
"triggerCount": 0,
"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.
openAiApiredis
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Atendimento. Uses redis, httpRequest, openAi, lmChatOpenAi. Webhook trigger; 36 nodes.
Source: https://github.com/AndersonNascimentoDosSantos/n8n-workflow-backup/blob/main/atendimento-wQ4LLh7ixdhFQ9nN.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.
L&D_AgentsAI_ATIVO. Uses httpRequest, agent, googleCalendarTool, toolSerpApi. Webhook trigger; 93 nodes.
Aura-bot. Uses postgres, lmChatOpenAi, memoryBufferWindow, httpRequest. Webhook trigger; 82 nodes.
1-[Agente-Abogado]-Asistente-Whatsapp. Uses lmChatOpenAi, toolWorkflow, toolCalculator, agent. Webhook trigger; 52 nodes.
KALELE CHATBOT. Uses lmChatOpenAi, agent, toolHttpRequest, memoryPostgresChat. Webhook trigger; 48 nodes.
Whatsapp Lead Agent. Uses httpRequest, hunter, @tavily/n8n-nodes-tavily, @mendable/n8n-nodes-firecrawl. Webhook trigger; 35 nodes.