sdkHosted AI, explicit consent

Create strategy ideas

pipeline.createStrategyIdeas

Run the Strategist diverge pass: brainstorm and curate campaign ideas (hook angle, archetype, personalization elements, CTA, proof point, differentiation, estimated audience) for your workspace. Same canonical engine the in-app Strategist uses, so the output matches the UI. Pass guidance when the operator has a specific ICP, offer, signal source, competitor post, or playbook direction. Returns { agentRunId, ideas }. Pick the strongest idea id and pass it to create-campaign-brief.

Parameters

workspaceId
string
Optional with an API key (inferred from the key).
ideaCount
number
How many curated winner ideas to return (1-10, default 5).
guidance
string
Optional operator guidance to steer the brainstorm, such as ICP, offer, signal source, competitor post URL, or playbook direction.
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.

Example

TypeScripttypescript
await pipeline.createStrategyIdeas({
"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