← All projects
Tavern Group: Personalized Welcome Series banner

Tavern Group: Personalized Welcome Series

One set of templates that welcomes new members across five pub venues. Each email shows the member's own venue, events and offer code.

Email · 3-part seriesAMPscriptContent BuilderData ExtensionsScenario-based build
01 · The result

What subscribers actually receive

Swipe to compare →
Member 1001 · John
Subject: Welcome to The Red Lion, John!
Email preview for Member 1001 · John
Member 1002 · Sarah
Subject: Welcome to The Green Dragon, Sarah!
Email preview for Member 1002 · Sarah
Member 1003 · no first name
Subject: Welcome to The Blue Boar!
Email preview for Member 1003 · no first name
Same template, three members. The venue branding, manager sign-off and subject line all come from the data. Member 1003 has no first name, so the fallback greeting and subject line kick in.

The full series

Welcome
Day 0Welcome
Upcoming event at their venue
Day 3Upcoming event at their venue
20% offer with a unique code
Day 720% offer with a unique code
02 · How I built it

The logic, in plain English

  • Pulled the venue name, logo, address, manager and socials from a Venue Data Extension with LookupRows, matched on the member's VenueID.
  • Cleaned names with Trim and ProperCase, with a "member" fallback and a subject line that changes when the name is missing.
  • Built a unique redemption code from the venue's voucher prefix and the member ID, e.g. GDNEW789-1002.
  • Added RaiseError so the send is cancelled if a venue record is missing. Nobody gets a broken email.
03 · Under the hood

The detail I like: no "The The Red Lion"

A short excerpt. The full code and the brief's requirements are on GitHub.

AMPscript01-Initial-Welcome-Email.ampscript
/* NAME CLEANING WITH FALLBACK */
IF NOT EMPTY(@firstName) THEN
   SET @finalName = Propercase(Trim(@firstName))
ELSE
   SET @finalName = "member"
ENDIF

/* CHECK IF "THE" ALREADY EXISTS AT THE START OF VENUE NAME */
IF IndexOf(Lowercase(Trim(@VenueName)), "the ") == 1 THEN
    SET @finalVenueName = Trim(@VenueName)
ELSE
    SET @finalVenueName = Concat("The ", Trim(@VenueName))
ENDIF

Have a campaign, role, or idea in mind?

I'd love to hear from you.