MCPFerramentas MCP/Convites de avaliação/update_review_campaign
update_review_campaign
Writereview-invite:write
Edit an existing review-invite campaign's configuration. Pass only the fields you want to change; the same value rules as create_review_campaign apply. Requires ReviewGen in the agency's plan. Identify the campaign by its id (from list_review_campaigns or create_review_campaign). To change the campaign's lifecycle status (publish/stop/clone/archive) use run_campaign_action instead of setting `status` directly here. Returns the updated campaign, or throws if not found.
Parâmetros
campaignIdstringobrigatório
The id of the campaign to update (required).
namestringopcional
The campaign's display name, 2 to 50 characters.
clientIdstringopcional
The client this campaign belongs to. Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
locationIdstringopcional
The location this campaign sends invites for. Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
campaignType"email_sms" | "review_funnel"opcional
What kind of campaign: "email_sms" (default) sends to a recipient list on the channels set in `channels`; "review_funnel" is a shareable link / QR page that sends nothing. Email vs SMS is NOT a type — use `channels` for that.
channels"EMAIL" | "SMS" | "SMS_AND_EMAIL"opcional
Which channels the campaign sends on: one of these three, anything else is refused. Email requirements (fromEmail, an email subject, a verified sending domain) only apply when EMAIL is included; SMS needs a text message (smsBody), the review site it links to (smsReviewSite) and a carrier-verified number for its location.
fromEmailstringopcional
The sending "from" email address (requires a verified sending domain to actually send).
replyToEmailstringopcional
The reply-to email address.
emailSubjectstringopcional
The email's subject line.
emailBodyopcional
The campaign builder's editor template ({ blocks: [...], body: {...} }), kept so the campaign stays editable in the builder. It is NOT what gets sent — set `emailHtml` (HTML with merge tags {{firstName}} {{lastName}} {{businessName}} {{locationName}} {{locationAddress}} {{reviewSiteLink}}) to send custom content. Pass null to clear.
emailHtmlstringopcional
The HTML that is actually sent for email campaigns, with merge tags such as {{firstName}} and {{reviewSiteLink}}.
smsBodystringopcional
The SMS message text.
smsReviewSitestringopcional
Which review site the SMS link points to (by id). Yelp is not allowed.
reviewSitesobject[]opcional
The review site(s) offered to happy customers, e.g. [{ "name": "Google", "url": "https://g.page/r/…" }]. Review requesting is not allowed on Yelp: ticking a Yelp site (by name or a yelp.* URL) on a directory campaign is refused; an unchecked one is ignored.
namestringopcional
Display name, e.g. "Google".
urlstringopcional
The http(s) review link.
idstringopcional
Stable id; derived from the name when omitted.
checkedbooleanopcional
Whether this site is offered (default true).
custombooleanopcional
True for a site you added yourself rather than a built-in one.
screeningEnabledbooleanopcional
Review screening is currently unavailable and no campaign screens customers by star rating: a new campaign is saved with this false whatever you send, and an update leaves the campaign's stored value unchanged.
landingTitlestringopcional
Title shown on the campaign's landing/funnel page.
landingContentstringopcional
Body content shown on the campaign's landing/funnel page.
hideAddressbooleanopcional
Hide the business address on the landing page.
hideBusinessNamebooleanopcional
Hide the business name on the landing page.
hideImagebooleanopcional
Hide the business image on the landing page.
followupsobject[]opcional
Follow-up reminder schedule, e.g. [{ "key": "first", "enabled": true, "subject": "Quick reminder", "delayValue": 3, "delayUnit": "days" }].
key"first" | "second" | "unlimited"opcional
first and second are one-off reminders; unlimited repeats.
enabledbooleanopcional
Whether this follow-up sends.
subjectstringopcional
Follow-up email subject.
delayValuenumberopcional
How long after the previous send (the repeat interval for unlimited). Must be > 0.
delayUnit"days" | "hours"opcional
Unit for delayValue.
stopFollowupOnClickbooleanopcional
Stop sending follow-ups once the recipient clicks through.
scheduleAtopcional
ISO datetime to schedule the campaign launch for; it must still be in the future when the campaign is launched. Pass null/empty to send immediately on publish.
timezonestringopcional
IANA timezone for scheduling, e.g. "America/New_York".
autoSendbooleanopcional
Whether new recipients are sent to automatically once the campaign is launched. Can also be toggled with run_campaign_action's autoSend op.
staticUrlstringopcional
A static/QR review-request URL slug for this campaign, if used instead of (or alongside) email/SMS sends.
thankYouEnabledbooleanopcional
Whether to show a thank-you follow-up after a positive review.
thankYouSubjectstringopcional
Thank-you email subject.
thankYouBodystringopcional
Thank-you email body.
thankYouDelayHoursnumberopcional
Hours to wait before sending the thank-you follow-up.
funnelThresholdnumberopcional
Star rating (a whole number from 1 to 5) at or above which a respondent is sent to the public review sites; lower ratings go to private feedback.
funnelStyleobjectopcional
Funnel page styling.
bgColorstringopcional
Background colour, e.g. #ffffff.
starColorstringopcional
Star colour.
textColorstringopcional
Text colour.
logoUrlstringopcional
Logo image URL.
lowRankContentstringopcional
Content shown to respondents who rate below funnelThreshold.
hideFeedbackBoxbooleanopcional
Hide the free-text feedback box on the landing page.
collectMode"directory" | "internal"opcional
How feedback is collected on the landing page.
ratingMechanismopcional
Internal (collectMode "internal") campaigns only while review screening is unavailable: omit/null for 1-5 stars, or a two-option widget: { type: "two_option", positive: { icon, label }, negative: { icon, label } }. A directory campaign shows customers no rating step, so for one this is ignored: a new one is saved without it and an update leaves the stored value unchanged.
askNamebooleanopcional
Ask the respondent for their name.
askFeedbackbooleanopcional
Ask the respondent for free-text feedback.
Exemplo de solicitação
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "update_review_campaign",
"arguments": {
"campaignId": "string"
}
}
}Exemplo de resposta
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.