This workflow follows the Agent → Documentdefaultdataloader 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": "Agente de Agendamento YT (V.2)",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "clinica",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
0,
0
],
"id": "0e008516-dc3f-4d19-afc2-0a090e998dc5",
"name": "Webhook"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "ddfc8c08-22d7-43e3-abad-b5cd3dfcdf13",
"name": "Nome",
"value": "={{ $json.body.data.pushName }}",
"type": "string"
},
{
"id": "da577156-0336-4cb8-98cf-acb620856825",
"name": "Telefone",
"value": "={{ $json.body.data.key.remoteJid.replaceAll(\"@s.whatsapp.net\",\"\") }}",
"type": "string"
},
{
"id": "3ba0eaa2-46cc-41a9-ac24-1f91aba1acca",
"name": "tipoMensagem",
"value": "={{ $json.body.data.messageType }}",
"type": "string"
},
{
"id": "e5af360f-3c55-4a41-bccf-0c764bdf6b4c",
"name": "fremMe",
"value": "={{ $json.body.data.key.fromMe }}",
"type": "string"
},
{
"id": "0fd39744-4570-425b-9898-424733135a4e",
"name": "bloquearAgente",
"value": "BloquearAgente",
"type": "string"
},
{
"id": "64bd7c31-7555-4c11-a9dd-85cfb78b19b0",
"name": "Mensagem",
"value": "={{ $json.body.data.message.conversation }}",
"type": "string"
},
{
"id": "7a421dfe-7db5-4ad6-be47-f3e6d7b01bc9",
"name": "msgPicotada",
"value": "=MensagemPicotada{{ $json.body.data.key.remoteJid }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
220,
0
],
"id": "585ce65b-2e2d-4291-bde6-317998c7b00a",
"name": "Edit Fields"
},
{
"parameters": {
"documentId": {
"__rl": true,
"value": "1vUDO_ialYac7p0N1QkTKce-gBPodku1sWGvwuyNMRZQ",
"mode": "list",
"cachedResultName": "Cadastro - Agendamento YT",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vUDO_ialYac7p0N1QkTKce-gBPodku1sWGvwuyNMRZQ/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Paciente",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vUDO_ialYac7p0N1QkTKce-gBPodku1sWGvwuyNMRZQ/edit#gid=0"
},
"filtersUI": {
"values": [
{
"lookupColumn": "Telefone",
"lookupValue": "={{ $json.Telefone }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
440,
0
],
"id": "3fe1f3df-f3a7-4a5a-8256-be60f0530a4c",
"name": "Google Sheets",
"alwaysOutputData": true,
"credentials": {
"googleSheetsOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "56722fd8-a5b1-4a2f-be32-c87cd0f2b3c0",
"leftValue": "={{ $json.Telefone }}",
"rightValue": "",
"operator": {
"type": "number",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
660,
0
],
"id": "041df016-094e-41ec-8e64-221809ef9c0e",
"name": "If"
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "1vUDO_ialYac7p0N1QkTKce-gBPodku1sWGvwuyNMRZQ",
"mode": "list",
"cachedResultName": "Cadastro - Agendamento YT",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vUDO_ialYac7p0N1QkTKce-gBPodku1sWGvwuyNMRZQ/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Paciente",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vUDO_ialYac7p0N1QkTKce-gBPodku1sWGvwuyNMRZQ/edit#gid=0"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Nome": "={{ $('Edit Fields').item.json.Nome }}",
"Telefone": "={{ $('Edit Fields').item.json.Telefone }}"
},
"matchingColumns": [],
"schema": [
{
"id": "Nome",
"displayName": "Nome",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Telefone",
"displayName": "Telefone",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
920,
100
],
"id": "5183547d-8749-4a40-b84b-3c3450e68a4e",
"name": "Google Sheets1",
"credentials": {
"googleSheetsOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $('Edit Fields').item.json.tipoMensagem }}",
"rightValue": "conversation",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "b8a1042f-1d61-4a34-875b-25b15993a2d9"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Texto"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "87f39adc-b08d-453a-839f-7369a39afe1a",
"leftValue": "={{ $('Edit Fields').item.json.tipoMensagem }}",
"rightValue": "audioMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Audio"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
1120,
-20
],
"id": "a4c2554a-1d78-4916-aac2-cc3215a44e4d",
"name": "Switch"
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "data.base64",
"options": {
"fileName": "audio.mp3"
}
},
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
1580,
80
],
"id": "8444b094-c150-4531-94fc-7c265f7b3f11",
"name": "Convert to File"
},
{
"parameters": {
"resource": "chat-api",
"operation": "get-media-base64",
"instanceName": "PensandoAI",
"messageId": "={{ $('Webhook').item.json.body.data.key.id }}"
},
"type": "n8n-nodes-evolution-api.evolutionApi",
"typeVersion": 1,
"position": [
1340,
80
],
"id": "2f6d3dde-b9fa-4f80-8b11-9b7f66fc847b",
"name": "Evolution API",
"credentials": {
"evolutionApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"resource": "audio",
"operation": "transcribe",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
1820,
80
],
"id": "e15ea47e-ae1f-4f5f-9c93-116eafe58adf",
"name": "OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "c91c0065-d17a-41f3-8a0f-21772a5670f1",
"name": "mensagemAudioemTexto",
"value": "={{ $json.text }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
2040,
-40
],
"id": "11c80032-6201-41a7-8d78-99d63713ce70",
"name": "Edit Fields1"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "5d74ff41-ebbc-4cbb-a1c5-f06801d577f0",
"leftValue": "={{ $('Edit Fields').item.json.fremMe }}",
"rightValue": "true",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
2260,
-40
],
"id": "c5c728cc-5b64-41d9-adbb-a744611ebe43",
"name": "If1"
},
{
"parameters": {
"operation": "set",
"key": "={{ $('Edit Fields').item.json.bloquearAgente }}",
"value": "true",
"expire": true
},
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
2520,
-160
],
"id": "8efddcd8-62b0-4b22-b24b-0bddc4e4d6c6",
"name": "Redis",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "keys",
"keyPattern": "={{ $('Edit Fields').item.json.bloquearAgente }}"
},
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
2760,
-20
],
"id": "80f157ac-ed14-42d0-8502-19087e1e3e1e",
"name": "Redis1",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "7093cc34-f209-4ea9-a755-721b3486cdab",
"leftValue": "={{ $json.BloquearAgente }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
2980,
-20
],
"id": "2fbc2e18-221d-4028-b660-907e5ecaef36",
"name": "If2"
},
{
"parameters": {},
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
3480,
-200
],
"id": "ef6c8960-eafa-4b30-a248-b2d5f63fd9e3",
"name": "No Operation, do nothing"
},
{
"parameters": {
"operation": "push",
"list": "={{ $('Edit Fields').item.json.msgPicotada }}",
"messageData": "={{ $json.mensagemAudioMaisTexto }}",
"tail": true
},
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
3500,
80
],
"id": "06113dd8-d9bf-4de9-9704-bd1dfa5e212f",
"name": "Redis2",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "547a1227-9df2-4b0b-9c91-465326c0364f",
"name": "mensagemAudioMaisTexto",
"value": "={{ $('Edit Fields').item.json.Mensagem }}{{ $('Edit Fields1').item.json.mensagemAudioemTexto }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3200,
80
],
"id": "84cd0752-886c-4225-9d82-b9e8398f1041",
"name": "Edit Fields2"
},
{
"parameters": {
"amount": 2
},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
3720,
80
],
"id": "b31350dd-c4b6-457e-abbc-d4d6128f40bc",
"name": "Wait"
},
{
"parameters": {
"operation": "get",
"key": "={{ $('Edit Fields').item.json.msgPicotada }}",
"options": {}
},
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
3940,
80
],
"id": "f95332c1-805f-43e4-878e-d95a94e06349",
"name": "Redis3",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "delete",
"key": "={{ $('Edit Fields').item.json.msgPicotada }}"
},
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
4160,
80
],
"id": "3192ba78-46d8-4505-9b5c-2e63b6c9ec70",
"name": "Redis4",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.toString }}",
"options": {
"systemMessage": "=Hora atual: {{ $now }}\nTelefone do paciente: {{ $('Edit Fields').item.json.Telefone }}, pe\u00e7a para o paciente confirmar se pode cadastrar usando esse telefone. \n\nFun\u00e7\u00e3o\nVoc\u00ea se chama \"Pensando AI\", atua no atendimento de Whatsapps da Consult\u00f3rio M\u00e9dico Boa Sa\u00fade, sua fun\u00e7\u00e3o \u00e9 atender aos pacientes de maneira objetiva, \u00e1gil e eficiente, respondendo d\u00favidas e auxiliando em agendamentos, cancelamentos ou remarca\u00e7\u00f5es de consultas. Seja sempre objetivo, simp\u00e1tico, prestativo, humano e respeitoso.\n\n\nLOCALIZA\u00c7\u00c3O E CONTATO:\n- Endere\u00e7o: Rua Formoso, numero 100, Setor America, CEP 00.000-000\n- Telefone e WhatsApp: (11) 00000-0000\n- E-mail: contato@consultorioboaforma.com.br\n- Site: www.consultorioboaforma.com.br\n\n\nM\u00c9DICOS E ESPECIALIDADES:\n- Dr. Jo\u00e3o (M\u00e9dico Endocrinologista), ele essta disponivel para atender das 08:00 \u00e1s 18:00 de segunda a sexta feira. Pode agendar as consultas em qualquer horario dentro desse intervalo.\n\n\nVALORES E FORMAS DE PAGAMENTO:\n- Consulta: R$ 600,00\n- Formas de pagamento: PIX, dinheiro, cart\u00e3o de d\u00e9bito ou cr\u00e9dito.\n- Plano de Sa\u00fade/Conv\u00eanios aceitos: Unimed.\n\n\nOBJETIVO:\n1. Responder d\u00favidas sobre o Consult\u00f3rio como: \n- Especialidade m\u00e9dica do Consult\u00f3rio\n- Localiza\u00e7\u00e3o do Consult\u00f3rio\n- Formas de pagamento aceit\u00e1veis\n2. Agendar, consultar, remarcar e cancelar consultas de forma simples e eficaz.\n3. Sempre agir passo a passo para garantir rapidez e precis\u00e3o em cada atendimento.\n\n\nINSTRU\u00c7\u00c3O IMPORTANTE:\n- Ao criar ou editar qualquer evento no Google Calendar, incluir sempre o telefone do paciente na descri\u00e7\u00e3o do agendamento, juntamente com o nome completo, data de nascimento, qual o m\u00e9dico escolhido e quaisquer outras informa\u00e7\u00f5es relevantes fornecidas pelo paciente.\n\n\nINSTRU\u00c7\u00d5ES DE COMO FALAR COM O PACIENTE:\n\n1. Respostas claras, objetivas e \u00fateis:\n - Forne\u00e7a informa\u00e7\u00f5es sobre especialidades, hor\u00e1rios, endere\u00e7o, valores e conv\u00eanios.\n\n2. N\u00e3o d\u00ea diagn\u00f3sticos ou opini\u00f5es m\u00e9dicas:\n - Se o paciente insistir em diagn\u00f3stico responda que s\u00f3 o m\u00e9dico na consulta que dever\u00e1 passar o diagnostico.\n\n3. Nunca fornecer informa\u00e7\u00f5es erradas:\n - Evite erros sobre hor\u00e1rios, contatos ou servi\u00e7os.\n\n4. Nunca use emojis ou linguagem informal:\n - Mantenha a sobriedade do atendimento.\n\n5. Nunca confirme consultas sem o retorno do MCP Google Calendar:\n - Garanta que o evento foi criado com sucesso antes de dar a resposta final.\n\n6. Sempre fa\u00e7a duas verifica\u00e7\u00f5es:\n - Confirme sempre os dados para evitar equ\u00edvocos em agendamentos, remarca\u00e7\u00f5es ou cancelamentos.\n\n\nCHAME A TOOL:\nMCP Google Calendar para:\n - Agendar, listar, remarcar ou desmarcar consultas.\n - Ao criar ou editar o evento, incluir:\n - Nome completo\n - Telefone\n - Data de nascimento\n - Informa\u00e7\u00f5es adicionais (se houver)\n\nImportante: \n- Quando for solicitado para alterar/remarcar um agendamento primeiro delete o horario antigo e depois crie o novo horario.\n- Se voc\u00ea n\u00e3o conseguir fazer algo n\u00e3o diga isso para o paciente, ele n\u00e3o precisar saber da inconpetencia nossa. Apenas ofere\u00e7a a solu\u00e7\u00e3o.\n- Nunca agende mais de um paciente no mesmo horario. Ex: se o paciente \"x\" esta marcado para segunda feira as 08:00 ent\u00e3o o paciente \"y\" n\u00e3o pode marcar no mesmo horario mesmo que ele pe\u00e7a.\n- Cada agendamento tem dura\u00e7\u00e3o de 30 minutos;\n- Sempre coloque o telefone do paciente na descri\u00e7\u00e3o do agendamento.\n- Todo paciente s\u00f3 pode ter um agendamento por vez, se ele tentar fazer mais de um agendamento pergunte se ele quer desmarcar o primeiro agendamento dele.\n- O Summary deve ser com: nome do paciente, horario, nome do medico. Mantenha esse padr\u00e3o para todos agendamentos.\n- Nunca agende datas ou hor\u00e1rios passados.\n- Se o paciente perguntar sobre outros agendamentos que n\u00e3o \u00e9 o dele n\u00e3o informe.\n- Nunca agende antes das 08:00.\n- Nunca agende depois das 18:00.\n\nLEMBRE-SE:\n- Qualquer assunto que n\u00e3o seja sobre a clinica ou sobre agendar uma consulta responda que o assunto n\u00e3o \u00e9 apropriado e diga sua fun\u00e7\u00e3o.\n- Nunca forne\u00e7a diagn\u00f3sticos ou opini\u00f5es m\u00e9dicas.\n- N\u00e3o utilize emoji.\n- Mantenha o tom profissional, claro, respeitoso e objetivo o tempo todo. \n- Sempre agendar datas futuras, nunca passadas.\n- N\u00e3o fale que voc\u00ea \u00e9 uma intelig\u00eancia artificial fa\u00e7a um atendimento humanizado\n\nNunca agende ou remarque mais de um paciente no mesmo horario. Ex: se o paciente \"x\" esta marcado para segunda feira as 08:00 ent\u00e3o o paciente \"y\" n\u00e3o pode marcar no mesmo horario mesmo que ele pe\u00e7a. O m\u00e9dico n\u00e3o pode atender 2 paciente no mesmo horario.\n\nQuando for perguntado sobre Tratamentos ou Sobre informa\u00e7\u00f5es da clinica busque na tool Pinecone Vector Store.\n"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.9,
"position": [
4700,
80
],
"id": "b137e3d8-a8d4-410c-a795-86482084bc2d",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4o-mini",
"mode": "list",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
4580,
360
],
"id": "7d6758a5-e4fe-498e-82d8-117e75c64657",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sseEndpoint": "https://n8n.elitetour.com.br/mcp/google-calendar/sse"
},
"type": "@n8n/n8n-nodes-langchain.mcpClientTool",
"typeVersion": 1,
"position": [
4920,
360
],
"id": "8248da7c-2307-466b-8a0b-06a2339330a8",
"name": "MCP Client"
},
{
"parameters": {
"resource": "messages-api",
"instanceName": "PensandoAI",
"remoteJid": "={{ $('Edit Fields').item.json.Telefone }}",
"messageText": "={{ $json.output }}",
"options_message": {}
},
"type": "n8n-nodes-evolution-api.evolutionApi",
"typeVersion": 1,
"position": [
5080,
80
],
"id": "c9719ead-ad0b-48ba-acb7-c7b62cd4b815",
"name": "Evolution API1",
"credentials": {
"evolutionApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $('Edit Fields').item.json.Telefone }}"
},
"type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
"typeVersion": 1.5,
"position": [
4780,
360
],
"id": "66703621-e9a2-4476-9f9b-1ad216eaa281",
"name": "Redis Chat Memory",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "c321c7c8-addc-4912-b1b4-316cc0bab974",
"name": "toString",
"value": "={{ $('Redis3').item.json.propertyName.toJsonString() }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
4440,
80
],
"id": "6ddce0fd-c400-4263-b99b-a2d17c980ad9",
"name": "Edit Fields3"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-20,
500
],
"id": "310536cc-e465-4033-bb70-2b4c715d0619",
"name": "When clicking \u2018Test workflow\u2019"
},
{
"parameters": {
"resource": "fileFolder",
"returnAll": true,
"filter": {
"folderId": {
"__rl": true,
"value": "1F72KQRyxYyysngWgjOpkZVtFOtISAFwt",
"mode": "list",
"cachedResultName": "Clinica - Pensando AI",
"cachedResultUrl": "https://drive.google.com/drive/folders/1F72KQRyxYyysngWgjOpkZVtFOtISAFwt"
}
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
220,
500
],
"id": "2940a71b-5557-4d8d-b15e-84d2d6234825",
"name": "Google Drive",
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
440,
500
],
"id": "a6158eca-3fe0-4e3e-bf31-b2278af5a579",
"name": "Google Drive1",
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
660,
500
],
"id": "9fd27f86-d112-468f-8375-230203ff48c7",
"name": "Loop Over Items"
},
{
"parameters": {
"mode": "insert",
"pineconeIndex": {
"__rl": true,
"value": "n8nyt",
"mode": "list",
"cachedResultName": "n8nyt"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1.1,
"position": [
920,
520
],
"id": "62a94981-05ae-40df-8bfe-ce3dbac27407",
"name": "Pinecone Vector Store",
"credentials": {
"pineconeApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
860,
700
],
"id": "860aa3b6-2dac-428b-b6c7-9483ef271319",
"name": "Embeddings OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"dataType": "binary",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1,
"position": [
1060,
740
],
"id": "5aba460c-8ebb-4b4b-aba4-1f641683a759",
"name": "Default Data Loader"
},
{
"parameters": {
"chunkOverlap": 100,
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"typeVersion": 1,
"position": [
1160,
960
],
"id": "97f06328-e485-446a-892c-f8b84a9e2909",
"name": "Recursive Character Text Splitter"
},
{
"parameters": {
"mode": "retrieve-as-tool",
"toolName": "dados_clinica",
"toolDescription": "chame essa tool quando for perguntado sobre tratamentos e sobre n\u00f3s",
"pineconeIndex": {
"__rl": true,
"value": "n8nyt",
"mode": "list",
"cachedResultName": "n8nyt"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1.1,
"position": [
5060,
360
],
"id": "7c71e5ab-008d-4ede-b2ed-9da7972f1585",
"name": "Pinecone Vector Store1",
"credentials": {
"pineconeApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
5100,
540
],
"id": "0c9bebc0-986b-4406-823f-31be643dd66b",
"name": "Embeddings OpenAI1",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
],
[
{
"node": "Google Sheets1",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets1": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
],
[
{
"node": "Evolution API",
"type": "main",
"index": 0
}
]
]
},
"Evolution API": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields1": {
"main": [
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"If1": {
"main": [
[
{
"node": "Redis",
"type": "main",
"index": 0
}
],
[
{
"node": "Redis1",
"type": "main",
"index": 0
}
]
]
},
"Redis": {
"main": [
[
{
"node": "Redis1",
"type": "main",
"index": 0
}
]
]
},
"Redis1": {
"main": [
[
{
"node": "If2",
"type": "main",
"index": 0
}
]
]
},
"If2": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "Edit Fields2",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields2": {
"main": [
[
{
"node": "Redis2",
"type": "main",
"index": 0
}
]
]
},
"Redis2": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Redis3",
"type": "main",
"index": 0
}
]
]
},
"Redis3": {
"main": [
[
{
"node": "Redis4",
"type": "main",
"index": 0
}
]
]
},
"Redis4": {
"main": [
[
{
"node": "Edit Fields3",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"MCP Client": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Evolution API1",
"type": "main",
"index": 0
}
]
]
},
"Redis Chat Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Edit Fields3": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Google Drive": {
"main": [
[
{
"node": "Google Drive1",
"type": "main",
"index": 0
}
]
]
},
"Google Drive1": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Pinecone Vector Store",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_document",
"index": 0
}
]
]
},
"Recursive Character Text Splitter": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Pinecone Vector Store": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Pinecone Vector Store1": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Embeddings OpenAI1": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"callerPolicy": "workflowsFromSameOwner"
},
"versionId": "ec232323-c645-4bcf-aa41-2dbdf0d66d92",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "lGv5vSG7D7dwyQj8",
"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.
evolutionApigoogleDriveOAuth2ApigoogleSheetsOAuth2ApiopenAiApipineconeApiredis
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Agente de Agendamento YT (V.2). Uses googleSheets, n8n-nodes-evolution-api, openAi, redis. Webhook trigger; 36 nodes.
Source: https://github.com/senaiapy/IA/blob/dee2e863a92473b40c171ee414b750d4a652f9ce/Templates/Agente_de_Agendamento_YT__V_2_.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.
Bread-Meat-Delivery. Uses lmChatOpenAi, agent, httpRequest, redis. Webhook trigger; 91 nodes.
Hi! I’m Amanda, a creator of intelligent automations using n8n and Make. I’ve been building AI-powered workflows for over 2 years, always focused on usability and innovation. This one here is very spe
HeyDinastia. Uses executeCommand, httpRequest, youTube, postgres. Webhook trigger; 66 nodes.
This workflow automates customer support across multiple channels (Email, Live Chat, WhatsApp, Slack, Discord) using AI-powered responses enhanced with Retrieval Augmented Generation (RAG) and your pr
This workflow implements a complete Voice AI Chatbot system for Wordress that integrates speech recognition, guardrails for safety, retrieval-augmented generation (RAG), Qdrant vector search, and audi