Lee Foot

Page Intent Classifier

Classify what each page is for and the action a visitor is meant to take, using GPT and eight categories.

Launch the app → View the source

#about

Labels each page with its purpose, the action a visitor is expected to take and one of eight categories: signup, purchase, browse, learn, contact, compare, download or other.

Pages are fetched, converted to plain text with html2text and cut to a character limit (default 3,000).

Classification runs on GPT Luna by default, or GPT Terra.

Pages are fetched as raw HTML, so content rendered by JavaScript is not seen.

Streamlit appRequires an API key

Platform
Browser-based (no installation required)
Input
URLs via paste or CSV uploadOpenAI API key
Output
CSV (page_intent_classification.csv), one row per URL: url, intent (6 words or fewer), action (3 words or fewer), category (signup, purchase, browse, learn, contact, compare, download or other) and error. A bar chart shows pages per category.
Category
Content

Use cases

  • Content audits by intent
  • User journey mapping
  • Conversion optimisation planning
  • Site structure analysis

#features

  • GPT Luna (default) or GPT Terra models
  • JSON response formatting (up to 4,000 output tokens, reasoning included, at low effort)
  • html2text content conversion
  • 8 categories, requested in the prompt
  • CSS selector for content targeting
  • Character limit setting (500-10,000)

#how-to-use

  1. Enter OpenAI API key
  2. Select model (GPT Luna by default, the lower-cost option, or GPT Terra)
  3. Input URLs or upload CSV
  4. Optionally set CSS selector for content area
  5. Configure character limit and request delay
  6. Download CSV with classifications

#faq

What happens if my CSS selector is wrong?
The tool silently falls back to classifying the entire page body; there is no warning that the selector matched nothing. If classifications look like they are based on navigation or footer text, test the selector on one page in your browser dev tools first.
How much of each page does the model actually see?
By default the first 3,000 characters (configurable from 500 to 10,000) of the page after html2text conversion, which strips links, images, tables and emphasis. On long pages the classification is effectively based on the top of the page, so raise the limit if key intent signals (pricing tables, forms) sit lower down.
Is the category guaranteed to be one of the eight listed?
Almost always, but not strictly. The API's JSON mode guarantees valid JSON, while the eight categories (signup, purchase, browse, learn, contact, compare, download, other) are enforced only by the prompt, not a schema, so an occasional off-list value is possible. Worth a quick value check before pivoting on the category column.
What drives the API cost?
One chat completion per URL on your own OpenAI key, with output capped at 4,000 tokens including the model's reasoning (low effort). Cost depends on the page length sent (your character limit setting) and the model; GPT Luna, the default, is the lower-cost option. See OpenAI's pricing page for current rates.
Will it classify JavaScript-rendered pages correctly?
Pages are fetched as raw HTML with the requests library, so content rendered client-side is missing from what the model sees. Such pages often classify as 'other' or from whatever server-rendered shell exists. Fetch or classification errors do not stop the batch; they are recorded per row in an error column.

/contact

Want me to run this for you? I run this tool as a managed service, or build something custom around your data. You get the insights without touching the code.