---
name: citedy-trend-scout
title: "Trend & Intent Scout"
description: >
  Find what your audience is searching for right now — scout X/Twitter and Reddit
  for trending topics, discover and deep-analyze competitors, and find content gaps.
  Combine social signals with SEO intelligence. Powered by Citedy.
version: "1.0.0"
author: Citedy
tags:
  - trend-scouting
  - seo
  - competitor-analysis
  - content-gaps
  - twitter
  - reddit
  - research
  - market-research
metadata:
  openclaw:
    requires:
      env:
        - CITEDY_API_KEY
    primaryEnv: CITEDY_API_KEY
  compatible_with: "citedy-seo-agent@3.0.0"
privacy_policy_url: https://www.citedy.com/privacy
security_notes: |
  API keys (prefixed citedy_agent_) authenticate against Citedy API endpoints only.
  All traffic is TLS-encrypted.
---

# Trend & Intent Scout — Skill Instructions

## Overview

Find what your audience is searching for right now. This skill combines real-time social signals from X/Twitter and Reddit with SEO intelligence — giving you trending topics, competitor deep-dives, and content gaps in one workflow.

**What sets this apart from DataForSEO or Semrush:** those tools show you historical search volume. This skill shows you what people are talking about _today_ on social — and maps those signals directly to content opportunities your competitors haven't covered yet.

Use cases:

- Morning briefing: what's blowing up in your niche right now?
- Competitor research: what's their content strategy and where are their gaps?
- Content calendar: find topics with social traction before they peak in SEO tools
- Market research: understand audience intent at the conversation level

---

## When to Use

| Situation                          | What to do                                         |
| ---------------------------------- | -------------------------------------------------- |
| "What should I write about today?" | Scout X + Reddit for trending topics in your niche |
| "What is my competitor doing?"     | Discover + analyze competitor domains              |
| "What content am I missing?"       | Generate content gaps vs competitor URLs           |
| "Morning briefing on AI trends"    | Full workflow: X scout + Reddit scout + gaps       |
| "Find competitors in [niche]"      | Discover competitors by keywords                   |

---

## Setup

### 1. Register your agent

```http
POST https://www.citedy.com/api/agent/register
Content-Type: application/json

{
  "name": "My Trend Scout",
  "blog_url": "https://yourblog.com"
}
```

**Response:**

```json
{
  "api_key": "citedy_agent_xxxxxxxxxxxx",
  "tenant_id": "uuid",
  "blog_handle": "yourblog",
  "credits": 100
}
```

Store `api_key` as `CITEDY_API_KEY` in your environment.

### 2. Authenticate all requests

All API calls require:

```
Authorization: Bearer $CITEDY_API_KEY
```

### 3. Verify setup

```http
GET https://www.citedy.com/api/agent/health
Authorization: Bearer $CITEDY_API_KEY
```

```json
{ "status": "ok", "version": "3.0.0" }
```

---

## Core Workflows

### Workflow 1 — Scout X/Twitter for trending topics

**Step 1: Start the scout run**

```http
POST https://www.citedy.com/api/agent/scout/x
Authorization: Bearer $CITEDY_API_KEY
Content-Type: application/json

{
  "query": "AI content automation",
  "mode": "fast",
  "limit": 20
}
```

Response:

```json
{
  "run_id": "x_run_abc123",
  "status": "processing",
  "estimated_seconds": 15
}
```

**Step 2: Poll for results** (poll every 5s until `status: "completed"`)

```http
GET https://www.citedy.com/api/agent/scout/x/x_run_abc123
Authorization: Bearer $CITEDY_API_KEY
```

```json
{
  "run_id": "x_run_abc123",
  "status": "completed",
  "results": [
    {
      "topic": "GPT-5 rumored release date",
      "engagement_score": 94,
      "tweet_count": 1240,
      "sentiment": "excited",
      "top_posts": ["..."],
      "content_angle": "Break down what GPT-5 means for content creators"
    }
  ],
  "credits_used": 35
}
```

