Campaign Pack
v0.1.1Turn a product photo and a brief into a full ad campaign: scripts, stills, client-ready PDF.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_campaign Start a campaign
Start a marketing campaign pack on Campaign Pack's own GPUs. Produces a campaign plan, ideas, ad and social scripts, a creator brief, and a client-ready PDF — plus product stills on the image sizes. Returns immediately with a job id; the run itself takes minutes, so poll check_campaign rather than waiting. Write the brief yourself from what the user told you: the richer and more specific it is, the better the pack. Nothing is sent to any third-party model provider.
| Parameter | Type | Description |
|---|---|---|
brand * | string | The brand name, spelled exactly as the customer spells it. Every mention in the pack is rewritten to match this. |
brief * | string | What the product is, who it is for, what matters about it. A few sentences to a few paragraphs. State only facts the user gave you — invented metrics or customers end up in the finished pack. |
photo | string | Workspace path from upload_product_photo. Required for the image sizes: the stills are edited from the real photo rather than generated from nothing. |
size | string | Pack size. Available here: 'text' (about a minute), 'lite' (about ten minutes). |
check_campaign Check campaign progress
Progress of a running campaign: status, the tools it has just called, queue position, and whether it is waiting for a human approval. Poll about every 20 seconds.
| Parameter | Type | Description |
|---|---|---|
job_id | string | Job id returned by start_campaign. |
session_id | string | Campaign to follow, from list_campaigns. An alternative to job_id for a run started in another conversation; only works while it is still going. job_id wins when both are given. |
get_pack Get the finished pack
Collect a finished campaign: the folder, its files, the written overview, and the path to the PDF. Takes the job_id from start_campaign, or the session_id from list_campaigns — use session_id for a campaign run in an earlier conversation, where no job id survives.
| Parameter | Type | Description |
|---|---|---|
job_id | string | Job id returned by start_campaign. |
session_id | string | Campaign to collect, from list_campaigns. An alternative to job_id, not an addition: job_id wins when both are given. |
list_campaigns List past campaigns
Campaigns on this account, newest first, including ones shared with it. Start here when you do not already have an id — the ids from start_campaign only exist in the conversation that made them, so this is how you find a campaign from last week. Pass a session_id from here to get_pack to open one.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, newest first. Default 20. |
list_workspace_files List workspace files
List files and folders in the account's workspace — campaign folders, scripts, product stills, PDFs, uploads. Directories end in '/'.
| Parameter | Type | Description |
|---|---|---|
path | string | Folder to list, relative to the workspace. Omit or '.' for the top level. |
session_id | string | Look inside a campaign shared with this account rather than its own files. Omit for your own workspace. |
read_workspace_file Read a workspace file
Contents of a text file in the workspace — a script, the plan, the creator brief, a transcript. Large files are truncated. For a PDF, image or video call get_download_url instead.
| Parameter | Type | Description |
|---|---|---|
path * | string | File path relative to the workspace, as shown by list_workspace_files. |
session_id | string | Read from a campaign shared with this account rather than its own files. Omit for your own workspace. |
get_download_url Get a download link
A link the person can open to get one file — the campaign PDF, a product still, a video. Works for any file in the workspace, including ones too big or too binary to read as text. The link expires within the hour.
| Parameter | Type | Description |
|---|---|---|
path * | string | File path relative to the workspace, as shown by list_workspace_files. |
session_id | string | Link a file from a campaign shared with this account rather than its own files. Omit for your own workspace. |
upload_product_photo Upload a product photo
Put a product photo into the user's workspace so a campaign can edit stills from the real thing. Base64 of the image bytes.
| Parameter | Type | Description |
|---|---|---|
data_base64 * | string | The image file's bytes, base64-encoded. The raw image, not a data: URL and not a path on your own machine. |
filename * | string | Name to save it under, with the extension — 'bottle.jpg'. Reusing a name that is already there replaces that photo. |
list_campaign_access List who can see a campaign
Who owns a campaign and who it is shared with.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Campaign to act on — the session id from start_campaign or check_campaign. |
answer_approval Answer an approval prompt
Answer a paused run that wants to send the user's data somewhere outside Campaign Pack. Ask the person; never decide for them.
| Parameter | Type | Description |
|---|---|---|
decision * | string | What the person said: 'allow' to let the run go ahead, 'refuse' to deny it. This must be their answer, not yours. |
job_id * | string | Job id returned by start_campaign. |
abort_campaign Stop a campaign
Stop a running campaign.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Job id returned by start_campaign. |