Snippet copy in bulk: candidates, filters and a human pick

APIFreeDeepSeekKey · Updated 2026-11-22 · 9 min read

Shop window with one item on display
Titles and descriptions are the shop window of a page in search results.

Titles and meta descriptions are small pieces of text with an outsized job. They are often the first thing a searcher reads about a page, and on a site with hundreds of pages they are also the text most likely to be duplicated, truncated or left as an unhelpful default. Writing three good options per page by hand is slow. Generating them with a model is fast, but raw output is full of overlong lines, clichés and promises the page does not keep.

This guide is for SEO specialists, site owners and content managers who maintain many pages. It walks through a workflow that asks a model for several candidates per page, filters them automatically for length, duplication and banned phrases, and leaves a person to choose. It also covers what models get wrong about snippets and how to keep the result honest.

Examples use the free keyless endpoint on this site, serving free-ai, an independent open-weight model. This site is not affiliated with DeepSeek. Short copy like this is a task where a small free model usually does well once the filters are in place.

Frequently asked questions

What is a meta description?

It is a short summary of a page placed in the page's HTML head. Search engines may show it under the title in results, although they often replace it with text from the page if they think that matches the search better.

How does a title tag differ from a page heading?

The title tag appears in browser tabs and usually as the clickable line in search results. The page heading, normally the H1, appears on the page itself. They can share a topic but work best when worded differently, each fitting its context.

How long should a meta description be?

A common working range is roughly 120 to 160 characters, because longer text is often cut off in results. Search engines measure display width rather than characters, so treat any number as a guide, not a rule.

Why generate several options instead of one?

Because the first answer is rarely the best, and filters remove some candidates. Five options per page give the filter room to work and give a person a real choice, at little extra cost per request.

Which is better for snippets, a small free model or a large one?

For short, formulaic text with strict constraints, the difference is smaller than for long articles. A small model with good examples and automatic filters often produces usable options. A larger model helps more with tricky pages and unusual topics.

Do search engines penalise AI-written meta descriptions?

The text's origin is not what matters. Descriptions that misrepresent the page, repeat across many pages or stuff keywords perform poorly regardless of who wrote them. Accurate, specific descriptions help, whoever drafts them.

How do I stop the model adding false claims to snippets?

Give it a short summary of the page and the reader's question, forbid claims not in the summary, ban hype words like 'best' and 'ultimate', and check candidates for numbers not present in the input.

Should every page get a custom description?

Important and frequently visited pages should. For very large sets of similar pages, a carefully written template with page-specific details can be better than hundreds of generated sentences that drift in quality.

Step by step

  1. Collect page summaries — For each page, write or extract a two-sentence summary, the main reader question and one distinctive detail. Store them in a spreadsheet with the URL.
  2. Request five candidates per page — Ask for five title options and five description options in JSON, with clear length targets and a list of phrases to avoid.
  3. Filter automatically — Drop candidates outside the length range, with banned phrases, with numbers not in the summary, or too similar to snippets already used on other pages.
  4. Pick and adjust by hand — Have a person choose one title and one description per page from the survivors, editing lightly where needed.
  5. Publish and watch — Update the pages, then compare click-through over several weeks using your search analytics, changing only a few pages at a time.

Why snippet copy goes wrong on large sites

On large sites, titles and descriptions are usually produced by templates or left empty, and the results are predictable: dozens of pages with the same description, titles cut off mid-word, and summaries that say nothing specific. Manually fixing them is the kind of task that never reaches the top of the list.

A model can produce candidate text for every page in an afternoon. The value is not that it writes better than a skilled person but that it writes something reasonable for every page, which a person can then refine where it matters.

Defaults are worse than drafts

An empty meta description lets search engines pick a sentence from the page, which may be a cookie notice or a navigation label. A plain, accurate generated description is usually an improvement over that.

Templates still have a place

For thousands of near-identical pages, such as product variants, a template with one or two filled-in details is predictable and safe. Use generation for pages where a template would produce nonsense.

Inputs that make good snippets possible

A snippet summarises a page, so the model needs to know what the page says. Sending the whole page is expensive and often unnecessary. A two-sentence summary, the question the page answers and one distinctive detail are enough for a strong candidate, and they keep the model from inventing a summary of its own.

The distinctive detail matters most. It is what makes this page's snippet different from the five competing results, for example a specific use case, a time frame or a type of reader.

  • URL and page type
  • Two-sentence summary written or checked by a person
  • Main reader question
  • One distinctive detail
  • Target phrase, used naturally rather than forced
Index cards paired with printed pages
A short summary and one distinctive detail per page are enough input.

Asking for candidates in a usable format

Request JSON with two lists, titles and descriptions. Give character targets, remind the model that it is writing for people deciding whether to click, and ban the clichés you see most. Ask it not to include the site name in titles if your template adds it automatically.

The script below requests candidates for one page and parses them. In a real run, loop over the spreadsheet with a one-second pause between requests.

A higher temperature is fine here

For candidate generation you want variety, so a temperature around 0.8 is reasonable. The filters remove weak options afterwards. For the final edit, a person decides, so randomness does not reach the page unchecked.

