Skip to content

AI Title and Description Writer

OCEANOFANYTHING edited this page Nov 24, 2026 · 1 revision

The title and description writer suggests new page titles and meta descriptions for every indexable page whose title or description is missing, too short or too long. It can work completely offline with built-in rules (nothing leaves your computer), or with an AI model of your choice: OpenAI or any OpenAI-compatible service (including local models in Ollama or LM Studio), Anthropic Claude, or Google Gemini, using your own API key. You review the suggestions, copy the ones you like, or export them all to a CSV file.

ShoutingToad never changes your website. The writer only produces suggestions.

Why titles and descriptions matter

The <title> is the blue headline in search results and the text in the browser tab, and it is one of the strongest on-page relevance signals. The meta description is often used as the snippet under it. Titles that are cut off, generic or missing, and descriptions that are empty or truncated, lose clicks. The writer targets pages that the length checks in the Page Titles and Meta Description categories would flag:

Reason shown Rule
Missing title No <title>.
Title over 60 chars / Title under 30 chars The first title is longer than 60 or shorter than 30 characters.
Missing description No meta description.
Description over 155 chars / Description under 70 chars The first meta description is longer than 155 or shorter than 70 characters.

Only indexable HTML pages are included (internal pages that answer 200, are not noindex, are not blocked by robots.txt, do not redirect with a meta refresh, and do not point their canonical to another URL); there is no point writing titles for pages that cannot rank. A page can have two reasons, for example Title over 60 chars, Description over 155 chars.

Step 1: Choose a provider (optional)

The writer works out of the box with the offline rules. To use an AI model instead:

  1. Click Configuration in the menu bar, then AI provider & API key….

    The Configuration menu with AI provider & API key highlighted

  2. The AI provider window opens. With the default provider it looks like this:

    The AI provider window with Offline rules selected

    1. The provider list. The text above it reads Used by the title & description writer. Bring your own API key; ShoutingToad sends page text only to the provider you choose.
    2. With Offline rules (no AI) selected: Offline rules rewrite titles and descriptions from each page's headings and opening text. No data leaves your computer.
  3. Click the provider list to choose:

    The provider list open

    1. Offline rules (no AI): the built-in rules. Free, instant, private. The default.
    2. Anthropic Claude: Claude models through Anthropic's API.
    3. OpenAI-compatible (OpenAI, OpenRouter, Ollama, LM Studio…): OpenAI's API, or any service or local server that speaks the same "chat completions" API.
    4. Google Gemini: Gemini models through Google's Generative Language API.

    Choosing a provider fills in its default model, clears the API key box, and picks up the key from that provider's environment variable if it is set (see Keys and privacy).

OpenAI-compatible

The AI provider window with OpenAI-compatible selected, numbered fields

  1. Provider: OpenAI-compatible (OpenAI, OpenRouter, Ollama, LM Studio…).
  2. Model: the model name exactly as the service expects it. Default gpt-4.1-mini. For local servers, use the name of a model you have installed there.
  3. Base URL: the address of the API, up to and including /v1. Default https://api.openai.com/v1. ShoutingToad sends requests to Base URL/chat/completions. When the box is empty it shows the hint http://localhost:11434/v1 for Ollama.
  4. API key: your key; the box hides what you type. Local servers need no key: as soon as the Base URL is anything other than api.openai.com, the key is optional.
  5. The reminder: The key stays in memory and is never saved to disk. To avoid retyping it, set ANTHROPIC_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY before starting the app.
  6. Test connection: sends a tiny test request ("Reply with the single word OK."). It is greyed out until the provider is ready (a key is entered, or a local Base URL is set).

Common Base URLs:

Service Base URL Key
OpenAI https://api.openai.com/v1 (default) Required (OPENAI_API_KEY)
OpenRouter https://openrouter.ai/api/v1 Your OpenRouter key; use OpenRouter's model names
Ollama on this computer http://localhost:11434/v1 Not needed
LM Studio on this computer The address shown in LM Studio's local server tab, usually http://localhost:1234/v1 Not needed

With a local model, page text never leaves your computer, and there is no per-request cost. Local models on a CPU can be slow; ShoutingToad waits up to 5 minutes for each answer.

