# Site Structure — templates.doany.ai

> URL hierarchy, information architecture, and internal linking plan

---

## Domain Strategy

- **Primary domain:** `templates.doany.ai` (subdomain of main brand)
- **Rationale:** Inherits some trust from `doany.ai` while maintaining a focused topical authority for templates
- **Ensure:** Proper cross-linking between `doany.ai` and `templates.doany.ai`

---

## URL Hierarchy

```
templates.doany.ai/
├── /                                    # Homepage — template gallery + value prop
├── /templates/                          # Template gallery index (filterable)
│   ├── /templates/marketing/            # Category hub: Marketing Automation
│   │   ├── /templates/marketing/content-pipeline
│   │   ├── /templates/marketing/social-scheduling
│   │   ├── /templates/marketing/seo-audit-workflow
│   │   └── /templates/marketing/email-campaign-builder
│   ├── /templates/sales/                # Category hub: Sales Workflows
│   │   ├── /templates/sales/lead-scoring
│   │   ├── /templates/sales/outreach-sequence
│   │   ├── /templates/sales/crm-enrichment
│   │   └── /templates/sales/deal-pipeline-automation
│   ├── /templates/support/              # Category hub: Customer Support
│   │   ├── /templates/support/ticket-routing
│   │   ├── /templates/support/auto-response
│   │   ├── /templates/support/knowledge-base-updater
│   │   └── /templates/support/csat-analysis
│   ├── /templates/data/                 # Category hub: Data & Analytics
│   │   ├── /templates/data/report-generation
│   │   ├── /templates/data/data-cleaning
│   │   ├── /templates/data/dashboard-updater
│   │   └── /templates/data/anomaly-detection
│   ├── /templates/engineering/          # Category hub: Engineering
│   │   ├── /templates/engineering/code-review
│   │   ├── /templates/engineering/ci-cd-automation
│   │   ├── /templates/engineering/incident-response
│   │   └── /templates/engineering/release-notes-generator
│   └── /templates/hr/                   # Category hub: HR & Operations
│       ├── /templates/hr/onboarding-flow
│       ├── /templates/hr/policy-updater
│       ├── /templates/hr/scheduling-assistant
│       └── /templates/hr/performance-review
│
├── /use-cases/                          # Solution pages by persona/industry
│   ├── /use-cases/operations-managers
│   ├── /use-cases/team-leads
│   ├── /use-cases/freelancers
│   ├── /use-cases/developers
│   ├── /use-cases/startups
│   └── /use-cases/mid-market
│
├── /integrations/                       # Integration pages (programmatic SEO)
│   ├── /integrations/slack
│   ├── /integrations/hubspot
│   ├── /integrations/salesforce
│   ├── /integrations/github
│   ├── /integrations/google-workspace
│   ├── /integrations/jira
│   └── /integrations/[tool-slug]        # Expandable
│
├── /compare/                            # Comparison pages
│   ├── /compare/zapier
│   ├── /compare/clickup
│   ├── /compare/notion
│   ├── /compare/airtable
│   ├── /compare/asana
│   └── /compare/n8n
│
├── /blog/                               # Content hub
│   ├── /blog/[slug]                     # Individual posts
│   └── /blog/category/[category]        # Category archives
│
├── /docs/                               # Documentation
│   ├── /docs/getting-started
│   ├── /docs/template-format
│   ├── /docs/api
│   └── /docs/[slug]
│
├── /community/                          # Community marketplace (Phase 3+)
│   ├── /community/submit
│   └── /community/[username]/[template]
│
├── /pricing                             # Pricing page
├── /about                               # About doany.ai templates
├── /contact                             # Contact + support
├── /changelog                           # Product updates
├── /privacy                             # Privacy policy
└── /terms                               # Terms of service
```

---

## Page Types & Specifications

### 1. Homepage (`/`)

**Purpose:** Conversion gateway + template discovery
**Target Keywords:** "AI workflow templates", "AI automation templates"
**Content Requirements:**
- Hero: Value prop + search/filter bar for templates
- Featured templates grid (6-8 top templates)
- Category cards linking to each `/templates/[category]/`
- Social proof: user count, companies using, testimonials
- Integration logos
- "How it works" section (3-step)
- CTA: "Browse Templates" / "Get Started Free"

**Schema:** `Organization`, `WebSite`, `SearchAction`, `SoftwareApplication`

---

### 2. Category Hub Pages (`/templates/[category]/`)

**Purpose:** Topical authority pillar + category browsing
**Target Keywords:** "AI [category] templates", "[category] automation templates"
**Content Requirements:**
- Category description (200-400 words) explaining AI workflow value for this function
- Filterable template grid (by complexity, tools, popularity)
- "Why automate [category] with AI" section
- Related categories sidebar
- FAQ section (3-5 questions)

**Schema:** `ItemList`, `CollectionPage`, `BreadcrumbList`, `FAQPage`

---

### 3. Individual Template Pages (`/templates/[category]/[template-slug]`)

**Purpose:** Conversion + long-tail SEO
**Target Keywords:** "AI [specific workflow] template", "[task] automation template"
**Content Requirements:**
- Template name + one-line description
- Visual preview (workflow diagram / screenshot)
- "Use This Template" CTA (above fold)
- Overview section: what it does, who it's for, time saved
- Step-by-step workflow breakdown
- Required integrations with links to integration pages
- Customization options
- Output examples / sample results
- Related templates (3-4)
- User reviews (when available, Phase 3+)

**Schema:** `SoftwareApplication`, `HowTo`, `Product`, `BreadcrumbList`, `AggregateRating` (Phase 3+)

