{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/virlo-ai/json-schema/virlo-ai-v1-create-agent-dto-schema.json",
  "title": "V1CreateAgentDto",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/virlo-ai-openapi.json#/components/schemas/V1CreateAgentDto",
  "type": "object",
  "properties": {
    "is_recurring": {
      "type": "boolean",
      "description": "Whether the agent runs on a schedule (true) or once (false). Recurring agents require `cadence`."
    },
    "intent": {
      "type": "string",
      "description": "What you want this agent to research, in plain language. Drives keyword quality, on-topic filtering, and the agent’s self-optimization. Required."
    },
    "keywords": {
      "description": "Keywords to search for (1-50). Hashtag-style tokens are normalised (a leading \"#\" is stripped, whitespace collapsed). Autopilot always keeps every keyword you send and only adds around them.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "name": {
      "type": "string",
      "description": "Human-friendly name for the agent."
    },
    "platforms": {
      "type": "array",
      "description": "Platforms to collect from.",
      "default": [
        "youtube",
        "tiktok",
        "instagram"
      ],
      "items": {
        "type": "string",
        "enum": [
          "youtube",
          "tiktok",
          "instagram",
          "meta_ads"
        ]
      }
    },
    "cadence": {
      "type": "string",
      "description": "Schedule cadence for recurring agents: \"daily\", \"weekly\", \"monthly\", or a cron expression (minimum daily). Required when is_recurring=true. On a one-time agent (is_recurring=false) it is ignored without being validated, and the agent comes back with cadence null."
    },
    "exclude_keywords": {
      "description": "Noise terms to filter out — matched as WHOLE WORDS against captions + hashtags, so use the single word people actually type for the OTHER meaning (researching Apple the company, not the fruit? exclude `recipe`, `fruit`, `orchard`), not multi-word phrases like `apple the fruit` (which never match). Never exclude a word that is part of your own topic. Tip: suggest-keywords returns a ready exclude_keywords list you can pass straight in.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exclude_keywords_strict": {
      "type": "boolean",
      "description": "If true, also match exclude_keywords against the video transcript (speech), not just the caption/hashtags — use when the noise word is spoken but rarely written. Default false.",
      "default": false
    },
    "meta_ads_enabled": {
      "type": "boolean",
      "description": "Enable Meta ads collection (adds the meta_ads platform).",
      "default": false
    },
    "data_intelligence_enabled": {
      "type": "boolean",
      "description": "Enable per-video AI intelligence: 79 structured fields per analyzed video and 70 per analyzed slideshow, covering topics, hooks, sentiment, brand safety, on-screen people and AI provenance. Not every item is analyzed: content that is off-intent, more than a year old (unless among the run's top performers), or that got no more views than its creator has followers is skipped and returns `intelligence_status: \"skipped\"`. Adds $1.00 (100 credits) per run on top of the $0.50 base, so $1.50 per run in total. Recurring agents (is_recurring: true) pay it on every run, not at creation.",
      "default": false
    },
    "english_only": {
      "type": "boolean",
      "description": "When true (default), only English-language content is collected. Set false to collect content in any language — keywords are generated in the language of your agent name and intent.",
      "default": true
    },
    "autopilot": {
      "type": "boolean",
      "description": "Autopilot keeps a recurring agent finding new videos after each run: it rewords searches, adds keywords and follows breaking stories in your niche. On by default. It never removes a keyword or exclude term you set and never adds charges. Set false to keep the configuration exactly as you send it. One-time agents are unaffected.",
      "default": true
    }
  },
  "required": [
    "is_recurring",
    "intent",
    "keywords"
  ]
}