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": "Consent",
"nodes": [
{
"parameters": {
"content": "\ud83d\udd10 Microsservi\u00e7o 1: Fluxo de Consentimento (RF01)\nPadr\u00e3o: Event-Driven / FAPI Simulation\n\nEste workflow atua como a porta de entrada do Open Finance.\n1. Recebe a inten\u00e7\u00e3o de compartilhamento de dados do cliente.\n2. Gera um payload simulando o padr\u00e3o FAPI (Financial-grade API).\n3. Armazena o estado \"AWAITING_AUTHORISATION\" no Redis com um TTL de 5 minutos (Mem\u00f3ria de curto prazo para seguran\u00e7a).\n4. Dispara de forma ass\u00edncrona o Motor de Processamento (Medallion).",
"height": 208,
"width": 1046,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-160,
-288
],
"id": "2cea2259-6ad2-4b23-9aaa-34e41da96f07",
"name": "Sticky Note"
},
{
"parameters": {
"jsCode": "// Simula\u00e7\u00e3o do payload de cria\u00e7\u00e3o de Intent de Consentimento\nreturn [\n {\n json: {\n \"data\": {\n \"consentId\": \"urn:banco:consent:9999-8888-7777\",\n \"creationDateTime\": new Date().toISOString(),\n \"status\": \"AWAITING_AUTHORISATION\",\n \"expirationDateTime\": \"2026-12-31T23:59:59Z\"\n },\n \"meta\": {\n \"totalRecords\": 1,\n \"totalPages\": 1\n }\n }\n }\n];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
80,
-16
],
"id": "05ef3ef5-aae1-4c45-8974-a557dd897d8c",
"name": "Code in JavaScript"
},
{
"parameters": {
"operation": "set",
"key": "consent_sess:{{ $json.data.consentId }}",
"value": "={{ $json.data.status }}",
"expire": true,
"ttl": 300
},
"type": "n8n-nodes-base.redis",
"typeVersion": 1,
"position": [
304,
-16
],
"id": "c16a6de9-98dc-455e-8471-55965c4786de",
"name": "Redis",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-144,
-16
],
"id": "147b8937-62e2-4c50-bd07-d5b5bddcd8f5",
"name": "When clicking \u2018Execute workflow\u2019"
},
{
"parameters": {
"workflowId": {
"__rl": true,
"value": "SGMCcgT3a5Ggi8JP",
"mode": "list",
"cachedResultUrl": "/workflow/SGMCcgT3a5Ggi8JP",
"cachedResultName": "Medallion"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {},
"matchingColumns": [],
"schema": [],
"attemptToConvertTypes": false,
"convertFieldsToString": true
},
"options": {}
},
"type": "n8n-nodes-base.executeWorkflow",
"typeVersion": 1.3,
"position": [
512,
-16
],
"id": "960e01d6-7499-42c3-bd85-61c83096c446",
"name": "Call 'Medallion'"
}
],
"connections": {
"Code in JavaScript": {
"main": [
[
{
"node": "Redis",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Execute workflow\u2019": {
"main": [
[
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Redis": {
"main": [
[
{
"node": "Call 'Medallion'",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"availableInMCP": false
},
"versionId": "fa31fc0e-195d-42a4-a220-772a1dff2c15",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "blpz6FnKsJ6t8bdQ",
"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.
redis
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Consent. Uses redis. Event-driven trigger; 5 nodes.
Source: https://github.com/Apolo442/Open-Finance-ETL/blob/f68288e35424dcbff31e17adfea84903550b7c01/workflows/Consent.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.
Agendamiento. Uses n8n-nodes-evolution-api, redis, dataTable, executeWorkflowTrigger. Event-driven trigger; 60 nodes.
Prevent concurrent workflow runs using Redis. Uses executeWorkflowTrigger, manualTrigger, stickyNote, executeWorkflow. Event-driven trigger; 43 nodes.
This workflow sets a small "lock" value in Redis so that only one copy of a long job can run at the same time. If another trigger fires while the job is still busy, the workflow sees the lock, stops e
This implementation aggregates incoming data into a Redis list from potentially concurrent workflow executions. It buffers the data for a set period before a single execution retrieves and processes t
Wait Redis. Uses manualTrigger, noOp, informationExtractor, lmChatOpenAi. Event-driven trigger; 30 nodes.