**Programmatic SEO Note:** Template pages are the core pSEO opportunity. Each page must have:
- Unique 150+ word description (not just variable swaps)
- Real workflow screenshots/diagrams
- Specific metrics (e.g., "saves ~3 hours/week")
- Genuine differentiation from other template pages

---

### 4. Use Case Pages (`/use-cases/[persona-slug]`)

**Purpose:** MOFU — match persona intent to templates
**Target Keywords:** "AI workflows for [role]", "[persona] automation templates"
**Content Requirements:**
- Persona description and pain points (300-500 words)
- Curated template recommendations (5-8 per persona)
- "Day in the life" before/after comparison
- Testimonial from persona match
- CTA to relevant template category

**Schema:** `Article`, `BreadcrumbList`, `ItemList`

---

### 5. Integration Pages (`/integrations/[tool-slug]`)

**Purpose:** Long-tail capture + programmatic SEO
**Target Keywords:** "AI workflow [tool name]", "[tool] AI automation"
**Content Requirements:**
- Tool description + doany.ai integration overview
- Templates that use this integration (linked list)
- Setup instructions (brief)
- Supported triggers and actions
- "Why automate [tool] with AI" section

**Schema:** `SoftwareApplication`, `HowTo`, `BreadcrumbList`

---

### 6. Comparison Pages (`/compare/[competitor-slug]`)

**Purpose:** BOFU — capture "[competitor] alternative" traffic
**Target Keywords:** "doany.ai vs [competitor]", "[competitor] alternative for AI workflows"
**Content Requirements:**
- Fair feature comparison table
- "Best for" summary for each product
- Key differentiators (AI-native, open format, community)
- Migration guide / switching section
- CTA to start free

**Schema:** `Product`, `ItemList`, `BreadcrumbList`

---

### 7. Blog Posts (`/blog/[slug]`)

**Purpose:** TOFU awareness + topical authority + backlink attraction
**Target Keywords:** Varies per post
**Content Requirements:**
- 1,200-2,500 words depending on topic
- Author bio with credentials
- Internal links to relevant templates (2-4 per post)
- Visual assets (diagrams, screenshots, charts)
- Updated date for freshness signals

**Schema:** `Article`, `BlogPosting`, `Person` (author), `BreadcrumbList`

---

## Internal Linking Strategy

### Hub-and-Spoke Model

```
Homepage
  ├── links to → all 6 Category Hubs
  ├── links to → featured Template Pages
  └── links to → Use Case pages

Category Hub (/templates/marketing/)
  ├── links to → all Template Pages in category
  ├── links to → related Category Hubs (sidebar)
  ├── links to → relevant Integration Pages
  └── links to → relevant Blog Posts

Template Page (/templates/marketing/content-pipeline)
  ├── links to → parent Category Hub (breadcrumb)
  ├── links to → required Integration Pages
  ├── links to → 3-4 related Template Pages
  ├── links to → relevant Use Case page
  └── links to → relevant Blog Post (if exists)

Blog Post (/blog/automate-content-marketing-with-ai)
  ├── links to → 2-4 relevant Template Pages
  ├── links to → relevant Category Hub
  └── links to → relevant Use Case page
```

### Linking Rules

1. **Every template page** must link to its parent category hub (breadcrumb) and 3+ sibling templates
2. **Every category hub** must link to the homepage and all sibling category hubs
3. **Every blog post** must link to at least 2 template pages and 1 category hub
4. **Every integration page** must link to all templates that use that integration
5. **Comparison pages** link to the homepage, relevant templates, and the pricing page
6. **Max 100 internal links per page** to avoid dilution

---

## Breadcrumb Structure

```
Home > Templates > Marketing > Content Pipeline Template
Home > Templates > Sales > Lead Scoring Template
Home > Use Cases > Operations Managers
Home > Integrations > Slack
Home > Compare > Zapier vs doany.ai
Home > Blog > [Post Title]
```

Implement `BreadcrumbList` schema on every page.

---

## Sitemap Strategy

### Primary Sitemap (`/sitemap.xml`)

Index sitemap linking to:
- `/sitemap-pages.xml` — core pages (homepage, pricing, about, etc.)
- `/sitemap-templates.xml` — all template pages
- `/sitemap-categories.xml` — category hub pages
- `/sitemap-integrations.xml` — integration pages
- `/sitemap-blog.xml` — blog posts
- `/sitemap-use-cases.xml` — use case pages
- `/sitemap-compare.xml` — comparison pages

### Priority Scoring

| Page Type | Priority | Change Frequency |
|---|---|---|
| Homepage | 1.0 | weekly |
| Category Hubs | 0.9 | weekly |
| Template Pages | 0.8 | monthly |
| Use Case Pages | 0.7 | monthly |
| Comparison Pages | 0.7 | monthly |
| Blog Posts | 0.6 | as published |
| Integration Pages | 0.6 | monthly |
| Docs | 0.5 | as updated |
| Legal/Static | 0.3 | yearly |

---

## Robots.txt

```
User-agent: *
Allow: /

Disallow: /api/
Disallow: /admin/
Disallow: /preview/
Disallow: /_next/
Disallow: /auth/

Sitemap: https://templates.doany.ai/sitemap.xml
```

---

## Technical Requirements

### URL Rules
- All lowercase, hyphen-separated
- No trailing slashes (redirect `/templates/` → `/templates`)
- No query parameters for content pages (use path-based routing)
- Canonical tags on every page
- 301 redirects for any URL changes

### Pagination
- Category hubs with 20+ templates use infinite scroll with `rel="next"` hints
- Blog archive uses `/blog/page/2`, `/blog/page/3` with canonical to page 1

### Multi-Language (Future)
- Prepare `hreflang` architecture for `/en/`, `/es/`, `/fr/`, `/de/`, `/ja/`
- Not for launch — Phase 4 consideration