---

### Workflow 2 — Scout Reddit for audience intent

**Step 1: Start the scout run**

```http
POST https://www.citedy.com/api/agent/scout/reddit
Authorization: Bearer $CITEDY_API_KEY
Content-Type: application/json

{
  "query": "AI writing tools comparison",
  "subreddits": ["SEO", "marketing", "artificial"],
  "limit": 15
}
```

Response:

```json
{
  "run_id": "reddit_run_xyz789",
  "status": "processing",
  "estimated_seconds": 12
}
```

**Step 2: Poll for results**

```http
GET https://www.citedy.com/api/agent/scout/reddit/reddit_run_xyz789
Authorization: Bearer $CITEDY_API_KEY
```

```json
{
  "run_id": "reddit_run_xyz789",
  "status": "completed",
  "results": [
    {
      "topic": "People frustrated with Jasper pricing",
      "subreddit": "r/SEO",
      "upvotes": 847,
      "comments": 134,
      "pain_point": "Too expensive for small teams",
      "content_angle": "Write a comparison targeting budget-conscious teams"
    }
  ],
  "credits_used": 30
}
```

---

### Workflow 3 — Find content gaps vs competitors

**Step 1: Generate gaps** (synchronous, returns when done)

```http
POST https://www.citedy.com/api/agent/gaps/generate
Authorization: Bearer $CITEDY_API_KEY
Content-Type: application/json

{
  "competitor_urls": [
    "https://jasper.ai/blog",
    "https://copy.ai/blog"
  ]
}
```

```json
{
  "status": "completed",
  "gaps_count": 23,
  "top_gaps": [
    {
      "topic": "AI content for e-commerce product descriptions",
      "competitor_coverage": "none",
      "search_volume_est": "high",
      "difficulty": "medium",
      "recommended_angle": "Step-by-step guide with real examples"
    }
  ],
  "credits_used": 40
}
```

**Step 2: Retrieve all gaps**

```http
GET https://www.citedy.com/api/agent/gaps
Authorization: Bearer $CITEDY_API_KEY
```

---

### Workflow 4 — Discover and analyze competitors

**Discover by keywords:**

```http
POST https://www.citedy.com/api/agent/competitors/discover
Authorization: Bearer $CITEDY_API_KEY
Content-Type: application/json

{
  "keywords": ["AI blog automation", "SEO content tool", "autopilot blogging"]
}
```

```json
{
  "competitors": [
    { "domain": "jasper.ai", "relevance_score": 0.94, "category": "direct" },
    { "domain": "surfer.seo", "relevance_score": 0.81, "category": "partial" }
  ],
  "credits_used": 20
}
```

**Deep-analyze a competitor:**

```http
POST https://www.citedy.com/api/agent/competitors/scout
Authorization: Bearer $CITEDY_API_KEY
Content-Type: application/json

{
  "domain": "jasper.ai",
  "mode": "fast"
}
```

```json
{
  "domain": "jasper.ai",
  "content_strategy": {
    "posting_frequency": "3x/week",
    "top_topics": ["copywriting", "AI tools", "marketing"],
    "avg_word_count": 1850,
    "formats": ["how-to", "listicle", "comparison"]
  },
  "top_performing_content": [...],
  "weaknesses": ["No Reddit presence", "Ignores technical SEO topics"],
  "credits_used": 25
}
```

---

## Examples

### Example 1 — "What's trending in AI right now?"

```
1. POST /api/agent/scout/x   { "query": "AI tools 2025", "mode": "fast" }
2. Poll GET /api/agent/scout/x/{run_id} until status = "completed"
3. POST /api/agent/scout/reddit  { "query": "AI tools", "subreddits": ["MachineLearning", "artificial"] }
4. Poll GET /api/agent/scout/reddit/{run_id}
5. Summarize top 5 opportunities with content angles
```

Estimated cost: 35 + 30 = **65 credits**

---

### Example 2 — "Find content gaps vs competitor.com"

