segment-audience
/digital-marketing-pro:segment-audience
Purpose
Create or update audience segments in the brand's CRM or email platform based on behavioral, demographic, or engagement criteria. Segments can be used for ad targeting, email campaigns, retargeting, or personalization. Ensures segments are well-defined, properly sized, actionable across platforms, and documented with clear criteria for reproducibility — so the team can understand exactly who is in a segment and why. Supports RFM (recency, frequency, monetary) modeling, lifecycle-based segmentation, and predictive scoring criteria for advanced audience strategies.
Use this command to build targeting audiences before campaign launches. For importing new contacts into the CRM first, use /digital-marketing-pro:lead-import.
For exporting segment member data to external tools, use /digital-marketing-pro:data-export after segment creation.
Execution gate (MANDATORY — cannot be skipped)
- Present the full preview — recipients / spend / changes / compliance — as an Execution Summary before touching any live system.
- The user must type
yes(or an equivalent explicit approval). ANY other input — ambiguous, implied, partial, or absent approval — cancels the run. - Never proceed on ambiguous input. Never auto-retry a failed execution; a failure needs human review before any re-run.
- Record the approval with
python "${CLAUDE_PLUGIN_ROOT}/scripts/approval-manager.py" --brand {slug} --action create-approval --data '{"risk_level":"<tier>","summary":"..."}'before executing, thenpython "${CLAUDE_PLUGIN_ROOT}/scripts/approval-manager.py" --brand {slug} --action mark-executed --id {approval_id}after the platform confirms success.
Input Required
The user must provide (or will be prompted for):