> ## Documentation Index
> Fetch the complete documentation index at: https://docs.docswrite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Programmatic SEO

> How to generate and publish thousands of SEO-optimized pages programmatically using Google Docs and Docswrite.

<iframe width="560" height="315" src="https://www.youtube.com/embed/3kd364Ad8pM" title="YouTube vxideo player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

# Programmatic SEO (PSEO) with Docswrite

Programmatic SEO (PSEO) allows you to generate and publish thousands of SEO-optimized pages at scale, targeting long-tail keywords and increasing your website's organic reach. With Docswrite, you can automate the creation and publishing of these pages directly from Google Docs to your CMS, such as WordPress.

## What is Programmatic SEO?

Programmatic SEO is the process of using automation to create large numbers of unique, high-quality pages that target specific keyword variations or data-driven topics. This approach is ideal for:

* Location-based landing pages (e.g., "Best dentists in \[City]")
* Product or service variations
* Data-driven content (e.g., statistics, directories, templates)
* Comparison pages

## How Docswrite Enables Programmatic SEO

Docswrite streamlines the PSEO workflow by letting you:

* **Create content templates in Google Docs** - create content in Google Docs with curly barces to create a templated content
* **Select your Google Sheet** - containing the variables for each page
* **Automatically generate unique Google Docs** for each data row, replacing placeholders with actual values
* **Bulk export and publish** all generated docs to your CMS (WordPress, Contentful, etc.) with proper formatting, images, and SEO metadata

## Step-by-Step: Launching a Programmatic SEO Campaign

### 1. Prepare Your Content Template

<img src="https://mintcdn.com/docswrite/QBWhWTzcFfCZ41-2/images/new/dashboard/programmatic-seo-part-1.png?fit=max&auto=format&n=QBWhWTzcFfCZ41-2&q=85&s=0d5c6a5b04e5afdd874a62d9fef0f78e" alt="Settings" width="3616" height="2008" data-path="images/new/dashboard/programmatic-seo-part-1.png" />

1. In Google Docs, write a template for your page. Use curly braces for variables, e.g.:

   ```
   # Best {{service}} in {{city}}

   Looking for the best {{service}} in {{city}}? Our team offers top-rated {{service}} at affordable prices.
   ```

2. Save your template in your Google Drive.

### 2. Prepare Your Data Source

<img src="https://mintcdn.com/docswrite/QBWhWTzcFfCZ41-2/images/new/dashboard/programmatic-seo-part-2.png?fit=max&auto=format&n=QBWhWTzcFfCZ41-2&q=85&s=f54d58a25950fd41ee60aa82a465e151" alt="Settings" width="3616" height="2008" data-path="images/new/dashboard/programmatic-seo-part-2.png" />

* Create a Google Sheet with columns matching your placeholders (e.g., `city`, `service`, `price`).
* Each row represents a unique page.

### 3. Connect Docswrite

Go to the Docswrite dashoard and click on **Progarmmatic Publish**

<img src="https://mintcdn.com/docswrite/QBWhWTzcFfCZ41-2/images/new/dashboard/select-file-programmatic-seo.png?fit=max&auto=format&n=QBWhWTzcFfCZ41-2&q=85&s=39c5379fa94fe376b73aab1ca0f3f4de" alt="Settings" width="3616" height="1716" data-path="images/new/dashboard/select-file-programmatic-seo.png" />

### 4. Generate Pages Programmatically

1. In Docswrite, select your content template from Google Docs
2. Upload your Google Sheet or connect your data source.
3. Docswrite will generate a unique Google Doc for each row, replacing placeholders with your data.

<img src="https://mintcdn.com/docswrite/QBWhWTzcFfCZ41-2/images/new/dashboard/programmatic-seo-part-3.png?fit=max&auto=format&n=QBWhWTzcFfCZ41-2&q=85&s=3270372b95bb6e295f77de260358ecd2" alt="Settings" width="3616" height="2008" data-path="images/new/dashboard/programmatic-seo-part-3.png" />

### 5. 🎉 Bulk Export and Publish

1. Select all generated Google Docs.
2. Click **Export** and choose your connected CMS.
3. Configure export options (post type, categories, tags, SEO fields).
4. Click **Publish** to send all pages live.

<img src="https://mintcdn.com/docswrite/QBWhWTzcFfCZ41-2/images/new/dashboard/programmatic-seo-part-4.png?fit=max&auto=format&n=QBWhWTzcFfCZ41-2&q=85&s=93e180583f15d9885ef3a0be2e594dcc" alt="Settings" width="3616" height="2008" data-path="images/new/dashboard/programmatic-seo-part-4.png" />

Docswrite will automatically convert each Google Doc into a published page, preserving formatting, images, and metadata.
