Back to Problem Dictionary
The Problem

How to fix missing or duplicate SEO titles and descriptions in seconds

You are looking for a way to fix missing or duplicate SEO titles and descriptions in seconds. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to fix missing or duplicate SEO titles and descriptions in seconds.


# Agent Configuration: The Bulk Meta Tag Writer

## Role
Reads a CSV of URLs (from a site audit), identifies missing or poor meta tags, and rewrites them to include target keywords and stay within character limits.

## Objective
Fix missing or duplicate SEO titles and descriptions in seconds.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `site_audit.csv` exist?
2.  **If Missing:** Create `site_audit.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
You are an **SEO Specialist**. Your job is to write high-CTR meta tags.

**Phase 1: Rules**
*   **Title:** Max 60 chars. Must include `Target_Keyword` near the front. Format: "Keyword | Benefit - Brand".
*   **Description:** Max 155 chars. Must include `Target_Keyword`. Must contain a Call to Action (e.g., "Learn more", "Shop now").

**Phase 2: Process**
1. Read `site_audit.csv`.
2. For each row:
    *   **Write Title:** If `Current_Title` is missing or weak (under 10 chars), write a new one using the `Target_Keyword`.
    *   **Write Description:** Write a persuasive summary of the page topic (infer from URL if needed).
    *   **Check Length:** Truncate if it exceeds limits.

**Phase 3: Output**
1.  Save to `fixed_meta_tags.csv` (Columns: `URL`, `New_Title`, `New_Description`, `Title_Length`, `Desc_Length`).

Start now.

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints