verifiedv2.4.0 Release

Integrate LeadFlowHQ with Your Website

Seamlessly connect LeadFlowHQ AI to your existing workflow. Choose between our high-performance embed script for zero-code tracking or our robust Webhook API for custom server-side logic.

integration_instructions

Ready to scale?

Trusted by 2,000+ developer teams worldwide.

Choose Your Integration Method

data_object

Embed Script

The fastest way to get started. Just copy and paste a single line of JavaScript into your <head> tag. Automatically captures leads and tracks user behavior.

  • check_circleZero-code setup
  • check_circleAutomatic form detection
hub

Webhook API

For advanced workflows. Send lead data directly from your server to our secure endpoints. Full control over data validation and enrichment processes.

  • check_circleServer-to-server security
  • check_circleReal-time data sync

javascriptEmbed Script Implementation

<script>
  window.leadFlowHQConfig = {
    apiKey: 'YOUR_PUBLIC_KEY',
    autoCapture: true,
    debug: false
  };
</script>
<script async src=https://cdn.leadflowhq.pro/sdk/v2/pilot.min.js></script>

terminalWebhook API Endpoint

POSThttps://leadflowhq.vercel.app/api/webhooks/lead-ingest
// Headers: x-leadflowhq-key (required), Content-Type: application/json

const response = await fetch('https://leadflowhq.vercel.app/api/webhooks/lead-ingest', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-leadflowhq-key': 'YOUR_WEBHOOK_API_KEY'
  },
  body: JSON.stringify({
    name: 'John Doe',
    phone: '+1234567890',
    email: 'john@example.com',
    message: 'Interested in your service'
  })
});