Build and save existing Studio creative records. When campaignId or campaignName is supplied, LeanrIQ resolves the complete persisted campaign inventory, uses each saved brief, approved asset set, and eligible global or advertiser template, then runs the canonical Studio Gold build path. Campaign-scoped calls save by default; use persistence preview_only only for an unsaved ad-hoc preview. (deprecated alias)
leanriq_build_adBuild and save existing Studio creative records. When campaignId or campaignName is supplied, LeanrIQ resolves the complete persisted campaign inventory, uses each saved brief, approved asset set, and eligible global or advertiser template, then runs the canonical Studio Gold build path. Campaign-scoped calls save by default; use persistence preview_only only for an unsaved ad-hoc preview.. Deprecated alias for build_ad. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | No | ||
| force | No | ||
| input | No | ||
| assets | No | ||
| prompt | No | ||
| seatId | No | ||
| taskId | No | ||
| assetId | No | ||
| audience | No | ||
| campaign | No | ||
| creative | No | ||
| flightId | No | ||
| seatName | No | ||
| template | No | ||
| accountId | No | ||
| objective | No | ||
| advertiser | No | ||
| campaignId | No | ||
| creativeId | No | ||
| templateId | No | ||
| creativeIds | No | ||
| persistence | No | ||
| advertiserId | No | ||
| instructions | No | ||
| idempotencyKey | No | ||
| requestedFormats | No | ||
| skipTraffickedRebuild | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| error | No | ||
| status | Yes | ||
| assistantSummary | Yes |