Create a Pitchlane campaign
create_campaignCreate a Pitchlane campaign: a name, the pitch video (media id from create_media_from_url, type pitch_video) and the pages shown behind it, optionally an outro. With a pitch video and pages it is set up in the background (status processing): poll get_campaign until ready. With pages and no pitch video it is a draft with a recording_url: give that link to the user to record the pitch in Pitchlane's recording booth, which needs no media from you. With from_campaign_id it copies one of the user's campaigns; with a new pitch video too, the copy keeps the pages and their timing. That is the only way to change a campaign's pitch video. Media may still be processing when the campaign is created.
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": {
"name": "<name>"
},
"name": "create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The campaign's name, e.g. `Q1 outbound: agencies`. | |
| pages | No | The pages shown behind the pitch video, in order, at least one. Not with `from_campaign_id` unless the pages should be replaced. Example: [{"type":"lead_url","template":"website","duration_seconds":20,"scroll":"auto"},{"type":"url","url":"https://acme.com/pricing"}]. | |
| folder_id | No | The id of a folder to put the campaign in, as list_folders returns it. | |
| outro_enabled | No | Whether the outro plays. Defaults to `true` when `outro_media_id` is set. | |
| outro_media_id | No | The media id of a clip played after the pitch (type `outro_video`). | |
| title_template | No | A template for the videos' titles, e.g. `Video for {{first_name}}`. | |
| from_campaign_id | No | Start from a copy of this campaign of the user's (its pages and settings). | |
| language_preference | No | The language of the campaign's video pages, as a code, e.g. `de`. | |
| pitch_video_media_id | No | The media id of the recorded pitch (type `pitch_video`). |