Public
Like
Leadmagmagic
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v28View latest version
An AI-powered application that analyzes PDF products and generates compelling lead magnets to drive sales.
- PDF Upload & Analysis: Upload your full product PDF for AI analysis
- Smart Lead Magnet Generation: AI creates targeted 3-5 page lead magnets based on your content
- Customizable CTAs: Add your product link for seamless conversion
- Professional Output: Generate polished lead magnets ready for distribution
- Upload your product PDF (book, course, guide, etc.)
- Provide your product purchase link
- AI analyzes your content and identifies key value propositions
- Generates a compelling lead magnet with strategic excerpts and insights
- Includes strong call-to-action directing to your full product
- Backend: Hono.js API with Together AI integration
- Frontend: React with TypeScript
- AI: Together AI for content analysis and generation
- Storage: Val Town Blob for file handling
- Styling: TailwindCSS
├── backend/
│ ├── index.ts # Main API server
│ ├── routes/
│ │ ├── upload.ts # PDF upload handling
│ │ ├── analyze.ts # AI content analysis
│ │ └── generate.ts # Lead magnet generation
│ └── utils/
│ ├── pdf.ts # PDF processing utilities
│ └── ai.ts # Together AI integration
├── frontend/
│ ├── index.html # Main application
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── Upload.tsx # File upload interface
│ │ ├── Analysis.tsx # Content analysis display
│ │ └── Generator.tsx # Lead magnet generator
│ └── style.css # Custom styles
└── shared/
└── types.ts # Shared TypeScript types
TOGETHER_API_KEY: Your Together AI API key
- Set your Together AI API key in environment variables
- Upload your product PDF
- Enter your product purchase link
- Let AI analyze and generate your lead magnet
- Download and distribute your new lead magnet