Change the reputation rules
update_reputation_alertsChange the reputation rules; only the fields you pass change. The negative-spike alert fires when negative messages rise above the usual daily average (it needs sentiment analysis, which is OFF until the customer turns it on). For new reviews: alert the team at or below a star rating, and optionally reply automatically at or above one. Keep auto-replies to high ratings (4 stars and up): an automatic text under an angry review reads as a form letter, so those get an alert for a human instead. Choose the team that receives both; with no team it goes to owners and admins. Automatic replies are public: confirm the settings with the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | No | Team that receives it. Pass an empty string to go back to owners and admins. | |
| enabled | No | Turn the negative-spike alert on or off. | |
| minimum | No | Negative messages in a day before it is worth warning at all (default 3). Stops a single grumpy comment on a quiet account from firing an alarm. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. | |
| reviewAutoReply | No | Reply automatically to new reviews, in the brand voice. | |
| reviewReplyMode | No | How the reply is written: "ai" in the brand voice, or "template" using the texts in reviewReplyTemplates. | |
| sentimentAnalysis | No | Turn sentiment analysis on or off. It is OFF until the customer turns it on: nothing is measured before that, and the negative-spike alert needs it. | |
| reviewAlertMaxStars | No | Alert the team when a new review comes in at this rating or below (1-5). | |
| reviewReplyTemplates | No | Fixed reply texts, used when reviewReplyMode is "template". Give SEVERAL (up to 5): they are rotated, because the same sentence under fifty reviews is what gives a bot away. | |
| reviewAutoReplyMinStars | No | Only auto-reply at this rating or above (1-5). Keep it high: a generated reply to an angry review does more harm than no reply. |