A comprehensive lead generation system with embedded quiz, TCPA consent tracking, SMS verification, and automatic CRM integration.
Full consent tracking with IP, timestamp, and user agent capture
Twilio-powered phone verification with 6-digit codes
Automatic lead creation in Pipedrive after verification
User sees ad on Facebook/Instagram
Multi-step qualification form
Compliant lead capture
Phone number validation
"Your Trusty Scout verification code is: 123456. This code expires in 10 minutes. Reply STOP to opt out."
Automatic lead creation
After successful Pipedrive sync, the lead record is updated with pipedrivePersonId and pipedriveLeadId for future reference and tracking.
Ready for agent follow-up
Confirmation to lead
Lead in Pipedrive
Ready to contact
| Field | Type | Purpose |
|---|---|---|
| id | VARCHAR(36) | Primary key (nanoid) |
| fullName | VARCHAR(255) | Lead's full name |
| VARCHAR(320) | Email address | |
| phone | VARCHAR(20) | Phone number |
| age | INT | Age from quiz |
| coverageAmount | VARCHAR(50) | Desired coverage range |
| quizResponses | TEXT | JSON of all quiz answers |
| tcpaConsent | INT | 1 = consented, 0 = not |
| tcpaConsentTimestamp | TIMESTAMP | When consent was given |
| tcpaConsentIp | VARCHAR(45) | User's IP address |
| tcpaConsentUserAgent | TEXT | Browser/device info |
| smsVerificationCode | VARCHAR(6) | 6-digit verification code |
| smsVerificationSentAt | TIMESTAMP | When code was sent |
| smsVerificationExpiresAt | TIMESTAMP | Code expiration (10 min) |
| smsVerified | INT | 1 = verified, 0 = not |
| smsVerifiedAt | TIMESTAMP | When phone was verified |
| pipedrivePersonId | INT | Pipedrive Person ID |
| pipedriveLeadId | VARCHAR(36) | Pipedrive Lead ID |
| createdAt | TIMESTAMP | Record creation time |
| updatedAt | TIMESTAMP | Last update time |
The complete funnel is built and tested. Add your Pipedrive and Twilio credentials to go live.