Skip to main content
Glama

Uazapi WhatsApp MCP Server

by pabloweyne
workflow-vcp-bilt-rentday.json4.33 kB
{ "name": "VCP Bilt Rent Day - Cron Mensal", "nodes": [ { "parameters": { "rule": { "interval": [ { "field": "cronExpression", "expression": "0 8 1 * *" } ] } }, "id": "cron", "name": "Dia 1 as 8h", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [240, 300] }, { "parameters": { "operation": "get", "key": "uazapi:vcp:bilt:config" }, "id": "redis-config", "name": "Config Bilt", "type": "n8n-nodes-base.redis", "typeVersion": 1, "position": [460, 300], "credentials": { "redis": { "id": "REDIS_CREDENTIAL_ID", "name": "Redis" } } }, { "parameters": { "jsCode": "const configRaw = $input.first().json?.value || '{}';\nlet config = {\n enabled: false,\n notify_telegram: true,\n notify_group: true,\n group_name: 'VCP - ALERTAS',\n reminder_message: 'BILT RENT DAY!\\n\\nHoje (dia 1) voce ganha 5x pontos em TODAS as compras com seu cartao Bilt!\\n\\nDicas:\\n- Use o cartao Bilt pra TUDO hoje\\n- Dining: 5x pontos (normalmente 2x)\\n- Compras: 5x pontos (normalmente 1x)\\n- Limite: 10.000 pontos bonus\\n\\nNao esqueca de usar seu Bilt hoje!'\n};\n\ntry {\n config = { ...config, ...JSON.parse(configRaw) };\n} catch(e) {}\n\nif (!config.enabled) return [];\n\nreturn { json: config };" }, "id": "check-enabled", "name": "Verificar Config", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [680, 300] }, { "parameters": { "method": "POST", "url": "=https://api.telegram.org/bot{{ $env.TELEGRAM_BOT_TOKEN }}/sendMessage", "sendBody": true, "specifyBody": "json", "jsonBody": "={ \"chat_id\": \"{{ $env.TELEGRAM_CHAT_ID }}\", \"text\": \"🏠 {{ $json.reminder_message }}\" }" }, "id": "telegram", "name": "Telegram", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [900, 240] }, { "parameters": { "conditions": { "options": { "leftValue": "", "typeValidation": "loose" }, "conditions": [ { "leftValue": "={{ $json.notify_group }}", "rightValue": true, "operator": { "type": "boolean", "operation": "equals" } } ] } }, "id": "if-group", "name": "Notificar Grupo?", "type": "n8n-nodes-base.if", "typeVersion": 2, "position": [900, 360] }, { "parameters": { "method": "POST", "url": "=https://api.uazapi.com/instances/{{ $env.UAZAPI_INSTANCE_ID }}/messages/send/text", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={ \"phone\": \"{{ $env.VCP_ALERTAS_GROUP_ID }}\", \"message\": \"🏠 {{ $json.reminder_message }}\" }" }, "id": "whatsapp-group", "name": "WhatsApp Grupo", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [1120, 300], "credentials": { "httpHeaderAuth": { "id": "UAZAPI_CREDENTIAL_ID", "name": "UAZAPI Auth" } } }, { "parameters": { "operation": "set", "key": "uazapi:vcp:bilt:config", "value": "={{ JSON.stringify({ ...$json, last_sent: new Date().toISOString() }) }}" }, "id": "update-last-sent", "name": "Atualizar Last Sent", "type": "n8n-nodes-base.redis", "typeVersion": 1, "position": [1340, 300], "credentials": { "redis": { "id": "REDIS_CREDENTIAL_ID", "name": "Redis" } } } ], "connections": { "Dia 1 as 8h": { "main": [[{ "node": "Config Bilt", "type": "main", "index": 0 }]] }, "Config Bilt": { "main": [[{ "node": "Verificar Config", "type": "main", "index": 0 }]] }, "Verificar Config": { "main": [[{ "node": "Telegram", "type": "main", "index": 0 }, { "node": "Notificar Grupo?", "type": "main", "index": 0 }]] }, "Telegram": { "main": [[]] }, "Notificar Grupo?": { "main": [[{ "node": "WhatsApp Grupo", "type": "main", "index": 0 }], []] }, "WhatsApp Grupo": { "main": [[{ "node": "Atualizar Last Sent", "type": "main", "index": 0 }]] } }, "settings": { "executionOrder": "v1" } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pabloweyne/uazapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server