Create or update one prospect's video
create_or_update_videoCreate one prospect's video in a Pitchlane campaign, or with upsert create-or-update it. lead is keyed exactly as get_campaign's import_fields.create_or_update_video_keys lists (variable names such as first_name, website_0 on a campaign not set up for imports, the mapped column names such as First Name on one that is). Use it for the campaign's test video: the first lead, rendered, before the rest go in with add_videos (on a campaign not set up for add_videos this also sets the import up by variable name). Also to correct one lead. With render: true the video is queued; while the campaign's test video is not approved it becomes the new test video (at most 10 per organisation per day). Answers the video and renderQueue (whether it was queued, and why not).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>",
"lead": "<lead>"
},
"name": "create_or_update_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead | Yes | The lead's values, keyed as get_campaign's `import_fields.create_or_update_video_keys`, e.g. {"First Name":"Ada","Company URL":"https://example.com"} or, by variable name, {"first_name":"Ada","website_0":"https://example.com"}. | |
| title | No | The video's title. Without it the campaign's title template makes one. | |
| render | No | `true` (default): queue the video to render. `false`: store it only. | |
| upsert | No | `true`: create or update. If a video of the campaign has the same `original_uid` (or, without one, the same value in the campaign's duplicate field), that video is updated in place, and re-rendered with `render` when its values changed; otherwise a new video is created. Needs `original_uid` or a duplicate field set on the campaign. `false` (default): only create; a duplicate is refused. | |
| campaign_id | Yes | The campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`. | |
| original_uid | No | The user's own id for this lead (e.g. a CRM id). A lead with the same one, or the same value in the campaign's duplicate field, is refused as a duplicate unless `upsert`. |