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

# n8n Scenarios Library

A set of ready‑to‑adapt workflow blueprints for common Sitecopilot automations.

## 1) Bulk create pages from CSV

**Trigger**: Manual → **Read Binary File** (CSV) → **Spreadsheet File** → **Item Lists (Split)** → **HTTP Request** (POST `/api/page`) per row.

**Row fields**: `name`, `url`, `locale`, `meta_title`, `meta_description`, `draft`.

## 2) Sync translations via AI

**Trigger**: Cron → **HTTP Request** (GET `/api/pages`) → **Code** (select FR pages) → **HTTP Request** (AI/Cloud endpoint) → **HTTP Request** (PUT `/api/content`).

## 3) Asset ingestion from S3/Drive

**Trigger**: S3/Drive → **Binary to JSON** (filename) → **HTTP Request** (multipart `POST /api/asset`) → **HTTP Request** (PUT `/api/content` to attach URLs).

## 4) Programmatic settings

**Trigger**: Manual → **HTTP Request** `POST /api/settings` with body `{ "google_code": "UA-...", "noindex": 1 }`.

## 5) Editor notifications

**Trigger**: When a long job starts/ends → **HTTP Request** `POST /api/notifications` with `{ id, message, status }`.

## 6) Nightly sitemap snapshot

**Trigger**: Cron 03:00 → **HTTP Request** `POST /api/sitemap` → **Write Binary File** with timestamp.

## 7) Safe page delete

**Trigger**: Manual → **HTTP Request** `DELETE /api/page` with `{ "url": "about-us" }` → archive data first → confirm → optional hard delete with `{ "permanently": 1 }`.

## 8) Tenant bootstrap (central)

**Trigger**: Manual → **HTTP Request** (central) `POST /api/tenant` → **HTTP Request** (central) `POST /api/tenant/token` → store token in n8n credentials → **HTTP Request** (tenant) seed pages/content.
