End-to-end flow: create Instagram lead ads, capture leads automatically, and route them into your Quantum CRM & Admin Dashboard.
Instagram Lead Form Ads capture user info (name, email, phone) without leaving Instagram. Meta sends this data to your webhook → Cloud Function writes to Firestore → Admin & Quantum show it instantly.
Before creating ads, ensure your Meta Business infrastructure is ready:
Step-by-step in Meta Ads Manager:
IG_LeadGen_Mar2026/images/ad-creatives/instagram-lead-ad.html — open in browser, screenshot at 1080×1080To receive leads automatically (instead of manually downloading CSVs), set up a webhook:
Add this to functions/index.js:
pages_manage_ads, leads_retrieval, pages_show_list, pages_read_engagementleadgenhttps://asia-south1-dynamics-69.cloudfunctions.net/instagramLeadWebhookMETA_VERIFY_TOKENX-Hub-Signature-256 header using your App Secret to prevent spoofed webhook calls.
Once the webhook writes to the inquiries collection, leads appear automatically in Admin:
instagramTo add a separate view in Admin, add a filter/tab that queries:
Or query the instagramLeads collection for richer data (includes form ID, leadgen ID, raw fields).
For client-facing Quantum dashboards, Instagram leads flow through the same pipeline:
inquiries → Admin converts to ProjectclientProfiles document from the Instagram lead data so the lead shows in Quantum immediatelyThis creates a lead profile in Quantum instantly — no manual data entry needed.
firebase deploy --only functions:instagramLeadWebhookinstagramLeads and inquiries