Created
July 14, 2025 14:54
-
-
Save aleckyann/9d07d96387be2ae3ad6172cb8cc034da to your computer and use it in GitHub Desktop.
Workflow de feliz aniversario
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 0, | |
| -1080 | |
| ], | |
| "id": "6707826f-8eaf-4b2c-a0cb-9a0196440938", | |
| "name": "Busca aniversariantes" | |
| }, | |
| { | |
| "parameters": { | |
| "resource": "assistant", | |
| "operation": "create", | |
| "modelId": { | |
| "__rl": true, | |
| "mode": "list", | |
| "value": "" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.8, | |
| "position": [ | |
| 240, | |
| -860 | |
| ], | |
| "id": "aa7d5426-ca2d-45a3-a0d7-c9e33a02ff6f", | |
| "name": "Cria comunicação personalizada", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "GWl1Vgoe0AiikkOq", | |
| "name": "OpenAi account 3" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "send", | |
| "additionalFields": {} | |
| }, | |
| "type": "n8n-nodes-base.whatsApp", | |
| "typeVersion": 1, | |
| "position": [ | |
| 460, | |
| -860 | |
| ], | |
| "id": "087038e0-5f97-4f18-b8fe-e47f2b68264d", | |
| "name": "Envia felicitação", | |
| "webhookId": "03846cbb-5caf-4ef8-bff5-567ee74ec319" | |
| }, | |
| { | |
| "parameters": {}, | |
| "type": "n8n-nodes-base.supabase", | |
| "typeVersion": 1, | |
| "position": [ | |
| 460, | |
| -1080 | |
| ], | |
| "id": "862812cc-30e1-4425-a49a-3cc444163b5b", | |
| "name": "Registra aumento de velocidade por X tempo", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "jw2H44zjIBTbYWsQ", | |
| "name": "Supabase account 2" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "rule": { | |
| "interval": [ | |
| {} | |
| ] | |
| } | |
| }, | |
| "type": "n8n-nodes-base.scheduleTrigger", | |
| "typeVersion": 1.2, | |
| "position": [ | |
| -300, | |
| -640 | |
| ], | |
| "id": "b63d2e2c-04b8-48f9-baf5-0072c7d44382", | |
| "name": "Busca velocidades dobradas para reverter" | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 240, | |
| -1080 | |
| ], | |
| "id": "f253dab4-8cd6-4f77-8c34-2b38bba6ef12", | |
| "name": "Dobra velocidade do cliente no IXC" | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 460, | |
| -660 | |
| ], | |
| "id": "01ac35fb-126a-4155-8b9c-425265208d09", | |
| "name": "Reverte velocidade do cliente no IXC" | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "get" | |
| }, | |
| "type": "n8n-nodes-base.supabase", | |
| "typeVersion": 1, | |
| "position": [ | |
| 240, | |
| -660 | |
| ], | |
| "id": "77793a5f-2529-4876-bb31-efb167a3e913", | |
| "name": "Busca clientes com degustação vencida", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "jw2H44zjIBTbYWsQ", | |
| "name": "Supabase account 2" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 240, | |
| -440 | |
| ], | |
| "id": "6920d6d5-dae4-40f9-9275-cab1dc53939e", | |
| "name": "Busca perfil de uso da internet ultimos 60 dias" | |
| }, | |
| { | |
| "parameters": { | |
| "resource": "assistant", | |
| "operation": "create", | |
| "modelId": { | |
| "__rl": true, | |
| "mode": "list", | |
| "value": "" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.8, | |
| "position": [ | |
| 460, | |
| -440 | |
| ], | |
| "id": "ee4f431e-a370-43c2-870c-7c9b062637e5", | |
| "name": "Cria oferta personalizada", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "GWl1Vgoe0AiikkOq", | |
| "name": "OpenAi account 3" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "sendAndWait", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.whatsApp", | |
| "typeVersion": 1, | |
| "position": [ | |
| 240, | |
| -220 | |
| ], | |
| "id": "523a14d3-a810-4c58-b884-f4e8617bc5a8", | |
| "name": "Oferece opção de manter dobro da velocidade", | |
| "webhookId": "b2dbd391-92b2-446f-a288-dffed5841ccc" | |
| }, | |
| { | |
| "parameters": { | |
| "conditions": { | |
| "options": { | |
| "caseSensitive": true, | |
| "leftValue": "", | |
| "typeValidation": "strict", | |
| "version": 2 | |
| }, | |
| "conditions": [ | |
| { | |
| "id": "8b0c393a-107f-4613-8c98-ec601bbb5a74", | |
| "leftValue": "", | |
| "rightValue": "", | |
| "operator": { | |
| "type": "string", | |
| "operation": "equals", | |
| "name": "filter.operator.equals" | |
| } | |
| } | |
| ], | |
| "combinator": "and" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.if", | |
| "typeVersion": 2.2, | |
| "position": [ | |
| 460, | |
| -220 | |
| ], | |
| "id": "3a64c423-2553-41d7-9e28-08941a274d72", | |
| "name": "Verifica se cliente aceitou" | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "send", | |
| "additionalFields": {} | |
| }, | |
| "type": "n8n-nodes-base.whatsApp", | |
| "typeVersion": 1, | |
| "position": [ | |
| 660, | |
| -40 | |
| ], | |
| "id": "537c9999-8805-4529-b2b5-5d3a57ba91b6", | |
| "name": "Agradece", | |
| "webhookId": "13cd3801-240d-4aff-b7ae-9db84de7a0a9" | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "send", | |
| "additionalFields": {} | |
| }, | |
| "type": "n8n-nodes-base.whatsApp", | |
| "typeVersion": 1, | |
| "position": [ | |
| 660, | |
| -240 | |
| ], | |
| "id": "41e3bdaa-b7df-44c7-b5a3-dc2e21ddc9da", | |
| "name": "Agradece e informa", | |
| "webhookId": "13cd3801-240d-4aff-b7ae-9db84de7a0a9" | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 860, | |
| -240 | |
| ], | |
| "id": "d11e72ad-ba5f-4ac3-aaaa-a1665a07af7c", | |
| "name": "Abre OS de mudança de plano" | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 1080, | |
| -240 | |
| ], | |
| "id": "b318f683-ca5c-4f6e-9d59-777691f833aa", | |
| "name": "Muda plano e faturamento do cliente" | |
| } | |
| ], | |
| "connections": { | |
| "Busca aniversariantes": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Dobra velocidade do cliente no IXC", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Cria comunicação personalizada": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Envia felicitação", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Registra aumento de velocidade por X tempo": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Cria comunicação personalizada", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Busca velocidades dobradas para reverter": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Busca clientes com degustação vencida", | |
| "type": "main", | |
| "index": 0 | |
| }, | |
| { | |
| "node": "Busca aniversariantes", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Dobra velocidade do cliente no IXC": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Registra aumento de velocidade por X tempo", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Reverte velocidade do cliente no IXC": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Busca perfil de uso da internet ultimos 60 dias", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Busca clientes com degustação vencida": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Reverte velocidade do cliente no IXC", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Busca perfil de uso da internet ultimos 60 dias": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Cria oferta personalizada", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Cria oferta personalizada": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Oferece opção de manter dobro da velocidade", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Oferece opção de manter dobro da velocidade": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Verifica se cliente aceitou", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Verifica se cliente aceitou": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Agradece e informa", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ], | |
| [ | |
| { | |
| "node": "Agradece", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Agradece e informa": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Abre OS de mudança de plano", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Abre OS de mudança de plano": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Muda plano e faturamento do cliente", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Muda plano e faturamento do cliente": { | |
| "main": [ | |
| [] | |
| ] | |
| } | |
| }, | |
| "pinData": {}, | |
| "meta": { | |
| "instanceId": "2813f888d4bb76de0af51702ef7f1602e5aea8077c1e894a59196ff5c1dfa374" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment