{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentseo-dev/json-schema/agentseo-dev-keyword-cluster-response-schema.json",
  "title": "KeywordClusterResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentseo-dev-keyword-cluster-api-openapi.yml#/components/schemas/KeywordClusterResponse",
  "type": "object",
  "properties": {
    "total_keywords": {
      "type": "integer"
    },
    "clusters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cluster_id": {
            "type": "string"
          },
          "intent": {
            "type": "string"
          },
          "priority": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ]
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "cluster_plan": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "canonical_clusters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "cluster_id": {
                "type": "string"
              },
              "intent": {
                "type": "string"
              },
              "priority": {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              },
              "primary_keyword": {
                "type": "string"
              },
              "page_type": {
                "type": "string"
              },
              "keyword_count": {
                "type": "integer"
              },
              "rationale": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "agent_workflow": {
      "$ref": "#/$defs/AgentWorkflow"
    },
    "markdown_summary": {
      "type": "string"
    }
  },
  "$defs": {
    "AgentWorkflow": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "decision": {
          "type": "string",
          "enum": [
            "ready",
            "act_now",
            "monitor",
            "blocker"
          ]
        },
        "confidence": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "recommended_actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowAction"
          }
        },
        "evidence": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowEvidence"
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "next_calls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowNextCall"
          }
        }
      }
    },
    "AgentWorkflowAction": {
      "type": "object",
      "properties": {
        "priority": {
          "type": "string",
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        },
        "action": {
          "type": "string"
        },
        "why": {
          "type": "string"
        }
      }
    },
    "AgentWorkflowEvidence": {
      "type": "object",
      "properties": {
        "finding": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        }
      }
    },
    "AgentWorkflowNextCall": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      }
    }
  }
}