This prompt is longer because the tool requires more functionality — email verification, dynamic PDF generation, lead capture, and an upsell flow:
Build me a personalized PDF prompt book generator as a lead generation tool. Here's what it should do:
Core Concept: A single-page web app where users fill out a form about themselves, verify their email, and receive a personalized PDF prompt book tailored to their answers.
Form Fields (all dropdowns):
Primary Role (e.g., Content Creator, Data Analyst, Researcher, Marketing Professional, Developer/Engineer, Business Analyst, Product Manager, Consultant, Student, Other)
Industry (e.g., Technology, Healthcare, Finance, E-commerce, Education, Marketing & Advertising, Consulting, Media & Publishing, Research & Development, Other)
Main Goal/Use Case (e.g., Content Analysis & Summarization, Research & Data Analysis, Code Review & Documentation, Business Intelligence, Academic Research, Market Research, Content Creation Support, Process Optimization, Other)
Experience Level (e.g., Beginner 0-6 months, Some Experience 6-12 months, Regular User 1-2 years, Advanced User 2+ years)
Email Address with verification
Email Verification Flow:
User enters email, validated in real-time (block disposable email domains like mailinator, tempmail, etc.)
"Send Verification Code" button sends a 6-digit code via EmailJS
User enters the code to verify (mobile-friendly OTP input on small screens)
Only after verification can they generate the PDF
PDF Generation (using jsPDF):
Cover page with gradient design and title
4 content pages, each with a prompt category (Document Analysis, Content Summarization, Research Analysis, Web Content Analysis)
Each category has 10 prompts dynamically personalized using the user's role, industry, goal, and experience level
Back cover page with branding
File downloads automatically as "[Role]-Prompt-Book.pdf"
Lead Capture:
After PDF download, send lead data (email, role, industry, goal, experience, country via ipapi.co, UTM parameters) to a second EmailJS template
Track UTM parameters and referrer from the URL on page load
Post-Download Upsell:
Show a dialog 1 second after download with a special offer
Include a unique discount code (generated per session)
Link to your product/course page with UTM tracking
Design:
Dark gradient background (slate-900 to blue-900)
Two-column layout on desktop: form on left, live preview on right
Single column on mobile with step progress indicator
Loading overlay with animated icons and progress messages during PDF generation
Use shadcn/ui components throughout
Tech: React, TypeScript, Tailwind CSS, jsPDF, EmailJS (@emailjs/browser), shadcn/ui, Zod for email validation
Important: Make the branding generic/customizable. Use placeholder text like "YOUR BRAND" and "AI Prompt Book" so the user can easily swap in their own brand name, colors, cover images, and product links.