sdkDeterministic

Save onboarding context

pipeline.saveOnboardingContext

Validate and deterministically persist a coding-agent-authored onboarding artifact into the GTM context, default ICP, personas, offerings, case studies, and competitors used by Launchpad. Does not invoke Pipeline hosted inference.

Parameters

workspaceIdrequired
string
No description.
artifactrequired
object
No description.

Example

TypeScripttypescript
await pipeline.saveOnboardingContext({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"artifact": {
"companyName": "example",
"websiteUrl": "https://example.com",
"serviceDescription": "example",
"icpSummary": "example",
"companyEvidence": {
"origin": "public_source",
"sourceUrls": [
"https://www.linkedin.com/sales/lists/people/1"
]
},
"icpEvidence": {
"origin": "public_source",
"sourceUrls": [
"https://www.linkedin.com/sales/lists/people/1"
]
},
"targetTitles": [
"example"
],
"targetIndustries": [
"example"
]
}
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"saved": {
"type": "boolean"
},
"workspaceId": {
"type": "string"
},
"counts": {
"type": "object",
"properties": {
"personas": {
"type": "number"
},
"offerings": {
"type": "number"
},
"caseStudies": {
"type": "number"
},
"competitors": {
"type": "number"
}
},
"required": [
"personas",
"offerings",
"caseStudies",
"competitors"
]
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"saved",
"workspaceId",
"counts"
]
}

Exceptions

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