← View All Guides
HubSpot logo
Integration Guide

How to Build Referral Email Workflows in HubSpot with GrowSurf

Create automated email sequences that nurture referred leads and encourage referrers using HubSpot workflows.

Email is the highest-ROI channel for nurturing both referrers and their referred friends. By combining GrowSurf's referral event data with HubSpot's powerful workflow automation, you can create targeted email sequences that welcome referred leads with personalized messaging, remind referrers to keep sharing, and celebrate referral milestones.

This guide walks you through building three essential referral email workflows in HubSpot: a referred lead welcome sequence, a referrer nurture campaign, and a milestone celebration flow. You'll learn how to trigger workflows based on GrowSurf events, personalize emails with referral data, and measure the impact of your referral email campaigns on conversion rates.

Integration Steps

Step 1: Set Up Referral Event Triggers in HubSpot

Configure your GrowSurf-to-HubSpot sync to update contact properties that can trigger HubSpot workflows.

  • Ensure referral_status property is updated on each GrowSurf event
  • Add a referral_event_timestamp date property that updates on each event
  • Create a referral_milestone property (values: "first_referral", "5_referrals", "10_referrals")
  • Test that property changes trigger workflow enrollment correctly

Step 2: Build the Referred Lead Welcome Workflow

Create a workflow that sends a personalized welcome sequence to leads who were referred by someone.

  • Trigger: referral_status changes to "Referred"
  • Email 1 (Immediate): Welcome email mentioning who referred them and any special offer
  • Email 2 (Day 2): Value proposition email with social proof from existing customers
  • Email 3 (Day 5): Case study or demo invitation with a soft CTA
  • Use personalization tokens to insert the referrer's name: "{{referred_by_name}} thought you'd love..."

Step 3: Create the Referrer Nurture Campaign

Keep referrers engaged and motivated to share more with periodic encouragement emails.

  • Trigger: referral_source is set to "growsurf" (any new participant)
  • Email 1 (Day 1): Thank you for joining + sharing tips
  • Email 2 (Day 7): Reminder of rewards + top referrer spotlight
  • Email 3 (Day 14): Share template suggestions + social media sharing tips
  • Exit criteria: Contact becomes inactive or unsubscribes

Step 4: Build Milestone Celebration Workflows

Celebrate referral milestones to reinforce positive behavior and encourage continued sharing.

  • Trigger: total_referrals_made reaches specific thresholds (1, 5, 10, 25)
  • First referral: Congratulations email with reward confirmation
  • 5 referrals: "Super Referrer" badge email with upgraded reward unlock
  • 10 referrals: Executive thank-you email + exclusive perks
  • Include dynamic content showing their referral stats and leaderboard position

Step 5: Personalize Emails with Referral Context

Use HubSpot's smart content and personalization tokens to make each referral email feel personal and relevant.

  • Insert the referrer's name in referred lead emails: "{{contact.referred_by_name}} shared this with you"
  • Show referral count in referrer emails: "You've referred {{contact.total_referrals_made}} friends so far!"
  • Use smart CTAs that change based on referral status
  • A/B test subject lines that mention the referral vs. generic subject lines

Step 6: Measure Workflow Performance

Track the effectiveness of your referral email workflows to optimize conversion rates.

  • Monitor open rates and click rates for each email in the sequence
  • Compare conversion rates: referred leads receiving the workflow vs. those who don't
  • Track referral sharing rate increase after nurture emails are sent
  • Use HubSpot's A/B testing to optimize subject lines, send times, and content

Code Snippets

// Update HubSpot contact to trigger milestone workflow
async function checkAndTriggerMilestone(referrerEmail, referralCount) {
  let milestone = null;

  if (referralCount === 1) milestone = 'first_referral';
  else if (referralCount === 5) milestone = '5_referrals';
  else if (referralCount === 10) milestone = '10_referrals';
  else if (referralCount === 25) milestone = '25_referrals';

  if (milestone) {
    await hubspotClient.crm.contacts.basicApi.update(
      referrerEmail,
      {
        properties: {
          referral_milestone: milestone,
          referral_milestone_date: new Date().toISOString().split('T')[0],
          total_referrals_made: referralCount.toString()
        },
        idProperty: 'email'
      }
    );
  }
}

// HubSpot Workflow Configuration (pseudo-code for reference)
const referredLeadWorkflow = {
  name: 'Referred Lead Welcome Sequence',
  trigger: {
    property: 'referral_status',
    operator: 'eq',
    value: 'Referred'
  },
  actions: [
    { type: 'send_email', emailId: 'referred-welcome-1', delay: 0 },
    { type: 'send_email', emailId: 'referred-value-prop', delay: '2d' },
    { type: 'send_email', emailId: 'referred-demo-invite', delay: '5d' },
    { type: 'update_property', property: 'lifecyclestage', value: 'lead' }
  ]
};

Tips

Mention the Referrer by Name for 2x Higher Open Rates

Emails that include the referrer's name in the subject line (e.g., "Sarah thought you'd love this") see up to 2x higher open rates compared to generic welcome emails. Always personalize the first email a referred lead receives with the referrer's name.

Time Your Referrer Reminders Strategically

Don't send referral reminder emails too frequently β€” once every 1-2 weeks is ideal. The best times to remind referrers to share are after they've had a positive interaction with your product (e.g., after completing a milestone, receiving good results, or leaving a positive review).

Use Social Proof in Referred Lead Emails

Referred leads already have one form of social proof (the referral itself). Double down by including customer testimonials, usage statistics, and trust badges in your welcome sequence. This reinforces the trust signal from the referral.

FAQ

Can I use the same workflow for referrals from different campaigns?

Yes, but consider creating campaign-specific email templates using HubSpot's smart content. The workflow trigger is the same (referral_status change), but the email content can dynamically adapt based on a referral_campaign property to match each campaign's messaging.

How do I prevent referred leads from receiving both the referral workflow and my regular lead nurture workflow?

Use HubSpot's workflow suppression lists. Add contacts enrolled in the referral welcome workflow to a suppression list that excludes them from your general nurture workflow. Alternatively, use a branch in your general workflow that checks referral_source and routes referred leads to the referral-specific path.

What's the optimal length for a referral welcome email sequence?

3-5 emails over 7-14 days works well for most SaaS referral programs. The first email should be immediate (within minutes of the referral), followed by value-building emails at 2-day intervals. Don't extend beyond 14 days β€” if the referred lead hasn't engaged by then, move them to your regular nurture track.

Set up your refer a friend program with customer referral and affiliate program software that lowers your acquisition costs, increases customer loyalty, and saves you gobs of time.

Trusted by marketing and product teams at fast-growing B2C, fintech, and SaaS companies