```
1. POST /api/agent/competitors/scout  { "domain": "competitor.com", "mode": "ultimate" }
2. POST /api/agent/gaps/generate  { "competitor_urls": ["https://competitor.com/blog"] }
3. GET /api/agent/gaps
4. Return top 10 gaps sorted by opportunity score
```

Estimated cost: 50 + 40 = **90 credits**

---

### Example 3 — "Full morning briefing"

```
1. POST /api/agent/scout/x    { "query": "[your niche]", "mode": "fast" }
2. POST /api/agent/scout/reddit  { "query": "[your niche]", "subreddits": [...] }
3. Poll both runs in parallel
4. GET /api/agent/gaps  (use cached gaps from last generate)
5. Compile briefing: trending topics + audience pain points + open content gaps
```

Estimated cost: 35 + 30 = **65 credits** (gaps free if cached)

---

## API Reference

### Glue endpoints

| Endpoint            | Method | Credits | Description                        |
| ------------------- | ------ | ------- | ---------------------------------- |
| `/api/agent/health` | GET    | 0       | Service health check               |
| `/api/agent/me`     | GET    | 0       | Your account info, credits balance |
| `/api/agent/status` | GET    | 0       | Current run statuses               |

### Scout endpoints

#### `POST /api/agent/scout/x`

Start an async X/Twitter trend scout run.

| Parameter | Type                 | Required | Description                                                                   |
| --------- | -------------------- | -------- | ----------------------------------------------------------------------------- |
| `query`   | string               | yes      | Topic or keyword to scout                                                     |
| `mode`    | `fast` \| `ultimate` | no       | `fast` = top posts (35cr), `ultimate` = deep analysis (70cr). Default: `fast` |
| `limit`   | number               | no       | Max results to return (default: 20, max: 50)                                  |

**Response:** `{ run_id, status: "processing", estimated_seconds }`

---

#### `GET /api/agent/scout/x/{run_id}`

Poll X scout run status and results.

**Response when processing:** `{ run_id, status: "processing" }`

**Response when completed:** `{ run_id, status: "completed", results: [...], credits_used }`

Credits: **0** (polling is free)

---

#### `POST /api/agent/scout/reddit`

Start an async Reddit trend scout run.

| Parameter    | Type     | Required | Description                                                   |
| ------------ | -------- | -------- | ------------------------------------------------------------- |
| `query`      | string   | yes      | Topic or keyword to scout                                     |
| `subreddits` | string[] | no       | Specific subreddits to search (default: auto-select by topic) |
| `limit`      | number   | no       | Max results (default: 15, max: 30)                            |

**Response:** `{ run_id, status: "processing", estimated_seconds }`

Credits: **30 per run**

---

#### `GET /api/agent/scout/reddit/{run_id}`

Poll Reddit scout run status and results.

Credits: **0** (polling is free)

---

#### `POST /api/agent/gaps/generate`

Analyze competitor content and generate gaps for your blog. Synchronous.

| Parameter         | Type     | Required | Description                           |
| ----------------- | -------- | -------- | ------------------------------------- |
| `competitor_urls` | string[] | yes      | Blog/content URLs to analyze (max: 5) |

**Response:** `{ status: "completed", gaps_count, top_gaps: [...], credits_used }`

Credits: **40 per call**

---

#### `GET /api/agent/gaps`

Retrieve all previously generated content gaps for your account.

Credits: **0**

---

#### `POST /api/agent/competitors/discover`

Find competitors by keywords.

| Parameter  | Type     | Required | Description                                       |
| ---------- | -------- | -------- | ------------------------------------------------- |
| `keywords` | string[] | yes      | Keywords that define your niche (min: 1, max: 10) |

**Response:** `{ competitors: [{ domain, relevance_score, category }], credits_used }`

Credits: **20 per call**

---

#### `POST /api/agent/competitors/scout`

Deep-analyze a competitor's content strategy.

