Repository navigation
Run the automatic check on every message and campaign - #1533
Merged
Merged
Conversation
When the AI review is enabled, event messages and Audience campaigns from established accounts are now held for it too, instead of only those from new or untrusted accounts. Test sends from eligible accounts still go straight out, and nothing changes when the check is off. Messages: the review prompt no longer assumes the account is new, and the admin pending-review email lists the check's reasons and only shows eligibility failures when there are some. Campaigns: established accounts get a ROUTINE_CHECK review reason, worded in the admin email, the send modal and the review queue.
Contributor
✅ E2E smoke tests: Everything passed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
When the automatic AI check is enabled (Hi.Events Cloud), every event message and every Audience campaign now goes through it, whatever the account's messaging tier. Until now only messages from new or untrusted accounts were checked, so a manually verified account on a higher tier could send anything unchecked. For example, a batch of gibberish test messages went out today without being checked.
Event messages
SendMessageHandlerholds every non-test message asPENDING_REVIEWwhenMessageAiReviewService::isEnabled(). The check approves it, or hands it to a person.<new_account_reasons>isnonefor an established account.Audience campaigns
CampaignSendGateholds every other launch, automation runs included, with a newROUTINE_CHECKreason. The existing reasons (untrusted account, first campaign, recent import) still take priority when they apply.Unchanged
Note for API users
On Cloud,
POST events/{id}/messagesnow returnsPENDING_REVIEWfor established accounts, where it used to returnPROCESSINGorSCHEDULED. The status already existed and was returned for new accounts.Testing
MessagePendingReviewMail, and forCampaignSendGate(check on/off × established, untrusted, first-campaign and recent-import accounts, plus self-hosted). Feature tests for campaign AI review on established accounts.tscis clean.NEEDS_PERSON, 0.96). A normal event reminder was approved and sent. A test send skipped the check. For campaigns,CampaignSendGate::evaluateon 14 established accounts sends straight away with the check off and returnsROUTINE_CHECKwith it on.