Summaries need a human check

If summaries are generated automatically from page text, read them before using them as input. A wrong summary produces confident, wrong snippets for every candidate, and the filters cannot detect that, because the snippet faithfully matches its flawed input.

import json
from openai import OpenAI

client = OpenAI(base_url="https://api.apifreedeepseekkey.com/v1", api_key="free")

SYSTEM = ("You write search result titles and meta descriptions in British English. "
          "Titles: 45-65 characters. Descriptions: 120-158 characters. "
          "Use only facts from the summary. No 'best', 'ultimate', 'complete guide', no exclamation marks. "
          'Return JSON only: {"titles": [5 strings], "descriptions": [5 strings]}.')

page = {
    "summary": "How to repot a houseplant without shocking it. Covers pot size, soil, timing and aftercare.",
    "question": "When and how should I repot a houseplant?",
    "detail": "Explains why spring is usually the safest time.",
}

r = client.chat.completions.create(
    model="free-ai", temperature=0.8, max_tokens=700,
    messages=[{"role": "system", "content": SYSTEM},
              {"role": "user", "content": json.dumps(page)}])
raw = r.choices[0].message.content.strip().removeprefix("```json").removesuffix("```").strip()
cands = json.loads(raw)
for t in cands["titles"]:
    print(len(t), t)
for d in cands["descriptions"]:
    print(len(d), d)

Filtering candidates automatically

Models are poor at counting characters, so expect many candidates to miss the length targets. That is the main reason to ask for five. A filter that keeps only titles and descriptions within range removes most problems before anyone reads them.

Next, check for banned words that slipped through, numbers that are not in the summary, and repetition of the same opening across pages. Keep a running list of descriptions already chosen on the site, and reject new candidates that start the same way or share most of their words with an existing one.

Length in characters is a proxy

What actually gets cut off depends on display width, device and the search engine. Character ranges are a practical approximation. If a page matters a lot, preview the snippet in a tool that simulates display width.

Site-wide duplication check

Duplicate descriptions across pages are a common audit finding. Comparing each new candidate with every description already in use is cheap with simple word-overlap, and prevents the generated set from recreating the problem.

Coin sorting tray with coins in slots
Automatic filters keep only candidates within the length range.

Honest snippets get better clicks over time

It is tempting to ask for the most clickable snippet possible. Clickbait works briefly and then backfires: visitors who arrive expecting something the page does not deliver leave quickly. A good snippet tells the reader exactly what they will get, in words that match their question.

Ask the model to answer the reader's question in miniature, or to state what the page covers and for whom. Those patterns tend to produce specific, trustworthy descriptions. Ban phrases that promise more than any page could deliver.

Match the page, not the keyword

Forcing an exact target phrase into every description often produces awkward sentences. Use the phrase where it fits naturally; search engines highlight related wording too, and readers notice clumsy repetition.

Choosing between candidates

Present the filtered candidates side by side in a spreadsheet: URL, current title and description, and the surviving options. A person who knows the site can pick in seconds per page. Light edits are normal, and often the best final version combines the opening of one candidate with the ending of another.

Keep a note of why options were rejected. Patterns appear quickly, such as "always too formal" or "keeps using the word discover", and each pattern is a line to add to the system prompt for the next run.

Questions as openings

Descriptions that start by naming the reader's situation or question, then state what the page offers, tend to be clear and specific. Asking the model for at least one candidate in this pattern gives the person choosing a useful alternative to the usual summary style.

Five small cups of tea in a row
Several candidates per page give a person a real choice.

Testing changes without fooling yourself

Search click-through varies with rankings, seasons and competitors, so a change to a single page proves little. Update a group of comparable pages, leave a similar group unchanged, and compare over several weeks. Change a manageable number at a time so you can attribute results.

Search engines may also ignore your description and show page text instead. If that happens often for a page type, the description probably does not match what searchers want, which is useful information in itself.

Keep the old versions

Store previous titles and descriptions with dates. If click-through drops after a change, you can revert quickly and you have the data to see which wording patterns worked.

Titles affect more than clicks

Titles also appear in browser tabs, bookmarks and social shares. A title that works in search but reads oddly in a tab is worth one more edit.

Write down what you rejected

A short rejection note per page, even a single word such as vague, hype or too long, turns into a list of prompt improvements after one batch. Without notes, the same weak patterns return in the next run.

Where a bigger model or a person is worth it

For category pages, landing pages and anything with commercial weight, a skilled copywriter usually writes better snippets than any model, and the time is well spent. A larger commercial model, such as one of DeepSeek's, can produce sharper options for pages on specialist topics where a small model lacks knowledge.

For the long tail of articles, help pages and older posts, generated candidates plus a quick human pick are a large improvement at little cost. For similar bulk work on product pages, see the catalogue rewrite guide; to keep output from drifting into another language in multilingual sites, see language drift fixes.

Two seedlings in separate trays on a windowsill
Compare groups of pages over weeks rather than single pages over days.
Try the free API

Send a short brief to the keyless endpoint on the home page and see what kind of first draft comes back, no account needed.

Read also