sdkDeterministic

Save campaign sequence touches

pipeline.saveCampaignSequenceTouches

Persist externally authored LinkedIn sequence touches into the same Launchpad Messaging store used by the UI. This is deterministic, invokes no hosted model, records current brief, skill, table, evidence, fallback, and operation provenance, and leaves every touch in draft status.

Parameters

workspaceId
string
Optional with API-key auth. Inferred from the key.
briefIdrequired
string
No description.
tableIdrequired
string
No description.
workOrderId
string
Claimed external Writer work-order ID.
bundleId
string
Claimed external Writer execution-bundle ID.
touchesrequired
object[]
No description.

Example

TypeScripttypescript
await pipeline.saveCampaignSequenceTouches({
"briefId": "00000000-0000-4000-8000-000000000000",
"tableId": "00000000-0000-4000-8000-000000000000",
"touches": [
{
"rowId": "00000000-0000-4000-8000-000000000000",
"touchIndex": 0,
"channel": "connection_note",
"outputRole": "example",
"body": "example",
"framework": "example",
"selectedBranch": "example",
"evidence": {
"fact": "example",
"sourceUrl": "https://example.com"
},
"operations": [
"example"
]
}
]
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"saved": {
"type": "number"
},
"touches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"rowId": {
"type": "string"
},
"touchIndex": {
"type": "number"
},
"channel": {
"type": "string",
"enum": [
"connection_note",
"linkedin_dm"
]
},
"outputRole": {
"type": "string"
},
"body": {
"type": "string"
},
"framework": {
"type": [
"string",
"null"
]
},
"score": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"draft",
"approved",
"rejected",
"sent"
]
},
"gatedOnAccept": {
"type": "boolean"
},
"daysAfterPrevious": {
"type": "number"
},
"provenance": {
"type": "object"
}
},
"required": [
"id",
"rowId",
"touchIndex",
"channel",
"outputRole",
"body",
"framework",
"score",
"status",
"gatedOnAccept",
"daysAfterPrevious",
"provenance"
]
}
}
},
"required": [
"saved",
"touches"
]
}

Exceptions

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