Configuring an Email Template
Shipsy’s communication engine allows users to configure Email templates according to their requirements allowing them to set up customised templates for all event types.
Instructions
The following instructions should be followed to setup an Email template:
Navigating to Communication Config Setup
Click on the hamburger menu icon
Select Setup and Communication Config from the sub-menu
Users are then redirected to the templates list view page. This page has two sub tabs - message setup and email setup. The default landing page is message setup
To start configuring a new Email template, the user has to first navigate to the Email Setup page, and then click on add new
Configuring a New Template
After clicking on the add new button, the user is presented with a pop up where they are required to fill in necessary information to set up their template
First the user must select if they want to choose an existing template and save a new copy of it. This is not a mandatory field so if the user does not want to save a new copy of an existing template, they can leave this field as blank
Next, the user is required to input a Template Name for their Email template.
In the next field, the user is required to input the content of their email body. This can be plain text or in the form of HTML code depending upon the use case.
Once the user has configured their template, they can click on save and their template is saved.
Further, this template will now be added to the list view, and by default its status will be active. The user will have the option to manually disable it if required.
Using Handlers and Tags
While configuring an email template, users can use tags and handlers to automate how information is fed into the dynamic template such that each email is customised as per their requirements
The way tags work is that wherever a tag is put within the message body, the tag will automatically fetch consignment data and include it in the message without having to manually type out a message every time
For example, if the user wants to configure a message that is sent to the recipient of a consignment which tells them that their consignment has been picked up, they can make a template like the image below where they use the {{reference number}} tag.
Here, whenever this message is triggered, using the variable tag, the system will automatically fetch the reference number from the database and send the message to the recipient without having to manually type out the relevant reference number every time a message is sent
Handlers work on top of tags in a way that using a handler combined with a variable tag, the user can apply a few checks and balances within the message body itself.
For example, if the user wants to configure a message such that the message body of the email is something when the destination country is India, and something else if the destination country if Saudi Arabia, they can use the {{if}} and {{else if}} handlers to configure their message body in such a way
Finishing up the Email in Message Setup
Once the Email template has been created, the user has to complete one final configuration in the Message Setup section in order to complete the process of configuration
To do this, the user is required to go back to the message setup section and click on add new
Here, under the message medium, they will first select Email
Next, the user will be required to define the event type for which this email will be used
Further, the user will select the receiver of this Email. Users can choose between destination (receiver of the consignment), origin (hub manager) and worker (rider)
Next, the user will have to define the priority of this Email. This is important because when multiple Emails are set up for the same event type and receiver combination, the Email with the highest priority will be sent. The higher the number, the higher the priority assigned
In the next field, the user will select from the drop down list the template to be used in the configured mail. This list will include all templates that were setup in the previous step
Lastly, the user will be required to input a suitable subject line for the Email. Please note, the use of handlers and tags here will be similar to the template creation process
Once the user has configured their template, they can click on OK and their template is saved.
Further, this template will now be added to the list view, and by default its status will be active. The user will have the option to manually disable it if required.
Conclusion
The Email template has now been set up successfully.