π¦ Release v1.0.0 β Lead-to-WhatsApp Automation
β¨ Overview
This is the first stable release of Lead-to-WhatsApp Automation, a zero-maintenance Cloudflare Worker designed to instantly capture Facebook/Instagram Lead Ads and initiate a human-like WhatsApp conversation flow β including optional email onboarding, delayed message sending, and intelligent follow-ups.
β Key Features
-
Webhook handshake for Meta (Facebook/Instagram) Lead Ads
-
Lead parsing and phone normalization from Graph API
-
Welcome email dispatch via Resend
-
Delayed WhatsApp greeting using template lead_benvenuto (30β90min after form submission)
-
24h & 15d follow-up logic if no user response
-
Automatic clean-up of expired leads from KV store
-
Bidirectional message relay with contextual awareness
-
24h window compliance for WhatsApp Cloud API
-
Failure notification to admin if WhatsApp delivery fails
-
Fully configurable via Wrangler secrets
π§ͺ How to Test
-
Use the Meta Lead Ads Testing Tool
-
Confirm welcome email is received (if email field exists)
-
Expect WhatsApp template message within ~30β90 min
-
Respond via WhatsApp and observe admin notification
-
Do not respond and validate follow-ups at:
-
+24h (default: 19:00 UTC+3)
-
+15 days
βοΈ Deployment Notes
-
Requires Cloudflare account with Workers enabled
-
Meta developer app with correct permissions and tokens
-
WhatsApp templates approved and configured
-
wrangler.toml + secrets ready
See README for full setup instructions.
π Known Limitations
-
Only works with WhatsApp-enabled phone numbers
-
Timezone-sensitive follow-up scheduling (adjust FOLLOWUP_HOUR as needed)
-
Does not currently support dynamic form mapping β field names must match (full_name, email, phone_number)
π§ What's Next
-
π Auto-refresh Meta Page token (optional cron job)
-
π Dashboard for lead status & response analytics
-
π¬ Multiple message branches based on user tags or lead source
-
π CRM/webhook integrations
Β© 2025 GM Vassago β Developed by Cristiano Mazzella
Licensed under MIT.