Profile : Current Customer

currentCustomer (Customer Profile)- Allows you to write conditions based on the properties of the customer who is currently performing the activity.

Attributes - Customer Identity

The below grouping of attributes is based on customer identity information.

AttributesDefinitionLink
nameCustomer’s Full Name.Learn More
firstnameCustomer’s First Name
string.
Learn More
lastnameCustomer’s Last Name.Learn More
emailCustomer's Email ID.Learn More
externalIdCustomer's External ID.Learn More
mobileMobile number of a customer.Learn More
hasInstoreProfileChecks if the current customer is registered and has an in-store Profile.Learn More
hasWeChatProfileReturns True, if the current customer has a WeChat Profile.Learn More

Attributes - Custom Field

The below grouping of attributes is based on custom fields created at the customer level.

AttributesDefinitionLink
customFieldValueIncludesCheck if the customer has some custom field present with a value.Learn More
customFieldValueExcludesIf the customer has some custom field present.Learn More
customFieldValueExistschecks If the customer data has some custom field present.Learn More

Attributes - KPI based on Points

The below grouping of attributes is based on the Key Performance Indicators on customer's points.

AttributesDefinitionLink
currentPointsCustomer's current redeemable points.Learn More
initialCurrentPointsCustomer's current redeemable points before evaluating the event.Learn More
currentAllPointsThe sum of all Points, redeemable as well as Promised Points.Learn More
lifetimePointsTotal points earned by a customer from the date of registration.Learn More
lifetimeAllPointsThe sum of lifetimePoints and lifetimeNonRedeemablePoints.Learn More
initialLifetimePointsCustomer's lifetime redeemable points before the current event.Learn More

Attributes - KPI based on transaction data

The below grouping is done based on the Key Performance Indicators on the customer's transaction data.

AttributesDefinitionLink
avgBasketSizeReturns the average number of line items present in a transaction.Learn More
avgSpendPerVisitThis is the average amount a customer is spending on a transaction.Learn More
numberOfTxnsNumber of transactions since the registration date of the customerLearn More
numberOfTxnsTodayNumber of transactions made by a customer on the current day.Learn More
numberOfVisitsNumber of unique days when a customer made the transactionLearn More
lifetimePurchaseCustomer's purchases since start including current transaction's purchaseLearn More
InitialLifetimePurchaseCustomer's purchase since start before current transaction's purchaseLearn More

Attributes - Date

AttributeDefinitionLink
joinDateRegistration dateLearn More

Attributes - Tracker based

AttributeDefinition
trackerValueBeforeEventGets the tracker value of a customer excluding the current event. Can be used in any set of the workflows, and can be used in loyalty promotions also.

Trackers that are created based on alternate currencies will only work with this profile, as those tracker won't be visible in tracker/points-tracker sets.

E.g.:currentCustomer.trackerValueBeforeEvent("Tracker name", "Case name")><=X
trackerValueCurrentEventGets the tracker value of a customer including the changes that happened during the current event (until the previous set). Can be used in any set of the workflows (evaluation set, end set), and can be used in loyalty promotions also.

Trackers that are created based on alternate currencies will only work with this profile, as those tracker won't be visible in tracker/points-tracker sets.

E.g.:currentCustomer.trackerValueCurrentEvent("Tracker name", "Case name")><=X

Attributes - Slab Information

This grouping of attributes is done on the basis of Tier/Slab Information associated with the customer's loyalty.

AttributesDefinitionLink
initialSlabNameInitial slab name of the Current Customer before evaluating an event.Learn More
initialSlabNumberInitial slab number of the Current Customer before evaluating an event.Learn More
slabNameCustomer’s current tier name.Learn More
slabNumberCurrent Customer slab number let's say 10, 1, 3, etcLearn More

Attributes - User Segment (EI)

This grouping of attributes is based on the User Segment (Cluster) creations over the customer's base by brands.

AttributesDefinitionLink
clusterValueIncludesReturns true, if a customer belongs to a particular cluster (segment).Learn More
clusterValueExcludesReturns true, if a customer does not belong to a particular cluster (segment).Learn More

Attribute - Other

AttributeDefinitionLink
isLoyalChecks if the current customer is registered in the brand's loyalty program.Learn More

Attribute - Customer status & label

AttributeDefinitionLink
customerStatusWhen one wants to write rules based on the staus of the customerLink
customerStatusLabelWhen one wants to write rules based on the label of the customerLink

Attribute - Milestones & Streaks


AttributeDefinitionLink
avgTargetAchieved(targetName)Returns the average of the target value achieved by the customer across the cycles of the milestone (target). Link
targetAchievedInPeriod(targetName, periodRefCode)Returns the target value achieved by the customer in a specific cycle/period of a particular milestone.

periodRefCode is the name of the cycle, not the cycle ID.
Link
isStreakAchieved(streakName)Returns a true/false value indicating whether a user has achieved a specific streak level. Assume there is a streak (ABC) with two levels in it (ABC_1, ABC_2).

This will indicate whether the customer has achieved the specific level or not.
Link
streakCurrentValue(streakName)Returns the current streak value of the customer (instead of a simple true/false) for a specific streak level.Link
targetsAchievedForUnified(unifiedTargetGroupName, periodRefCode)Returns the number of targets achieved by the user in a specific cycle/period of a specific unified target.

Assume there is a unified target (ABC) that contains three targets (A, B, C) which the user has to achieve. This will return the number of targets achieved by the user in a cycle of ABC.
Link
targetAchievedInCurrentPeriod(targetName)Returns the target value achieved by the customer during the current cycle.
Only target name is required here and there's no need to specify the cycle's refCode. If there is no current cycle, the return value will be 0.
Link
targetsAchievedForUnifiedInCurrentPeriod(unifiedTargetGroupName)Returns the number of targets achieved by the user during the current cycle of a specific unified target.
Only target name is required here and there's no need to specify the cycle's refCode If there is no current cycle, the return value will be 0.
Link