Aller au contenu

create_campaign

Start a new campaign

Action · mcp:actIdempotent

Ouvre une campagne de plus dans le workspace, en brouillon vide, et en fait la campagne courante — seulement quand l'utilisateur a demandé une nouvelle campagne, sous le nom qu'il a donné ou approuvé. Rien n'est acheté ni envoyé.

Description lue par le modèleEnvoyée telle quelle dans tools/list, en anglais.
Open one more campaign in the workspace, as an empty draft, and make it the current one — only when the user asked for a new campaign, under the name they gave or approved. It starts with no target, playbook, sequence or leads of its own; the offer, plan and sending setup are the workspace's. Nothing is bought or sent. Calling it again with the same name returns the campaign already opened.

L'utilisateur dit

Lance une nouvelle campagne qui s'appelle « Cliniques BE — T1 ».

tools/call · Arguments envoyés par l'assistant
{
"name": "create_campaign",
"arguments": {
"name": "Clinics BE — Q1"
}
}
namestringobligatoire1–120 caractères

The campaign name, as the user gave or approved it.

Schéma d'entrée
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The campaign name, as the user gave or approved it."
}
},
"required": ["name"]
}

Sorte de résultatcampaign_update

kind"campaign_update"
outcomestring

What happened, in a sentence.

campaignobjet
  • id string — The campaign id: pass it to select_campaign or rename_campaign.
  • name string
  • state string — The campaign state code.
  • stateLabel string — The campaign state, in words.
  • current boolean — True for the campaign every tool of this connection works on right now.
  • mailboxes integer — Sending mailboxes assigned to it.
appUrlstring
Schéma de sortie
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "campaign_update"
},
"outcome": {
"type": "string",
"description": "What happened, in a sentence."
},
"campaign": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The campaign id: pass it to select_campaign or rename_campaign."
},
"name": {
"type": "string"
},
"state": {
"type": "string",
"description": "The campaign state code."
},
"stateLabel": {
"type": "string",
"description": "The campaign state, in words."
},
"current": {
"type": "boolean",
"description": "True for the campaign every tool of this connection works on right now."
},
"mailboxes": {
"type": "integer",
"description": "Sending mailboxes assigned to it."
}
},
"required": ["id", "name", "state", "stateLabel", "current", "mailboxes"],
"additionalProperties": false
},
"appUrl": {
"type": "string"
}
},
"required": ["kind", "outcome", "campaign", "appUrl"],
"additionalProperties": false
}
  • Elle démarre sans cible, playbook, séquence ni leads à elle ; l'offre, le forfait et l'infrastructure d'envoi sont ceux du workspace.
  • La rappeler avec le même nom renvoie la campagne déjà ouverte, de nouveau courante.
  • Refusé quand list_campaigns indique canCreate à false.