wiki/knowledge/salesforce/papertube-abm-lead-engagement-notifications.md · 680 words · 2026-03-13

PaperTube ABM Lead Engagement Notifications via Apex

Overview

PaperTube's ABM system runs a custom Apex-based email orchestrator that sends personalized outreach emails through the Pardot API. To help the client identify when to personally follow up with prospects, an Apex script was deployed to send real-time email alerts when contacts show meaningful engagement signals.

This is distinct from Account Engagement (Pardot) automations — the notification logic is custom Apex that hooks into the existing engagement sync, not a native Pardot automation rule.

Architecture Context

The PaperTube ABM system works as follows:

  1. Email Scheduler (9 AM) — Queries scheduled ABM email records and sends them in batches via the Pardot Send Endpoint.
  2. Engagement Sync (11 AM) — Calls the Pardot Visitor Activity API to pull open and click data, then updates fields on ABM email records in Salesforce.
  3. Notification Layer — The new Apex logic hooks into the engagement sync to detect qualifying engagement events and fires email alerts to the client.

Email content is stored in a Supabase database and assembled on the fly by Apex, allowing each contact to receive a fully customized message — something Account Engagement cannot do natively.

Engagement Notification Triggers

The deployed Apex script sends an alert to the client (Parag) when either of the following conditions is met at the contact level:

Trigger Condition
Link Click Any link click in an ABM email — always notified, regardless of open count
Repeated Opens 3 or more email opens within a rolling 60-day window

The intent is to surface contacts who are showing genuine interest so the client can initiate a personal outreach rather than relying solely on the automated sequence.

Implementation Notes

Lead Source Attribution Fix

Leads arriving from the PaperTube.pro domain were incorrectly attributed to "Google AdWords" or "Hunter.io" due to how the UTM source field was being mapped. A Salesforce automation was deployed to set the Lead Source field to "Asymmetric" for any lead or contact where the UTM source contains papertube.pro (wildcard match).

ABM Performance Reports

Four new Salesforce reports were created in the "Asymmetric ABM" reports folder:

An issue was identified where reports defaulted to "My Leads" scope, causing them to appear empty. Scope was changed to "Organization" to surface all relevant records. A backfill was initiated to populate historical data.

Action Items (from this session)

Sources

  1. Index
  2. Papertube Abm Secondary Contact Nurture
  3. Lead Source Attribution Automation
  4. 2026 03 13 Weekly Call Karly Papertube Quora