These docs are for v1.0. Click to read the latest docs for v2.0.

Email Personalization (Old)

Simple Attribute Personalization

Applicable for both Broadcast and Journey Campaigns

  • We can personalize the Emails by personalizing any attribute in the HTML text of the email
    • To include any attribute in the test we should put the attribute name in the format using square brackets: [attribute]

E.g. Hi [NAME], welcome to Netcore Smartech !!

This would be displayed as:

            Hi Ram, welcome to Netcore Smartech !!. 

You can assign multiple attributes to create a great personalized campaign

Digestified Email Template

Applicable only for Journeys

There are two broad categorizations under which Smartech can send a digestified email

1. Digestified mailer for Paired events:

Smartech currently supports the below paired events to send a digestified mailer
.
These are common use cases that we have encountered that are applicable for the majority of our users.

The paired events occur in sequence. Below is a table detailing the event pars that is supported in smartech.

Activity 1Case 1WaitActivity 2Case 2Action(Email)
Product ViewUser has viewed multiple products1 hourAdd To CartUser has not added product into the cartSmartech will send digestified email
Product ViewUser has viewed multiple products1 hourLead SubmittedUser has not submitted the leadSmartech will send digestified email
Product SearchUser has searched multiple products1 hourProduct ViewUser has not viewed the productSmartech will send digestified email
Product SearchUser has searched multiple products1 hourAdd To CartUser has not added product into the cartSmartech will send digestified email
Product SearchUser has searched multiple products1 hourLead SubmittedUser has not submitted the leadSmartech will send digestified email
Lead SubmittedUser has submitted the lead form1 hourProduct PurchaseUser has not done product purchaseSmartech will send digestified email
Add To CartUser has added multiple products into the cart1 hourCheckoutUser has not done checkoutSmartech will send digestified email
Add To CartUser has added multiple products into the cart1 hourCart ExpiryThe event is passed by brandNA
Add To WishlistUser has added multiple products into the wishlist1 hourAdd To CartUser has not added product into the cartSmartech will send digestified email

For these use cases we will be using the format Text{{activity payload}}Text

913

Below is the sample code for email digestification in case of array in payload,that will display the email shown above

HELLO, [NAME] [LASTNAME] 
{{ cnt = 0 }}
{{sale_price =0}}
{{ FOREACH Omi IN COLLECTIONS }}
{{ FOREACH item IN Omi.items }}
{{ cnt = cnt + 1 }}
{{ sale_price = sale_price + item.price * item.prqt }}


Description - ​{{ item.name }}
Price - ₹{{ item.price }}
Quantity - {{ item.prqt }}
Total - ₹ {{ item.price }}*{{ item.prqt }}




Total Cost

₹{{ sale_price }} (Amount will be payble)


Coupons Applied

₹{{ Omi.coupons }} (Amount will be payble)


Address.City

{{ Omi.address.city }}

In case of array in payload i.e payload will contain data in root level as well it can have array or hash assigned to a key at root level.
If any such data needs to be used for personalization in template then 2 “For” loops are required.
First For loop helps to fetch data from root level and second For loop each inside first will run on a single key at root level containing hash.

Personalized emailer for Custom events:

For events that are not a part of the list mentioned in point 1 , it is possible to create a customized email. You can also use Square brackets [ ] ,however it will only take the first item by default.

{{ payload }} -for cases where data is passed in simple payload format

{{items.payload}}- for array in payload cases.
For example:
Hi [NAME],
Welcome to ABC.com .
Thank you for downloading Report on {{REPORT_NAME}} from our website.

An example of a custom event might be a user logs in and downloads a report.
Hi Ram,
Welcome to ABC.com .
Thank you for downloading Report on ” Shopping trends of 2019” from our website.

All of the other things as mentioned above will remain the same.

Please note that these are not available in broadcast campaigns.