← All projects
TelcoTech: Personalized Win-Back Email
A win-back email that offers each lapsed customer two plans picked from their previous plan, at 50% off for the first three renewals.
01 · The result
What subscribers actually receive
Swipe to compare →Each customer sees the two plans that follow on from the plan they left, with the discounted price worked out in the email. Plan names, data and prices all come from the Plan Matrix.
02 · How I built it
The logic, in plain English
- Looked up the customer's last plan in a Plan Matrix Data Extension, then looked up both recommended plans from it (three
LookupRowscalls). - Calculated the 50% price with
Multiply, so pricing comes from the data, not hard-coded copy. - Built a separate tracked reactivation link per offer with
ConcatandRedirectTo, carrying the customer ID and plan ID. - Fallback greeting and subject line for missing names.
RaiseErrorstops the send if a plan can't be found.
03 · Under the hood
Offer A: look up the plan, price it, link it
A short excerpt. The full code and the brief's requirements are on GitHub.
AMPscript01-Reactivation-Email.ampscript
/* LOOKUP ROW FUNCTION TO RETRIEVE PLAN A INFO */ SET @rowsA = LookupRows("TelcoTech_Plan_Matrix", "PlanID", @OfferPlanA) IF RowCount(@rowsA) > 0 THEN SET @rowA = Row(@rowsA, 1) SET @OfferAPlanName = Field(@rowA, "PlanName") SET @OfferAGB = Field(@rowA, "GB") SET @OfferAPrice = Field(@rowA, "PricePerMonth") /* CALCULATE 50% DISCOUNT */ SET @OfferADiscountPrice = Multiply(@OfferAPrice, 0.5) ELSE /* THIS FUNCTION WILL CANCEL THE EMAIL SEND */ RaiseError("No row was found") ENDIF /* REACTIVATION LINK FOR PLAN A */ SET @linkA = Concat("telcotech.com/reactivate?custID=", @cusID, "&offerID=", @OfferPlanA)



