mcae-lead-scoring-and-grading
Use this skill when configuring MCAE (Account Engagement / Pardot) lead scoring models, grading profiles, score decay rules, or automation rules that fire on score/grade thresholds. Covers: scoring point values per activity, score decay for inactivity, Profiles for fit grading, combined MQL definitions (Score + Grade), and automation rules vs completion actions. NOT for Einstein Lead Scoring (Sales Cloud), not for Marketing Cloud Engagement journey scoring, not for Salesforce native lead scoring without Account Engagement.
Best use case
mcae-lead-scoring-and-grading is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use this skill when configuring MCAE (Account Engagement / Pardot) lead scoring models, grading profiles, score decay rules, or automation rules that fire on score/grade thresholds. Covers: scoring point values per activity, score decay for inactivity, Profiles for fit grading, combined MQL definitions (Score + Grade), and automation rules vs completion actions. NOT for Einstein Lead Scoring (Sales Cloud), not for Marketing Cloud Engagement journey scoring, not for Salesforce native lead scoring without Account Engagement.
Teams using mcae-lead-scoring-and-grading should expect a more consistent output, faster repeated execution, less prompt rewriting, better workflow continuity with your supporting tools.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
- You already have the supporting tools or dependencies needed by this skill.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/mcae-lead-scoring-and-grading/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How mcae-lead-scoring-and-grading Compares
| Feature / Agent | mcae-lead-scoring-and-grading | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use this skill when configuring MCAE (Account Engagement / Pardot) lead scoring models, grading profiles, score decay rules, or automation rules that fire on score/grade thresholds. Covers: scoring point values per activity, score decay for inactivity, Profiles for fit grading, combined MQL definitions (Score + Grade), and automation rules vs completion actions. NOT for Einstein Lead Scoring (Sales Cloud), not for Marketing Cloud Engagement journey scoring, not for Salesforce native lead scoring without Account Engagement.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# MCAE Lead Scoring and Grading
Use this skill to configure the MCAE (Account Engagement / Pardot) behavioral scoring model and fit-based grading system. It activates when a practitioner needs to set up or tune scoring rules, score decay, Profiles, automation rules tied to score/grade thresholds, or define the combined MQL trigger for sales handoff.
---
## Before Starting
Gather this context before working on anything in this domain:
- **Confirm MCAE Business Unit is provisioned.** Scoring and grading configuration lives inside the MCAE app, not in Salesforce Setup. Ensure the user has the Marketing role (or admin) in the MCAE Business Unit.
- **Confirm the sync field mapping is enabled.** MCAE score and grade are written to the `Score` (integer) and `Rating` or a custom field on Lead/Contact only when the CRM sync is active and the field mapping is configured. If the sync is off, CRM-side reporting on score/grade is impossible.
- **Clarify whether a default scoring model or custom scoring model is in use.** MCAE ships with a default scoring model that assigns fixed points to standard activities (e.g., form fill = 50, email click = 5, page view = 1). Custom scoring can override these globally or per-asset. Know which mode the org is starting from.
- **Establish the MQL definition up-front.** The most common production mistake is building scoring in isolation without agreeing what score+grade combination triggers handoff. Get alignment from Sales before configuring thresholds.
- **Score is a non-negative integer; grade is a letter A++ through F.** These are two separate dimensions. Automation rules can filter on either or both.
---
## Core Concepts
### 1. Scoring — Behavioral Engagement Dimension
Scoring measures how much a prospect has engaged with your marketing assets. It is a cumulative integer starting at 0. Points are added when a prospect performs a trackable activity and can be removed (deducted) for negative signals such as unsubscribing or opting out.
Default activity point values (configurable in MCAE > Admin > Scoring):
| Activity | Default Points |
|---|---|
| Form fill (submission) | +50 |
| Form fill (error) | +5 |
| Email link click | +5 |
| Email open | +1 |
| Page view (tracked) | +1 |
| Custom redirect click | +5 |
| File download | +5 |
| Webinar registration | +10 |
| Unsubscribe | -50 |
| Hard bounce | -75 |
Points are configurable globally under **Admin > Scoring**. Per-asset overrides are also possible (e.g., a high-intent pricing page can award more points than a generic blog visit). Custom activities and page view scoring require the MCAE tracking code (JavaScript snippet) on the web property.
Score is only meaningful in context of the prospect's activity recency — which is why decay rules exist.
### 2. Score Decay — Time-Based Score Reduction
Score decay automatically reduces a prospect's score over time to ensure that old engagement does not keep a prospect at MQL indefinitely. Decay rules are configured in **Admin > Scoring > Decay Scoring**.
Key behaviors:
- Decay fires on a periodic basis (not real-time); the platform checks for decay-eligible prospects on a scheduled cadence.
- A typical rule: "-10 points after 30 days of inactivity." Multiple decay rules can stack (e.g., -10 at 30 days AND -20 at 60 days).
- Decay does not reduce score below 0.
- Decay does not trigger completion actions or automation rules. It silently reduces the score.
- If a prospect re-engages (new activity), new points are added normally on top of the decayed score.
### 3. Grading — Fit Dimension via Profiles
Grading is an independent dimension from scoring. It measures how well a prospect matches your Ideal Customer Profile (ICP). Grade is a letter (A++ through F) assigned by matching the prospect's field values against a **Profile**.
A Profile contains criteria — each criterion specifies a field value match and a positive or negative grade point adjustment. MCAE converts the cumulative grade points into a letter grade. Criteria examples:
- Job Title contains "VP" → +20 grade points
- Job Title contains "Intern" → -20 grade points
- Industry = "Technology" → +10 grade points
- Annual Revenue > 10,000,000 → +10 grade points
- Country not in {US, CA, UK} → -10 grade points
Each prospect is matched against exactly one Profile (the matching profile is selected based on the prospect's field values; only one profile can be the "default"). Profile criteria are evaluated whenever the prospect's fields update or the prospect is synced.
The letter grade map (approximate): 100 = A++, 85 = A+, 70 = A, 55 = B+, 40 = B, 25 = C, etc. Exact thresholds are fixed by the platform.
### 4. Automation Rules vs. Completion Actions
These are two distinct mechanisms for triggering score/grade-based actions. Confusing them is a common source of missed leads or duplicate actions.
**Automation Rules** (Admin > Automation > Automation Rules):
- Evaluate ALL prospects in the database continuously in near-real-time.
- Can be retroactive: when a rule is activated, it evaluates every existing prospect who matches the criteria, not just future ones.
- Ideal for threshold-based routing: "Score >= 100 AND Grade >= B → Assign to Sales queue."
- Rules can be set to repeat (fire every time criteria are met after a reset) or fire once per prospect.
- Use Automation Rules for durable, ongoing logic.
**Completion Actions** (on forms, emails, files, custom redirects):
- Fire once, immediately after a specific activity occurs (e.g., after a form is submitted).
- Not retroactive. They only fire on the single event that triggered them.
- Ideal for immediate responses: "After form fill → Send autoresponder email" or "After form fill → Add to list."
- Do not use completion actions for score threshold routing — they fire on the activity event, not on the resulting score.
---
## Common Patterns
### Pattern 1: Combined MQL Definition (Score + Grade Gate)
**When to use:** Most B2B orgs should use both dimensions to qualify leads. Score alone misses low-fit contacts who happen to be very active; grade alone misses high-fit contacts who haven't engaged yet.
**How it works:**
1. Define the MQL threshold collaboratively with Sales: typically "Score >= 100 AND Grade >= B."
2. Build one Automation Rule with two criteria: `Prospect Score >= 100` AND `Prospect Grade is B or better`.
3. Set the action to: Assign to [Sales Queue or User] + Notify assigned user + Add to "MQL" list.
4. Set the rule to "repeat" only after the prospect's score drops below threshold (use score reset on recycle to prevent infinite reassignments).
**Why not Score alone:** Without a grade gate, marketing-active but low-fit prospects (competitors, students, wrong geography) flood the Sales queue with noise.
### Pattern 2: Score Decay to Reflect Recency
**When to use:** Any org where prospects accumulate score from old campaigns and remain MQL-eligible indefinitely even after going dark.
**How it works:**
1. Go to Admin > Scoring > Decay Scoring.
2. Add a rule: Reduce score by 10 points after 30 days of inactivity.
3. Optionally add a second rule: Reduce score by 20 points after 60 days of inactivity (stacks with first rule).
4. Audit the MQL threshold — if decay is in place, the threshold should reflect expected score ranges for recently active prospects.
**Why not rely on list management alone:** Manual list cleanup is error-prone and creates data quality debt. Decay is automated and keeps scores reflective of actual recency without admin intervention.
### Pattern 3: Profile Criteria for Multi-Segment Grading
**When to use:** Orgs with multiple ICP segments (e.g., SMB vs. Enterprise, Healthcare vs. Technology) where fit criteria differ by segment.
**How it works:**
1. Create a separate Profile for each ICP segment (e.g., "Enterprise Technology" and "SMB Healthcare").
2. Add matching criteria to each profile. Use the default Profile as a catch-all for prospects that don't match any segment-specific profile.
3. The profile with the most matching criteria for a given prospect is automatically selected.
4. Grade thresholds in the MQL automation rule apply across all profiles — the letter grade is normalized regardless of which profile was used.
---
## Decision Guidance
| Situation | Recommended Approach | Reason |
|---|---|---|
| Need to route a prospect to Sales when they hit a score+grade threshold | Automation Rule with score AND grade criteria | Automation rules evaluate continuously; completion actions fire only on a single event |
| Need to send an immediate follow-up email after a form fill | Completion Action on the form | Real-time, event-scoped; no need to evaluate the whole database |
| Prospects are staying MQL-eligible from old campaigns | Score Decay rules (30-day and 60-day) | Automated recency signaling without manual cleanup |
| Multiple ICP segments with different fit criteria | Multiple Profiles with segment-specific criteria | One Profile per segment; platform selects best match per prospect |
| Sales complains about low-quality leads in queue | Add or tighten grade gate in MQL automation rule | Grade filters out high-engagement, low-fit contacts |
| Admin wants to manually promote a prospect to MQL | Manual score/grade override in MCAE prospect record | Override blocks automatic re-scoring; document the override reason |
| Custom web activity (e.g., pricing page) should score higher | Per-asset score override on the specific page/form | Global score rules still apply to all other assets |
---
## Recommended Workflow
Step-by-step instructions for an AI agent or practitioner working on this task:
1. **Confirm prerequisites.** Verify that the MCAE Business Unit is connected to the Salesforce CRM and that the Score and Grade fields are mapped in the connector field mapping. Without this, score/grade changes never reach Lead/Contact records.
2. **Document the MQL definition.** Before touching any configuration, capture the agreed score threshold and grade threshold in writing (e.g., "Score >= 100 AND Grade >= B"). Get explicit sign-off from Sales. Record this in the work template.
3. **Configure global scoring rules.** Go to MCAE Admin > Scoring. Review and adjust the default point values for each activity type to reflect the org's priorities. Document the final point table. Add per-asset score overrides for high-intent assets (e.g., pricing page, demo request form).
4. **Set up score decay.** Go to Admin > Scoring > Decay Scoring. Configure at minimum one decay rule (e.g., -10 points after 30 days of inactivity). Add a second rule for 60 days if the sales cycle is long. Verify that the MQL threshold is still achievable with decay in place.
5. **Build Profiles for grading.** Go to Admin > Profiles. Create a profile for each ICP segment. Add positive criteria for strong fit signals (job title, industry, company size) and negative criteria for disqualifying signals (competitors, wrong geography, student roles). Set one Profile as the default catch-all.
6. **Create the MQL Automation Rule.** Go to Automation > Automation Rules. Create a rule with criteria: Score >= [threshold] AND Grade >= [letter]. Set the action: Assign to [Sales queue], notify [Sales user or group], add to [MQL Salesforce Campaign or list]. Set the rule to "repeat" and decide the reset logic (e.g., reset if prospect score drops below threshold).
7. **Test and validate.** Create a test prospect. Simulate activities (form fill, page view, email click) and confirm score increments correctly. Verify decay fires on schedule. Check that the automation rule fires when threshold is crossed and that Score and Grade appear on the synced Lead/Contact record in CRM.
---
## Review Checklist
Run through these before marking work in this area complete:
- [ ] Score and Grade fields are mapped in the MCAE CRM connector field mapping
- [ ] Global scoring point values are documented and approved by Marketing
- [ ] At least one score decay rule is active (decay period and point reduction documented)
- [ ] At least one Profile exists with both positive and negative criteria for each major ICP segment
- [ ] MQL Automation Rule is active with both score AND grade criteria
- [ ] Automation Rule action assigns to the correct queue or user and sends a notification
- [ ] Automation Rule repeat/reset behavior is explicitly configured (not left at default without review)
- [ ] Test prospect confirms score increments, decay fires, grade updates, and automation rule triggers
- [ ] Score and Grade values appear on Lead/Contact records in CRM after sync
- [ ] Manual override behavior is documented and communicated to admin team
---
## Salesforce-Specific Gotchas
Non-obvious platform behaviors that cause real production problems:
1. **Manual override blocks automatic re-scoring** — When an admin manually overrides a prospect's score or grade in the MCAE UI, MCAE marks that record as manually overridden and stops updating it automatically. Future activities do not change the score. This is a silent block — there is no UI indicator visible to other admins. Teams discover the problem when a re-engaged prospect never moves through scoring. Fix: document the override policy and review override records regularly.
2. **Automation Rules are retroactive by default** — When you activate a new Automation Rule, MCAE immediately evaluates all existing prospects against the rule criteria, not just new prospects going forward. If your rule assigns leads to Sales, activating it can flood the Sales queue with thousands of existing prospects at once. Fix: before activating a threshold-based rule on an existing database, filter by a "date created after X" criterion or run the rule in a lower-impact test segment first.
3. **Score decay does not trigger Automation Rules** — Score decay silently reduces scores without firing completion actions or re-evaluating automation rules. If a prospect was above your MQL threshold and decay drops them below it, no rule fires to notify Sales or remove the prospect from the MQL list. You must build a separate recycling rule to handle score-drop scenarios, or rely on periodic CRM-side reporting.
4. **Prospect score and grade sync is one-way (MCAE → CRM) by default** — Score and Grade flow from MCAE to the Lead/Contact fields in Salesforce. If a CRM workflow or flow overwrites the Score field on the Lead record, that change is not reflected back in MCAE. This creates divergence between MCAE score and CRM-visible score. Fix: protect the Score and Grade fields on Lead/Contact with field-level security or validation rules to prevent non-MCAE writes.
5. **Profile matching is based on the best-fit profile, not an explicit assignment** — MCAE automatically selects the profile for each prospect based on how many criteria match. If a prospect matches criteria from multiple profiles equally, the behavior is non-deterministic. Avoid overlapping criteria across profiles. Always have one clearly designated default profile as a catch-all.
---
## Output Artifacts
| Artifact | Description |
|---|---|
| Scoring point table | Documented list of activity types and their configured point values (filled in the work template) |
| Score decay rules | Active decay rules with period and point-reduction values |
| Profile definitions | One profile per ICP segment listing all positive and negative criteria |
| MQL Automation Rule | Active rule with score+grade criteria and assignment/notification actions |
| CRM field mapping confirmation | Evidence that Score and Grade fields are mapped in the MCAE connector |
| MQL definition document | Signed-off record of the score threshold, grade threshold, and reset logic |
---
## Related Skills
- admin/lead-scoring-requirements — Use first to gather and document scoring requirements before configuring MCAE; this skill covers requirements gathering, not MCAE-specific configuration
- admin/mcae-pardot-setup — Required prerequisite for Business Unit provisioning and CRM connector setup before scoring can be configured
- admin/marketing-cloud-connect — Relevant if the org also uses Marketing Cloud Engagement alongside MCAERelated Skills
mcae-pardot-setup
Use this skill when configuring a new or existing Marketing Cloud Account Engagement (MCAE, formerly Pardot) business unit: Salesforce v2 connector activation, connector user permissions, Salesforce User Sync, prospect field sync rules, tracking domain setup, and Account Engagement Lightning App installation. NOT for Marketing Cloud Engagement (email studio, journeys) or Einstein Marketing features.
mcae-prospect-data-migration
Use when importing or migrating prospect records into MCAE (Marketing Cloud Account Engagement / Pardot) via the CSV list import tool, including field mapping for default and custom fields and handling of cross-BU prospect moves. NOT for CRM (Lead/Contact) data migration, not for backfilling engagement history such as opens, clicks, form fills, or page view data, and not for bulk API prospect creation via Apex.
lead-data-import-and-dedup
Lead data import quality and deduplication strategy: matching rule design for Leads, Data Import Wizard dedup behavior, Web-to-Lead data quality controls, cross-object Lead-to-Contact fuzzy dedup, and enrichment patterns. Use when importing leads from CSV/list files, configuring duplicate detection for incoming leads, diagnosing why duplicate leads are bypassing rules, or designing web form data quality workflows. Triggers: leads from a trade show import are creating duplicates, web-to-lead form submissions are bypassing duplicate rules, deduplicating leads against existing contacts before conversion, setting up matching rules for lead imports. NOT for Data Loader mechanics or Bulk API setup (use data/bulk-api-patterns). NOT for large-scale merge execution across millions of records (use data/large-scale-deduplication). NOT for post-conversion record merge behavior (use data/record-merge-implications).
marketing-cloud-vs-mcae-selection
Use this skill when selecting between Marketing Cloud Engagement (MCE) and Marketing Cloud Account Engagement (MCAE/Pardot) for a Salesforce marketing implementation. Trigger keywords: MCE vs MCAE, Marketing Cloud vs Pardot, B2B vs B2C marketing platform, which marketing cloud product, marketing platform selection. NOT for implementation configuration of either product — this skill covers platform selection only, not setup, campaign build-out, or integration implementation.
customer-effort-scoring
Designing a customer experience measurement strategy using CSAT, NPS, and CES metrics in Salesforce Feedback Management: metric selection, survey timing, Feedback Management license requirements, Flow-triggered survey delivery, and CX KPI integration into Service Analytics dashboards. Use when choosing which CX metric to deploy, defining survey timing rules, or connecting survey response data to operational KPIs. NOT for building or configuring the technical survey objects, flows, or email templates (use admin/salesforce-surveys for that). NOT for custom programmatic survey delivery via API.
mcae-pardot-api
Use this skill when integrating with the Account Engagement (Pardot) REST API v5 to create, read, update, or query Prospects, Visitors, Visitor Activities, or Form Handlers programmatically. Trigger keywords: Pardot API, Account Engagement API, prospect sync, visitor tracking API, form handler integration, MCAE REST API. NOT for Marketing Cloud API (Email Studio, Journey Builder REST), NOT for standard Salesforce CRM REST API, NOT for MCAE setup or business unit provisioning.
lead-conversion-customization
Use when writing Apex to customize lead conversion: controlling which records are created, copying custom field values post-conversion, firing related record logic on convert, or structuring LeadConvert calls. Triggers: 'lead conversion apex', 'Database.LeadConvert', 'custom field mapping conversion', 'convert lead trigger', 'lead convert opportunity', 'LeadConvertResult'. NOT for configuring lead conversion field mapping in Setup UI, managing lead assignment rules, or building web-to-lead forms — use admin/lead-management-and-conversion for those.
lead-scoring-requirements
Use this skill when designing or documenting a lead scoring model in Salesforce Sales Cloud or Account Engagement: qualifying criteria, MQL/SQL threshold definitions, scoring dimensions (demographic, firmographic, behavioral), and sales handoff SLA. NOT for Einstein Lead Scoring (AI-based predictive scoring) or Account Engagement (Pardot) automation rule configuration.
lead-nurture-journey-design
Use this skill when designing or configuring lead nurture journeys in MCAE (Account Engagement / Pardot) Engagement Studio — including mapping content to funnel stages, defining behavioral trigger rules, building branching program paths, and establishing MQL handoff criteria. Covers funnel stage mapping (Awareness, Consideration, Decision), Engagement Studio program structure, rule-based branching on score/grade/activity, content inventory prerequisites, and program execution schedule. NOT for Journey Builder implementation in Marketing Cloud Engagement (MCE), NOT for Sales Engagement cadences in Sales Cloud, NOT for Einstein Lead Scoring configuration, NOT for initial MCAE Business Unit setup or CRM connector provisioning.
lead-management-and-conversion
Configuring Salesforce lead management and conversion: lead settings, web-to-lead, conversion field mapping, lead queues, auto-response rules, lead processes. Use when setting up lead capture, routing, or conversion for Sales Cloud. Trigger keywords: web-to-lead, lead conversion, lead field mapping, lead settings, lead process, lead queue, lead auto-response. NOT for lead assignment rule logic (use assignment-rules). NOT for duplicate rule configuration (use data-quality-and-governance).
xss-and-injection-prevention
Use when writing or reviewing Visualforce pages, Apex controllers, or LWC components that output user-supplied data, build dynamic queries, or construct HTTP responses. Triggers: 'XSS in Visualforce', 'SOQL injection vulnerability', 'how to encode output in Apex', 'JSENCODE Visualforce', 'open redirect prevention'. NOT for Apex CRUD/FLS enforcement (use soql-security or apex-crud-and-fls), NOT for Shield encryption (use shield-encryption-key-management), NOT for AppExchange security review process (use secure-coding-review-checklist).
visualforce-security-and-modernization
Use when hardening or modernizing legacy Visualforce pages — covers the platform CSRF token model and when disabling it is a security regression, view state encryption guarantees and the 170 KB ceiling, FLS/CRUD enforcement gaps on `<apex:outputField>` and on getters that return sObjects, `<apex:includeScript>` interaction with the org Content Security Policy, hosting LWC inside a VF page via `lightning:container` / `lightning-out`, and the retire-vs-harden-vs-leave-alone decision for an inventory of legacy pages. Triggers: 'should I rewrite this Visualforce page in LWC', 'CSRF protection disabled on Visualforce page is that safe', 'community user sees a field they should not on a Visualforce page', 'view state encryption is that enough for sensitive data', 'how do I host an LWC inside a Visualforce page', 'apex:dynamicComponent and apex:actionFunction safe to keep'. NOT for greenfield Visualforce architecture (use apex/visualforce-fundamentals — controller types, view state pattern selection, PDF rendering); NOT for Visualforce email template authoring (use apex/visualforce-email-templates if/when that skill is authored); NOT for general Apex security review across triggers and async (use apex/soql-security and security/secure-coding-review-checklist).