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": "SubAgente FInanceiro",
"nodes": [
{
"parameters": {
"workflowInputs": {
"values": [
{
"name": "mensagem"
},
{
"name": "ChatID"
}
]
}
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "9ba932aa-d778-49e9-ba26-7ec332c5c3c6",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.mensagem }}",
"options": {
"systemMessage": "=# Identidade\nVoc\u00ea \u00e9 a Bia, Analista Financeira da Hashtag Capital.\nSeu tom \u00e9: Emp\u00e1tico, Colaborativo e Atencioso. Escreva como um parceiro de neg\u00f3cios que quer ajudar, focando na solu\u00e7\u00e3o e n\u00e3o apenas na cobran\u00e7a/regra.\n\n# Contexto Temporal\nA data e hora exata de hoje \u00e9: {{ $now }}.\nUse para verificar vencimentos de boletos.\n\n# Sua Ferramenta Principal\nVoc\u00ea tem acesso \u00e0 tool `consultar_status_cliente`.\nUse-a sempre que o aluno perguntar sobre Pagamentos em aberto, boletos, segunda via.\n\n# Instru\u00e7\u00f5es de Opera\u00e7\u00e3o\n1. Coleta de dados. Pe\u00e7a o nome e e-mail do cliente para confer\u00eancia\n2. Consulta: Chame a tool enviando o E-mail do cliente.\n3. An\u00e1lise do Retorno:\n - Se \"Sem Pend\u00eancias\": \"Sua conta est\u00e1 regular e sem pend\u00eancias financeiras.\"\n - Se \"Pendente\": \"Aqui est\u00e1 o link para pagamento da fatura\"\n - Se o cliente quiser a segunda via (independente de regularizado ou pendente): \u201cAqui est\u00e1 o link da 2a via do seu boleto\u201d\n\n# Regra de Seguran\u00e7a\nNunca invente informa\u00e7\u00f5es. Baseie-se estritamente no retorno da ferramenta.\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 SUPORTE T\u00c9CNICO (App/D\u00favidas) ou CS (Investir/Agendar), responda apenas:\n##RESET##"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
208,
0
],
"id": "6a74c3a3-4576-4f40-9982-dbea4a1ae9e4",
"name": "AI Agent"
},
{
"parameters": {
"modelName": "models/gemini-2.5-flash-lite",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1.1,
"position": [
144,
192
],
"id": "6753bf34-bd44-40ea-9614-4dcfc0e14949",
"name": "Google Gemini Chat Model",
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $json.ChatID }}",
"contextWindowLength": 50
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.4,
"position": [
288,
304
],
"id": "4ccff538-2d60-4eeb-a580-819785eba4bb",
"name": "Simple Memory"
},
{
"parameters": {
"documentId": {
"__rl": true,
"value": "YOUR_SPREADSHEET_ID",
"mode": "list",
"cachedResultName": "atendimento_clientes",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/YOUR_SPREADSHEET_ID/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": 952327553,
"mode": "list",
"cachedResultName": "financeiro",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/YOUR_SPREADSHEET_ID/edit#gid=952327553"
},
"options": {}
},
"type": "n8n-nodes-base.googleSheetsTool",
"typeVersion": 4.7,
"position": [
432,
176
],
"id": "9f329580-b972-491b-99de-9e6bcbcb03ec",
"name": "Get row(s) in sheet in Google Sheets",
"credentials": {
"googleSheetsOAuth2Api": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Get row(s) in sheet in Google Sheets": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
},
"versionId": "3c9086ec-7bd8-4522-9836-ee598a392782",
"meta": {
"templateCredsSetupCompleted": true
},
"nodeGroups": [],
"id": "rhEitn6sk3Bb7yGq",
"tags": [
{
"updatedAt": "2026-06-09T23:52:15.221Z",
"createdAt": "2026-06-09T23:52:15.221Z",
"id": "B4ukWVnwIRin4fDM",
"name": "Hashtag"
}
]
}
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.
googlePalmApigoogleSheetsOAuth2Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
SubAgente FInanceiro. Uses executeWorkflowTrigger, agent, lmChatGoogleGemini, memoryBufferWindow. Event-driven trigger; 5 nodes.
Source: https://github.com/rauldsordi/n8n-financial-multiagent/blob/main/agent-financial.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.
Gabarito SubAgente Financeiro Aula 3. Uses executeWorkflowTrigger, agent, lmChatGoogleGemini, memoryBufferWindow. Event-driven trigger; 5 nodes.
> AI-powered nutrition assistant for Telegram — log meals, set goals, and get personalized daily reports with Google Sheets integration.
This n8n workflow template creates an efficient data analysis system that uses Google Gemini AI to interpret user questions about spreadsheet data and processes them through a specialized sub-workflow
This is a fully automated, end-to-end pipeline designed to solve the challenge of inconsistent and low-quality lead data from large-scale scraping operations. The system programmatically fetches raw l
Finance Agent. Uses agent, memoryBufferWindow, executeWorkflowTrigger, dataTableTool. Event-driven trigger; 11 nodes.