---
title: "AI visibility prompt-set builder"
method: POST
path: "/ai-visibility/prompt-set"
---

# AI visibility prompt-set builder

`POST /ai-visibility/prompt-set`

## Request

- Base URL: `https://www.agentseo.dev/api/v1`
- URL: `https://www.agentseo.dev/api/v1/ai-visibility/prompt-set`
- Auth: API key in header `x-api-key`

Build a stable AI visibility prompt set mapped to platforms, competitors, owned assets, citations, and weekly action routing. Costs 2 credits and does not run live LLM queries or call a paid search API.

## Query parameters

- `sync` boolean

## Headers

- `x-project-id` string
- `x-workflow-id` string

## Request body

- AiVisibilityPromptSetParams
  - `target` string, required
  - `category` string, required
  - `audience` string
  - `locale` string
  - `platforms` string[]
  - `competitors` string[]
  - `topics` string[], required
  - `product_terms` string[]
  - `personas` string[]
  - `owned_assets` object[]
    - `url` string, uri, required
    - `title` string, required
    - `page_type` 'homepage' | 'docs' | 'blog_post' | 'comparison' | 'pricing' | 'product' | 'case_study' | 'tool' | 'other'
    - `topics` string[]
  - `prompt_count` integer
  - `cadence` 'weekly' | 'biweekly' | 'monthly'
  - `include_citation_checks` boolean
  - `include_competitor_checks` boolean

## Response `200`

Completed AI visibility prompt-set workflow with agent_workflow

- AiVisibilityPromptSetResponse
  - `target` string
  - `ai_visibility_prompt_set` object
  - `agent_workflow` AgentWorkflow
    - `summary` string
    - `decision` 'ready' | 'act_now' | 'monitor' | 'blocker'
    - `confidence` number
    - `recommended_actions` AgentWorkflowAction[]
      - `priority` 'critical' | 'high' | 'medium' | 'low'
      - `action` string
      - `why` string
    - `evidence` AgentWorkflowEvidence[]
      - `finding` string
      - `detail` string
      - `severity` 'critical' | 'high' | 'medium' | 'low'
    - `limitations` string[]
    - `next_calls` AgentWorkflowNextCall[]
      - `endpoint` string
      - `reason` string
  - `markdown_summary` string

## Other responses

- `202`: Job queued or still processing

---

[API](https://skmtc.dev/agentseo/apis/agentseo-api.md) · [All operations](https://skmtc.dev/agentseo/apis/agentseo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentseo/apis/agentseo-api/revisions/53a62da6f92c?raw)
