MCPOutils MCP/Invitations à laisser un avis/add_campaign_recipients

add_campaign_recipients

Writereview-invite:write

Add recipients to a review-invite campaign. Each recipient needs at least an email or phone. If the campaign is already launched with autoSend on (and sends both email and SMS), adding recipients here immediately triggers a real send to the new rows — not just a data insert. Returns the number of recipients added. Identify the campaign by its id (from list_review_campaigns or create_review_campaign).

Paramètres
campaignIdstringobligatoire
The id of the campaign to add recipients to (required).
recipientsobject[]obligatoire
One or more recipients to add.
namestringfacultatif
Recipient's name.
emailstringfacultatif
Recipient's email address.
phonestringfacultatif
Recipient's phone number.
sourcestringfacultatif
Where this recipient came from, e.g. "manual", "csv", "pos".
contactTypestringfacultatif
Contact type, if tracked (e.g. "customer").
channelstringfacultatif
Preferred send channel for this recipient, e.g. "email" | "sms".
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_campaign_recipients",
    "arguments": {
      "campaignId": "string",
      "recipients": [
        {}
      ]
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.