Campaign Pack

v0.1.1
ai.campaignpack/campaignpack Checked 1 day ago Published 25 days ago

Turn 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.

ParameterTypeDescription
brand *stringThe brand name, spelled exactly as the customer spells it. Every mention in the pack is rewritten to match this.
brief *stringWhat 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.
photostringWorkspace path from upload_product_photo. Required for the image sizes: the stills are edited from the real photo rather than generated from nothing.
sizestringPack 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.

ParameterTypeDescription
job_idstringJob id returned by start_campaign.
session_idstringCampaign 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.

ParameterTypeDescription
job_idstringJob id returned by start_campaign.
session_idstringCampaign 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.

ParameterTypeDescription
limitintegerHow 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 '/'.

ParameterTypeDescription
pathstringFolder to list, relative to the workspace. Omit or '.' for the top level.
session_idstringLook 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.

ParameterTypeDescription
path *stringFile path relative to the workspace, as shown by list_workspace_files.
session_idstringRead 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.

ParameterTypeDescription
path *stringFile path relative to the workspace, as shown by list_workspace_files.
session_idstringLink 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.

ParameterTypeDescription
data_base64 *stringThe image file's bytes, base64-encoded. The raw image, not a data: URL and not a path on your own machine.
filename *stringName to save it under, with the extension — 'bottle.jpg'. Reusing a name that is already there replaces that photo.

share_campaign Share a campaign

Give a teammate access to a campaign by email address — including while it is still running. They see the same live run from their own AI client or the website, can abort it, answer its approval prompts, and take the next turn. They must already have a Campaign Pack account; sharing does not create one.

ParameterTypeDescription
email *stringEmail address of the person to let in. They must already have a Campaign Pack account under this address; sharing does not create one or send an invitation.
session_id *stringCampaign to act on — the session id from start_campaign or check_campaign.

list_campaign_access List who can see a campaign

Who owns a campaign and who it is shared with.

ParameterTypeDescription
session_id *stringCampaign to act on — the session id from start_campaign or check_campaign.

unshare_campaign Remove someone's access

Revoke a collaborator's access. Takes effect on their next request.

ParameterTypeDescription
email *stringEmail address of the collaborator to remove. The owner cannot be removed this way.
session_id *stringCampaign 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.

ParameterTypeDescription
decision *stringWhat the person said: 'allow' to let the run go ahead, 'refuse' to deny it. This must be their answer, not yours.
job_id *stringJob id returned by start_campaign.

abort_campaign Stop a campaign

Stop a running campaign.

ParameterTypeDescription
job_id *stringJob id returned by start_campaign.