Map AI Prompts

Workflow contract for discovering buyer prompts, question clusters, and tracking prompts from market data signals.

Overview

Workflow endpoints run their primitives in parallel and return each primitive's full output, labeled per source. Pricing is calculated from the primitives that ran successfully plus the selected model rates: failed or skipped steps are not charged.

Reference

POST/v1/workflows/ai-prompt-map

$0.74 · flat per call

Parameters

topicrequiredstringMarket, product category, buyer problem, or audience to map prompts for.
audienceoptionalstringOptional target audience or ICP.
brandoptionalstringOptional brand/domain to include in prompt tracking recommendations.
competitorsoptionalstring[]Competitor brands/domains to include in comparison prompts.
countryoptionalstringISO-2 country code for localized SEO keyword data. Default: "us".
timeframeoptionalstringTrend window for demand checks. Default: "past_12_months".
modelsoptionalarray of enum (chatgpt | claude | perplexity | gemini | google_ai_overview)Optional model subset. Omit to query the default surfaces (chatgpt, perplexity, gemini). Pass ["perplexity"] or ["perplexity","claude"] when the user names specific surfaces or wants to reduce cost. The full set is chatgpt, claude, perplexity, gemini, google_ai_overview — to query all of them, set fullSweep instead of listing them.
fullSweepoptionalbooleanQuery all five AI surfaces instead of the three default ones, adding claude and google_ai_overview. Costs more per call. Use it when the user wants complete cross-model coverage, is comparing surfaces against each other, or asks specifically about Claude or Google AI Overviews. Ignored when models is given.

Request

curl https://www.cite42.dev/api/v1/workflows/ai-prompt-map \
  -X POST \
  -H "Authorization: Bearer $CITE42_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic":"AI search optimization for SaaS","audience":"B2B SaaS founders","competitors":["Peec AI","Profound"]}'

Response

{
  "status": "workflow_result",
  "workflow": "map_ai_prompts",
  "summary": "Discover buyer and market prompts worth tracking.",
  "input": {
    "topic": "AI search optimization for SaaS",
    "audience": "B2B SaaS founders",
    "competitors": [
      "Peec AI",
      "Profound"
    ]
  },
  "results": [
    {
      "endpoint": "/v1/reddit/trends",
      "tool": "cite42_reddit_trends",
      "why": "Add real audience questions and repeated language.",
      "data": {
        "topic": "AI search optimization",
        "timeframe": "past_30_days",
        "provider": "reddit",
        "subredditsSearched": [
          "all"
        ],
        "risingThreads": [
          {
            "title": "How are people tracking AI citations?",
            "subreddit": "SEO",
            "url": "https://www.reddit.com/r/SEO/comments/example",
            "permalink": "/r/SEO/comments/example",
            "score": 83,
            "comments": 21,
            "createdAt": "2026-07-18T10:30:00.000Z"
          }
        ],
        "repeatedQuestions": [
          {
            "question": "How do I track AI citations?",
            "count": 3,
            "examples": [
              "How are people tracking AI citations?"
            ]
          }
        ],
        "painPoints": [
          {
            "phrase": "Confused",
            "count": 2,
            "examples": [
              "Confused about measuring AI visibility"
            ]
          }
        ],
        "repeatedPhrases": [
          {
            "phrase": "ai citations",
            "count": 6
          }
        ],
        "mentionedProducts": [
          {
            "name": "Cite42",
            "count": 2
          }
        ],
        "subredditBreakdown": [
          {
            "subreddit": "SEO",
            "posts": 8,
            "totalScore": 214,
            "totalComments": 63
          }
        ],
        "sourceUrls": [
          "https://www.reddit.com/r/SEO/comments/example"
        ],
        "fetchedAt": "2026-07-20T12:00:00.000Z"
      },
      "ok": true
    }
  ],
  "suggestedPrompt": "Cluster these questions by intent and prioritize prompts to track."
}