• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
andiebuk

andiebuk

Leadmagmagic

Public
Like
Leadmagmagic
Home
Code
4
backend
1
shared
1
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/27/2025
Viewing readonly version of main branch: v5
View latest version
README.md

PDF Lead Magnet Generator

An AI-powered application that analyzes PDF products and generates compelling lead magnets to drive sales.

Features

  • 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

How It Works

  1. Upload your product PDF (book, course, guide, etc.)
  2. Provide your product purchase link
  3. AI analyzes your content and identifies key value propositions
  4. Generates a compelling lead magnet with strategic excerpts and insights
  5. Includes strong call-to-action directing to your full product

Tech Stack

  • 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

Project Structure

├── 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

Environment Variables

  • TOGETHER_API_KEY: Your Together AI API key

Usage

  1. Set your Together AI API key in environment variables
  2. Upload your product PDF
  3. Enter your product purchase link
  4. Let AI analyze and generate your lead magnet
  5. Download and distribute your new lead magnet
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.