| Parameter | Type                 | Required | Description                                                                  |
| --------- | -------------------- | -------- | ---------------------------------------------------------------------------- |
| `domain`  | string               | yes      | Competitor domain (e.g. `jasper.ai`)                                         |
| `mode`    | `fast` \| `ultimate` | no       | `fast` = summary (25cr), `ultimate` = full deep-dive (50cr). Default: `fast` |

**Response:** `{ domain, content_strategy, top_performing_content, weaknesses, credits_used }`

Credits: **25 (fast) / 50 (ultimate)**

---

## Pricing

| Action                      | Credits |
| --------------------------- | ------- |
| Scout X — fast              | 35      |
| Scout X — ultimate          | 70      |
| Scout Reddit                | 30      |
| Content gaps generate       | 40      |
| Retrieve gaps (cached)      | 0       |
| Discover competitors        | 20      |
| Scout competitor — fast     | 25      |
| Scout competitor — ultimate | 50      |
| Polling (any run)           | 0       |
| Health / me / status        | 0       |

Credits are deducted at job start. Failed runs are refunded automatically.

Top up credits at: https://www.citedy.com/dashboard/billing

---

## Rate Limits

| Category                    | Limit                |
| --------------------------- | -------------------- |
| Scout (X + Reddit combined) | 10 runs / hour       |
| Content gaps generate       | 10 calls / hour      |
| Competitor scout            | 20 calls / hour      |
| General API                 | 60 requests / minute |

Rate limit headers are returned on every response:

```
X-RateLimit-Limit: 10
X-RateLimit-Remaining: 7
X-RateLimit-Reset: 1709295600
```

---

## Limitations

- **X scout** requires topics with sufficient public English-language conversation (min ~100 recent posts)
- **Reddit scout** works best for niches active on Reddit; B2B topics may have fewer results
- **Gaps generate** analyzes content at the URL level — paywalled or JS-only content may not be fully indexed
- **Competitor scout** covers publicly accessible content only
- **Async runs expire** after 24 hours — poll results within that window
- Scout results reflect data at time of run; real-time trends can shift within hours

---

## Error Handling

| HTTP Status | Code                   | Meaning                                              |
| ----------- | ---------------------- | ---------------------------------------------------- |
| 401         | `unauthorized`         | Invalid or missing API key                           |
| 402         | `insufficient_credits` | Not enough credits for this operation                |
| 404         | `run_not_found`        | Run ID doesn't exist or expired                      |
| 422         | `validation_error`     | Invalid request parameters                           |
| 429         | `rate_limited`         | Too many requests — check `X-RateLimit-Reset` header |
| 500         | `internal_error`       | Server error — run will be auto-refunded             |

**Error response format:**

```json
{
  "error": {
    "code": "insufficient_credits",
    "message": "This operation requires 35 credits, you have 12.",
    "required": 35,
    "available": 12
  }
}
```

**On 429:** Wait until `X-RateLimit-Reset` timestamp, then retry.

**On 500:** The run is automatically refunded. Retry after 30 seconds.

---

## Response Guidelines

When presenting scout results to the user:

1. **Lead with action** — don't just list topics, suggest the best content angle for each
2. **Prioritize by opportunity** — sort by engagement_score or relevance, not alphabetically
3. **Cross-reference signals** — a topic trending on both X and Reddit is a stronger signal than one platform alone
4. **Connect gaps to trends** — the best opportunities are content gaps that are _also_ trending
5. **Be specific** — "Write about AI tools" is useless; "Write a comparison of Jasper vs Citedy targeting budget-conscious e-commerce teams (trending on r/SEO, 847 upvotes)" is actionable

---

## Want More?

This skill covers trend scouting, competitor analysis, and content gaps.

For the full Citedy agent suite:

- **Article Autopilot** — generate full SEO articles from topics found here
- **Social Poster** — adapt articles to LinkedIn, X, Reddit, Instagram automatically
- **Video Shorts** — turn articles into short-form video content
- **Lead Magnets** — create checklists, swipe files, and frameworks from your content

Register at https://www.citedy.com or contact team@citedy.com for enterprise plans.