Anthropic Claude and Google Gemini

Anthropic Claude selected

Google Gemini selected

These have just Model and API key:

Provider Default model Where requests go Environment variable
Anthropic Claude claude-opus-5-5 https://api.anthropic.com/v1/messages ANTHROPIC_API_KEY
Google Gemini gemini-2.5-flash https://generativelanguage.googleapis.com/v1beta/models/<model>:generateContent GEMINI_API_KEY

You can type any other model name the provider offers, for example a smaller, cheaper model.

Testing the connection

Click Test connection. A spinner shows while the request runs, then:

  • Connected: followed by the start of the model's reply, in green, when it works.
  • The error in red when it does not, for example an invalid key (HTTP 401: …), an unknown model, or a server that is not running.

Here a local server answered, but the model name does not exist on it (it needs the name of an installed model instead of the default gpt-4.1-mini):

Test connection with a local Base URL: the server reports that the model was not found

Close the window with the × when you are done. The provider, model and Base URL are remembered for next time; the key is not.

Step 2: Write suggestions

  1. Open or run a crawl. Click Tools in the menu bar, then Title & description writer… (greyed out until there is crawl data).

    The Tools menu with Title & description writer highlighted

  2. The Title & description writer window opens:

    The writer window before writing, with numbered parts

    1. How many pages need work: 1116 indexable pages have a missing, short or long title or description. on the books crawl.
    2. Engine: what will write the suggestions: Offline rules, or the provider and model, for example Anthropic Claude (claude-opus-5-5). It shows Offline rules whenever the selected AI provider is not ready (no key).
    3. Change…: opens the AI provider window from step 1.
    4. Write suggestions: starts writing for all the pages counted in (1). Greyed out while it runs, or when no page needs work.
    5. Export CSV…: saves all suggestions to a CSV file. Greyed out until there are suggestions.
    6. The results table: Page, Suggested title, Suggested description, and a column of copy buttons.
  3. Click Write suggestions. Pages are processed one after another and results appear as they arrive. While it runs, a Cancel button and a progress bar (done / total) appear next to the button; Cancel stops after the current page and keeps the suggestions written so far. With the offline rules the 1116 books pages finish almost instantly; with an AI provider each page is one request, so expect seconds per page.

  4. Review the results:

    Suggestions for the first pages of the books crawl, with numbered parts

    1. Page: the URL.
    2. The reason the page was included (orange). If an AI request failed, a red AI error: line with the reason appears here too.
    3. Suggested title.
    4. Its length in characters and its estimated width in pixels in Google's results, green when 60 characters or fewer, orange when longer.
    5. Suggested description.
    6. Its length and where it came from: Offline rules, AI (model), or Offline (AI failed) when the AI request failed and the offline rules were used instead. Green when 70 to 155 characters (the same range the writer aims for), orange otherwise.
    7. Copy title and Copy description: copy the suggestion to the clipboard, ready to paste into your CMS.

    On the category pages shown here, the pages' only real sentences are the site's welcome text, so every description is the same 88-character sentence: correct, but generic. This is exactly what the offline rules can and cannot do (see How suggestions are produced).

    Further down the list are the book pages, whose titles and descriptions are too long. The brand is dropped when it does not fit, and book titles longer than 60 characters are shortened at a word boundary (Kill 'Em and Leave: Searching for James Brown); long descriptions are cut at a word boundary and end with …:

    Suggestions for book pages: long titles without the brand, long descriptions cut

  5. To keep everything, click Export CSV… and choose where to save title_description_suggestions.csv.

Suggestions are kept until you close the app or click Write suggestions again (which starts over). They are not saved in the crawl file, so export them if you need them later.

The CSV file

Column What it contains
Address The page URL.
Reason Why the page was included.
Current Title The page's title now.
Suggested Title The suggestion.
Title Length Characters in the suggested title.
Current Description The page's meta description now.
Suggested Description The suggestion.
Description Length Characters in the suggested description.
Source Offline rules, AI (model) or Offline (AI failed).
Error The AI error, when there was one.

How suggestions are produced

Offline rules

The offline rules are deterministic: the same page always gets the same suggestion.

  • Brand name. The site's name is worked out from title endings after a separator (|, -, –, —, ::, ·, •) that repeat on at least two pages, and from og:site_name (counted double). If nothing repeats, the host name without www. is used. On the books site the brand is Books to Scrape - Sandbox.
  • Topic. The page's first H1, else its title without the brand, else the last part of the URL (with hyphens and underscores turned into spaces).
  • Title. A title of 30-60 characters is kept as it is. Otherwise the suggestion is topic | brand when that fits in 60 characters and the topic does not already contain the brand. If it does not fit, the brand is dropped and the whole topic is kept; only a topic that is itself longer than 60 characters is shortened, at a word boundary (preferring a natural break such as a comma or colon, and never ending on words like "and", "the" or "of"). Examples from the books crawl: Travel | Books to Scrape - Sandbox (short topic, brand added) and Kill 'Em and Leave: Searching for James Brown (the book's full title is longer than 60 characters, so it is shortened at a word boundary and has no brand). A cut can still end mid-phrase, as in Old Records Never Die: One Man's Quest for His Vinyl and His, so check long titles by hand.
  • Description. A description of 70-155 characters is kept. A longer one is cut at a word boundary to about 150 characters and ends with …. A missing or short one is built from real sentences in the page's lead paragraph (or, if there is none, its visible text): sentences of 5 to 45 words that end with ., ! or ? and are mostly lower-case words, so menus, lists of links and headings are skipped. Sentences are added until about 150 characters. If that gives under 70 characters, a short template is used instead: topic**: browse and find out more on** brand**.** (or topic**: details, information and more.** when no brand is known).

