MCPMCP-Tools/Bewertungseinladungen
Bewertungseinladungen
Bewertungseinladungs-Kampagnen, Vorlagen und Empfänger erstellen und verwalten.
- Writecreate_review_campaignCreate a new review-invite (acquisition) campaign — an email/SMS flow that asks customers to leave a review, screens them by rating, and routes happy customers to a public review site. Created as a draft; use run_campaign_action with op "publish" to launch it once configured. locationId is required; everything else can be filled in now or with update_review_campaign later — what a launch needs (a From and subject for email, a text message for SMS, a review site) is checked at launch, so get_campaign_readiness says what is still missing. A value that can't be right (a name outside 2–50 characters, an unknown channel, a malformed address, happy stars outside 1–5, an unreadable schedule) is refused. Requires ReviewGen in the agency's plan. Returns the created campaign. You don't pass an agency — it comes from your credentials.
- Writeupdate_review_campaignEdit 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.
- Writerun_campaign_actionRun a lifecycle action on a review-invite campaign. Every action requires ReviewGen in the agency's plan. Actions: "publish" launches the campaign — if autoSend is on this starts sending real emails/SMS to recipients immediately, and it is refused with an explanatory error until the campaign has what it sends (at least one review site; for EMAIL a From address, a subject and a subject on every enabled follow-up; for SMS a text message and the review site it links to; a schedule still in the future) and, per channel, a verified sending domain for the client (EMAIL) and a carrier-verified number for the location (SMS); "stop" halts an active campaign; "clone" duplicates it as a new draft (returns the clone); "autoSend" turns automatic sending on/off for new recipients (pass `on`); "archive" archives it (only allowed once stopped — a still-active campaign is silently skipped, check the response); "unarchive" restores an archived campaign. Identify the campaign by its id.
- Writeadd_campaign_recipientsAdd recipients to a review-invite campaign. Each recipient needs a name of at least 2 characters and the address the campaign sends to: an email address for an email campaign, a phone number for a text-message campaign, either for one that does both. A list with a recipient that doesn't qualify is refused whole, with which rows and why. Phone numbers for a campaign that sends text messages are only accepted with smsConsent: true, which records that these people agreed to get texts — set it only when the person you're helping has told you the consent script was read to them and they agreed; never assume it. If the campaign is already launched with autoSend on, adding recipients here immediately triggers a real send to the new rows — not just a data insert. Requires ReviewGen in the agency's plan. Returns the number of recipients added. Identify the campaign by its id (from list_review_campaigns or create_review_campaign).
- Readlist_invite_templatesList the agency's saved review-invite message templates (reusable email/SMS content for campaigns). Use this to find a template's id before update_invite_template or delete_invite_template. Requires ReviewGen in the agency's plan.
- Writecreate_invite_templateCreate a reusable review-invite message template. `content` is the rich-text JSON shape the campaign builder's editor produces (pass the same shape as an existing template's `content` if adapting one). Optionally assign it to specific locations so it shows as a suggested template there. Requires ReviewGen in the agency's plan. Returns the created template.
- Writeupdate_invite_templateEdit an existing review-invite template. Pass only the fields you want to change. Identify the template by its id (from list_invite_templates). Requires ReviewGen in the agency's plan. Returns the updated template, or throws if not found.
- Writedelete_invite_templatePermanently delete a review-invite template. This does not affect campaigns already using its content — it only removes the reusable template. Identify the template by its templateId (from list_invite_templates). Requires ReviewGen in the agency's plan.
- Readget_campaign_readinessCheck what launching a review-invite campaign would run into, WITHOUT launching it: `canLaunch`, every unmet prerequisite in `blockers` (code + explanation — what the campaign still has to say, such as a From, a subject, a text message or a review site; a schedule still in the future; a verified sending domain for EMAIL, a carrier-approved number for SMS, a valid campaignType), `warnings` (no recipients, none with an email, none with SMS consent) and recipient coverage counts. Run this before run_campaign_action publish; it uses the same checks the launch does. Requires ReviewGen in the agency's plan.
- Readlist_campaign_deliveryPer-recipient delivery results for a campaign after it was sent: each recipient's outcome (pending, skipped, sent, delivered, bounced, failed, unsubscribed), a reason for bounces/failures/skips, and the tool that repairs it (`recovery`: update_campaign_recipient to correct the address or number). `skipped` means sending stopped for that person (no usable email or phone, no SMS consent, unsubscribed/opted out, or too old to invite) — they are not queued; only an address problem has a repair, and missing consent or an opt-out is never retried. `counts` gives the whole campaign's split by outcome. Filter with `outcome` to find just the failures; paginated (follow hasMore). Delivered recipients are never offered a repair, so fixing the failed ones doesn't resend to the rest. Requires ReviewGen in the agency's plan.
- Readfind_campaign_recipientsSearch the agency's review-invite recipients by name, email or phone, across every campaign, location and source (manual, CSV, CRM). Use this when you know who someone is but not which campaign or location they're in — unlike list_campaign_recipients, this needs no clientId or locationId. Returns matching contacts with their id, campaign, location, source, contact type, and whether they've already been messaged. The id is what update_campaign_recipient and move_campaign_recipients take. Requires ReviewGen in the agency's plan.
- Writeupdate_campaign_recipientCorrect a review-invite recipient's details — name, email, phone or contact type. Pass only the fields you're changing. Identify the recipient by id (from find_campaign_recipients or list_campaign_recipients). Editing email or phone on a contact who has ALREADY been messaged is refused: the delivered message and any reply are tied to the address it went to, so changing it would misattribute them. Requires ReviewGen in the agency's plan. Returns the updated contact.
- Writemove_campaign_recipientsMove review-invite recipients to a campaign at a different location — the fix when an import filed contacts under the wrong branch. A recipient's location IS its campaign's location, so this takes a target campaignId; use list_review_campaigns to find campaigns at the location you want. Contacts that have already been messaged cannot be moved (the delivered message belongs to the location it was sent from), and moving pending contacts into a live auto-sending campaign is refused unless you pass allowSend:true, because it would message them immediately. Requires ReviewGen and access to every source and target client. Only pass allowSend:true after the person explicitly approves the resulting messages. Returns how many moved.
- Readlist_review_invite_responsesRead published review-invitation responses or summary statistics (view:stats). Scope is limited to the active user's clients and credential. Optional locationId; pages start at zero with 20 rows. Custom dates are inclusive UTC days. Requires ReviewGen and Reviews access.
- Readlist_internal_review_responsesRead first-party private review responses with rating, sentiment, text and widget-eligibility filters. Optional locationId; pages start at zero with 20 rows. Requires ReviewGen and access to each owning client.
- Readlist_review_invite_delivery_errorsRead failed, bounced or unsubscribed invitation deliveries within the caller's clients. Optional locationId; pages start at zero, pageSize 1–100. Provider errors are replaced with safe delivery descriptions. Requires ReviewGen and Reviews access.
- Readget_review_campaign_analyticsRead saved campaign configuration and analytics. Null metrics mean unavailable. Requires ReviewGen and access to the campaign's owning client.
- Readget_recipient_acquisitionsRead a contact's campaign memberships, delivery/reply history and actual Credits at the same location. An unmetered membership has creditsTotal:null. Requires ReviewGen and owning-client access.
- Readlist_recipient_move_targetsList draft or launched review campaigns at a location that can accept recipients. requiresSendOptIn identifies a live auto-sending destination. Requires ReviewGen and owning-client access.
- Writedelete_review_invite_recipientRemove a contact's unsent memberships at its location. Already messaged memberships and replies are preserved and reported as keptBecauseSent. Requires ReviewGen and owning-client access.
- Writeimport_review_invite_crm_contactsPreview or queue an import from a connected CRM. Preview fetches live contacts and defaults to 500 (max 5000); optional mapping is preview-only and never saved. Import uses saved routing, can send live email/SMS and consume Credits; require the person's explicit approval of those sends before allowSend:true. Check runId with get_review_invite_crm_import; never treat queued as completed. queue_unknown means check that run before retrying. Requires unrestricted agency owner/admin, unrestricted credential and ReviewGen.
- Readget_review_invite_crm_importRead a CRM import run's status and counts. Queued/running is not completion. Omits raw provider payloads and errors. Requires unrestricted agency owner/admin, unrestricted credential and ReviewGen.