AutomationFlowsMarketing & Ads › Melano Inc - Lead Capture

Melano Inc - Lead Capture

MELANO INC - Lead Capture. Uses supabase, whatsApp, httpRequest. Webhook trigger; 7 nodes.

Webhook trigger★★★★☆ complexity7 nodesSupabaseWhatsAppHTTP Request
Marketing & Ads Trigger: Webhook Nodes: 7 Complexity: ★★★★☆ Added:

This workflow follows the HTTP Request → Supabase 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 →

Download .json
{
  "name": "MELANO INC - Lead Capture",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "melano_lead",
        "responseMode": "responseNode",
        "options": {
          "cors": {
            "allowedOrigins": "*"
          }
        }
      },
      "id": "webhook-node",
      "name": "Webhook - Form Submit",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "name",
              "value": "={{ $json.name }}"
            },
            {
              "name": "email",
              "value": "={{ $json.email }}"
            },
            {
              "name": "phone",
              "value": "={{ $json.phone }}"
            },
            {
              "name": "budget",
              "value": "={{ $json.budget }}"
            },
            {
              "name": "urgency",
              "value": "={{ $json.urgency }}"
            },
            {
              "name": "message",
              "value": "={{ $json.message }}"
            },
            {
              "name": "lang",
              "value": "={{ $json.language || 'es' }}"
            },
            {
              "name": "source",
              "value": "={{ $json.source || 'landing_page' }}"
            },
            {
              "name": "user_agent",
              "value": "={{ $json.user_agent }}"
            },
            {
              "name": "referrer",
              "value": "={{ $json.referrer }}"
            },
            {
              "name": "url",
              "value": "={{ $json.url }}"
            },
            {
              "name": "timestamp",
              "value": "={{ $json.timestamp }}"
            }
          ]
        },
        "options": {}
      },
      "id": "data-transform",
      "name": "Transform Data",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "operation": "insert",
        "schema": {
          "__rl": true,
          "value": "public",
          "mode": "list"
        },
        "table": {
          "__rl": true,
          "value": "crm_clientes",
          "mode": "list"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "values": {
            "name": "={{ $json.name }}",
            "email": "={{ $json.email }}",
            "phone": "={{ $json.phone }}",
            "budget": "={{ $json.budget }}",
            "urgency": "={{ $json.urgency }}",
            "message": "={{ $json.message }}",
            "lang": "={{ $json.lang }}",
            "source": "={{ $json.source }}",
            "user_agent": "={{ $json.user_agent }}",
            "referrer": "={{ $json.referrer }}",
            "url": "={{ $json.url }}"
          }
        }
      },
      "id": "supabase-insert",
      "name": "Insert to Supabase",
      "type": "n8n-nodes-base.supabase",
      "typeVersion": 1,
      "position": [
        680,
        300
      ],
      "credentials": {
        "supabaseApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "phoneNumberId": "={{ $vars.WABA_PHONE_NUMBER_ID }}",
        "to": "={{ $vars.OWNER_WHATSAPP }}",
        "messageType": "text",
        "message": "\ud83d\ude80 *NUEVO LEAD - MELANO INC*\n\n\ud83d\udc64 *Cliente:* {{ $('Transform Data').item.json.name }}\n\ud83d\udce7 *Email:* {{ $('Transform Data').item.json.email }}\n\ud83d\udcf1 *WhatsApp:* {{ $('Transform Data').item.json.phone }}\n\n\ud83d\udcb0 *Presupuesto:* {{ $('Transform Data').item.json.budget }}\n\u23f0 *Urgencia:* {{ $('Transform Data').item.json.urgency }}\n\ud83c\udf10 *Idioma:* {{ $('Transform Data').item.json.lang }}\n\n\ud83d\udcdd *Mensaje:*\n{{ $('Transform Data').item.json.message }}\n\n---\n\ud83d\udcca *Fuente:* {{ $('Transform Data').item.json.source }}\n\ud83d\udd17 *URL:* {{ $('Transform Data').item.json.url }}\n\u23f1\ufe0f *Timestamp:* {{ $('Transform Data').item.json.timestamp }}"
      },
      "id": "whatsapp-notification",
      "name": "WhatsApp Notification",
      "type": "n8n-nodes-base.whatsApp",
      "typeVersion": 1,
      "position": [
        680,
        120
      ],
      "credentials": {
        "whatsAppApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://graph.facebook.com/v20.0/{{ $vars.WABA_PHONE_NUMBER_ID }}/messages",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer {{ $vars.WABA_TOKEN }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "contentType": "json",
        "body": {
          "messaging_product": "whatsapp",
          "to": "={{ $('Transform Data').item.json.phone.replace(/[^0-9+]/g, '') }}",
          "type": "text",
          "text": {
            "body": "\u00a1Hola {{ $('Transform Data').item.json.name }}! \ud83d\udc4b\n\nGracias por tu inter\u00e9s en MELANO INC. Recibimos tu solicitud de an\u00e1lisis gratuito.\n\n\ud83e\udd16 En menos de 2 horas recibir\u00e1s:\n\u2705 An\u00e1lisis personalizado de tu negocio\n\u2705 Estrategia de automatizaci\u00f3n\n\u2705 Propuesta de ROI proyectado\n\n\ud83d\udcac Te contactar\u00e9 directamente para agendar una llamada estrat\u00e9gica.\n\n---\nBruno A. Melano\nCEO & Founder | MELANO INC\n\ud83d\udce7 contacto@brunomelano.com"
          }
        }
      },
      "id": "whatsapp-client",
      "name": "WhatsApp to Client",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        900,
        180
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": {
          "success": true,
          "message": "Lead captured successfully",
          "id": "={{ $('Insert to Supabase').item.json.id }}",
          "timestamp": "={{ new Date().toISOString() }}"
        }
      },
      "id": "webhook-response",
      "name": "Success Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        900,
        300
      ]
    },
    {
      "parameters": {
        "operation": "insert",
        "schema": {
          "__rl": true,
          "value": "public",
          "mode": "list"
        },
        "table": {
          "__rl": true,
          "value": "crm_interactions",
          "mode": "list"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "values": {
            "client_id": "={{ $('Insert to Supabase').item.json.id }}",
            "type": "whatsapp",
            "content": "Welcome message sent automatically",
            "status": "enviado"
          }
        }
      },
      "id": "log-interaction",
      "name": "Log WhatsApp Interaction",
      "type": "n8n-nodes-base.supabase",
      "typeVersion": 1,
      "position": [
        1120,
        180
      ],
      "credentials": {
        "supabaseApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook - Form Submit": {
      "main": [
        [
          {
            "node": "Transform Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transform Data": {
      "main": [
        [
          {
            "node": "Insert to Supabase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert to Supabase": {
      "main": [
        [
          {
            "node": "WhatsApp Notification",
            "type": "main",
            "index": 0
          },
          {
            "node": "WhatsApp to Client",
            "type": "main",
            "index": 0
          },
          {
            "node": "Success Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp to Client": {
      "main": [
        [
          {
            "node": "Log WhatsApp Interaction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "melano-lead-capture",
  "tags": [
    {
      "createdAt": "2025-01-27T10:00:00.000Z",
      "updatedAt": "2025-01-27T10:00:00.000Z",
      "id": "melano-tag",
      "name": "MELANO INC"
    }
  ]
}

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.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

MELANO INC - Lead Capture. Uses supabase, whatsApp, httpRequest. Webhook trigger; 7 nodes.

Source: https://github.com/MELANOINC/MELANOINC/blob/c3eb02ae79d717b11cc571e89ba5c057f112ed77/n8n/lead_capture.json — original creator credit. Request a take-down →

More Marketing & Ads workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Marketing & Ads

Ad agencies needing automated lead capture. Sales teams fighting fraud and scoring leads. B2B SaaS companies nurturing prospects. Marketing pros boosting sales pipelines. Captures leads via Webhook fr

HTTP Request, Google Sheets, Slack +2
Marketing & Ads

Store leads in a SQL Server database via REST API with automatic scoring and Slack notifications.

HTTP Request, Slack, Error Trigger
Marketing & Ads

Instantly reach new leads on WhatsApp when they submit a form (Typeform, JotForm, Google Forms, or any webhook-enabled form) using MoltFlow (https://molt.waiflow.app). Leads are also logged to Google

HTTP Request, Google Sheets
Marketing & Ads

Business owners, marketers, and web developers who want to instantly respond to website contact form submissions and maintain organized lead records without manual monitoring.

WhatsApp, Google Sheets
Marketing & Ads

This LinkedIn automation workflow monitors post comments for specific trigger words and automatically sends direct messages with lead magnets to engaged users. The system checks connection status, han

HTTP Request, Noco Db, Form Trigger