manage_campaigns
Create, change or archive a campaign
Create, update or archive one campaign, chosen with `action`. create: name and kind (organic, paid or mixed), optionally objective, dates, the person's own budget in minor units, and the strategy it follows; an opaque ref_code is generated for tracking links (pass request_key so a retry makes one campaign). update: change those fields or the status (draft, active, paused, completed) of an existing campaign; only what you send changes. archive: set it aside; its posts, links and results stay, and update can bring it back.
A campaign here is a plan and a label for reporting: making or activating one publishes nothing and spends nothing, and a budget is the person's plan, not spend. To create a campaign with its strategy and posts in one go use build_campaign; list_campaigns and get_campaign read.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
action |
string | yes | One of: create, update, archive |
campaign_id |
string | no | update and archive: the campaign id. |
name |
string | no | Required for create. Up to 160 characters. |
kind |
string | no | Default organic.One of: organic, paid, mixed |
objective |
string | no | One of: awareness, engagement, traffic, leads, sales |
status |
string | no | update only. Use action archive to archive.One of: draft, active, paused, completed |
starts_on |
string | no | First day, YYYY-MM-DD. |
ends_on |
string | no | Last day, YYYY-MM-DD. |
budget_minor |
integer | no | The person's own budget in minor units (øre, cents). Never invent one. |
currency |
string | no | ISO currency of the budget; defaults to the workspace currency. |
strategy_id |
string | no | The strategy brief this campaign follows (get_strategy). |
request_key |
string | no | create only: any unique string, so a retry does not create a second campaign. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
build_campaign · decide_strategy · get_campaign · get_strategy · list_campaigns · manage_hypotheses · save_strategy_draft