The offline rules only reuse text that is already on the page, so the quality depends on the page. On pages whose only sentences are a site-wide welcome text, every page gets the same description, as on the books category pages above. On pages without any usable sentence you get the template, which is short and generic. Treat offline suggestions as a starting point and review them before use; for better wording, use an AI provider.

AI providers

With an AI provider, each page is sent as one request. The model is asked to write a title of at most 60 characters and a description of 120 to 155 characters, in the page's own language, specific and accurate, with the main topic first, without inventing facts, prices or claims, and to reply with JSON only. The request contains:

  • the site name (as worked out above), the URL, the current title, the first H1 and the current meta description;
  • the first 1,800 characters of the page's visible text.

The reply's JSON is read even if the model wraps it in extra text or a code block. If the request fails (network error, invalid key, quota, a reply without valid JSON, or the model declining), that page gets the offline suggestion instead, marked Offline (AI failed) with the error shown.

Keys and privacy

  • API keys are never saved to disk. The key is excluded from the saved settings in the code and lives only in memory while the app runs. Provider, model and Base URL are saved; the key is not.
  • To avoid retyping it, set an environment variable before starting the app: ANTHROPIC_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY. When you choose a provider, its variable fills the API key box. If the saved provider is Offline rules and one of these variables is set when the app starts, the app switches to that provider automatically (checking Anthropic, then OpenAI, then Gemini).
  • Page text is sent only to the provider you choose, and only when you click Write suggestions or Test connection. With Offline rules or a local model, nothing leaves your computer.
  • The provider's own terms and data policies apply to what you send.

Limits and costs

  • Cost. Offline rules and local models are free. Cloud providers bill per token: each page is one request with roughly 2,000 characters of input (the excerpt plus the instructions) and a short answer. Multiply by the number of pages in (1); on large sites, consider fixing templates instead, or exporting and processing only your key pages.
  • Speed. Pages are processed one at a time. Cloud models take about a second or more per page; local models on a CPU can take much longer (up to the 5-minute limit per page).
  • Rate limits. Requests are sent one after another; if the provider rejects some because of rate limits, those pages fall back to the offline rules and show the error. Run again later for the failed ones.
  • Quality. AI models can still make mistakes. Check names, numbers and claims before publishing. Suggestions are written from the page's own text only; the writer does not know your keywords or brand guidelines.
  • Coverage. Only indexable pages with a title or description problem are included. Pages with good lengths but weak wording are not.

Next steps

Clone this wiki locally