Parameters

NameTypeRequiredDescription
brandIdstringYesBrand ID from ocoya_list_brands.
promptstringYesCampaign prompt or brief. Describe the audience and the tone here — a sentence says more than a fixed list could.
goalstringNoOne of awareness, leads, launch, offer, education, event. Defaults to awareness.
durationnumberNoCampaign duration in days, from 1 to 30. Defaults to 7.
startDatestringNoDay of the first post, YYYY-MM-DD. Must be tomorrow or later. Defaults to tomorrow.
postsPerDaynumberNoHow often to post: 0.5 (every other day), 1, 2, 3 or 4. Omit to spread count posts evenly over duration.
countnumberNoNumber of posts to generate, from 1 to 30. Defaults to 7.
postLengthstringNoOne of short, medium, long, extra_long. Defaults to medium.
hashtagLibraryIdstringNoHashtag library ID from ocoya_list_hashtag_libraries.
socialProfileIdsstring[]NoConnected social profile IDs to attach when generated campaign posts are saved.
generateMediabooleanNoWhether to generate images for campaign posts.
imageCountnumberNoNumber of images to generate for each campaign post, from 1 to 10. Values above 1 create carousel-style post creatives. Defaults to 1.
referenceUrlsstring[]NoImage URLs to use as visual references when generateMedia is true. Maximum 3.
referenceDesignIdsstring[]NoStudio design IDs from ocoya_list_studio_templates to use as visual references when generateMedia is true. Maximum 3.

Request example

{
  "name": "ocoya_create_ai_campaign",
  "arguments": {
    "brandId": "cmayvq3hk00017apshay5qezu",
    "prompt": "Summer launch campaign for our ecommerce analytics dashboard, aimed at marketing teams already using spreadsheets. Confident, practical tone.",
    "goal": "launch",
    "duration": 10,
    "count": 6,
    "postLength": "medium",
    "hashtagLibraryId": "cmayw7l5200067apsmz2tv7e8",
    "socialProfileIds": ["clh49poxf008x8kov4ncbjty9"],
    "generateMedia": true,
    "imageCount": 3
  }
}

Returns

Returns the queued campaign ID, GENERATING status, and generation progress metadata.

This tool does not wait for generated posts. Campaign generation runs in the background, so clients should treat the immediate response as a queued job and check the campaign later in Ocoya.