sdkHosted AI, explicit consent

Create campaign brief

pipeline.createCampaignBrief

Expand a chosen idea into a full structured campaign brief (ICP rubric, targeting filters, required research signals, message decision tree, frameworks, cadence). For kind=campaign pass the ideaId from create-strategy-ideas. kind=content or engagement build single-shot from workspace context (no ideaId). The brief persists as draft; run activate-brief to launch it. Returns { agentRunId, brief, kind }.

Parameters

workspaceId
string
Optional with an API key (inferred from the key).
kind
string
Brief kind. Default campaign.
campaign | content | engagement
ideaId
string
Required when kind=campaign: the campaign idea to expand.
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.

Example

TypeScripttypescript
await pipeline.createCampaignBrief({
"allowHostedAi": true
})

Response

The operation is available, but its typed response schema has not been published yet.

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline