Campaign and WhatsApp Template Creation
Campaign Creation
Upon accessing the Lynn system, users will have the capability to view the Lynn application. Upon selecting one of them, they will be redirected to the campaign management interface. This interface will be exclusively available to administrators or editors of the Lynn application who possess the appropriate permissions in relation to the specific campaign. The implementation of this restriction ensures that only those with the proper authorizations can access and manage the mentioned campaign.
To create a new campaign, locate the "+" button on the toolbar. Clicking this button will open a window with the campaign configuration settings.
Below, we describe the fields for campaign creation:
Division: The campaign will be linked to a Lynn application and a corresponding division within the system. Users will have the capability to select the relevant division based on specific circumstances. This division selection empowers users to align actions or decisions within the appropriate context, thereby contributing to a more precise and effective management of the respective campaign.
Name: You will be required to input the name associated with the campaign you wish to include.
Campaign Type:
Single Message: In this type of interaction, a message is sent to the client, and their reaction is awaited in response for initiating the Lynn session.
Multiple Message In this mode, a message is sent to the client, while simultaneously initiating a session in Lynn. As a result, the client will be immediately connected through Lynn, without the need for any further action.
📝Note: For interactions carried out via WhatsApp, only the "Single Message" option is valid.
Execution Mode:
Manual: Requires manual initiation of the campaign by a person.
Scheduled: Initiates the campaign based on the specified date and time in the "Campaign Start" and "Stop Campaign" fields.
AlwaysOn: This campaign remains active continuously. Whenever a new record is added, the records are automatically executed. Category: In this item, you can create or select a campaign category from the dropdown list. Grouping campaigns into specific categories streamlines the search process, offering structured organization and facilitating quicker locating of desired campaigns.
Valid until: Duration of campaign validity.
Duration in hours: Time interval in hours between message dispatch and client interaction (Allow up to 10,000 hours).
Intent to Execute: Dropdown list from which an intention is selected for execution according to the flow. It's important to note that the intention must be pre-created.
Finally, click the create button, and your campaign will be displayed in the campaign view.
WhatsApp templates
Digital channels have policies that describe and regulate the usability of the channel. In the case of WhatsApp, if a customer initiates a communication to the Bot, it has a 24-hour window, from the last message, to respond to him with a free format message. After this period, it must use a message template.
WhatsApp templates are specific message formats that companies use to send notifications or customer service messages to people who have accepted to receive them. Some of these messages can be reminders, shipping information, trouble shooting or payment updates. It is the responsibility of the person hiring the service, to request approval of the template from the provider.
Lynn Proactive module provides a set of APIs that allow you to manage some of the module's functionalities, they are of type REST and require an Authorization Token.To check how to consume this API click HERE
There are two types of message templates:
-
MTM (Message Template): Allows the sending of a simple text message.
-
MMT (Media Message Template): Allows the sending of messages that, in addition to text, can contain a multimedia element, for example: images, videos, files, etc. The variety of supported formats, depends on the provider.
Template Settings per Provider
Each WhatsApp provider defines the necessary parameters for sending messages using templates. Below is the configuration for the providers supported by Lynn:
NEXMO
- Template MTM:
label | Possible value |
---|---|
TEMPLATE | verify |
NAMESPACE | 9b6b4fcb_da19_4a26_8fe8_78074a91xxxx |
LOCALE | en_GB |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MTM |
HSM_MTM_DATA | 'Vonage Verification' '64873' '10' |
- Template MMT
label | Possible value |
---|---|
TEMPLATE | verify |
NAMESPACE | 9b6b4fcb_da19_4a26_8fe8_78074a91xxxx |
LOCALE | en_GB |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MMT |
HSM_MMT_HEADER_DATA | {type: text,text: replacement_text} {type: image,image: {link: http(s)://the-url}} otros |
HSM_MMT_BODY_DATA | {type: text,text: replacement_text} {type: image,image: {link: http(s)://the-url}} otros |
MASIVIAN
- Template MTM:
label | Possible value |
---|---|
TEMPLATE | 151 |
NAMESPACE | 9b6b4fcb_da19_4a26_8fe8_78074a91xxxx |
LOCALE | es |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MTM |
HSM_MTM_DATA | 'Parámetro 1' 'Parámetro 1' '10' |
TWILIO
- Template MTM:
label | Possible value |
---|---|
TEMPLATE | 151 |
NAMESPACE | 9b6b4fcb_da19_4a26_8fe8_78074a91xxxx |
LOCALE | es |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MTM |
HSM_MTM_DATA | 'Parámetro 1' 'Parámetro 1' '10' |
INFOBIP
- Template MTM:
label | Possible value |
---|---|
TEMPLATE | welcome_multiple_languages1 |
LOCALE | es |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MTM |
HSM_MTM_DATA | 'Parámetro 1' |
GUPSHUP
- Template MTM:
label | Possible value |
---|---|
TEMPLATE | a5124f09-3a91-4fba-9438-e20a0150xxxx |
LOCALE | es |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MTM |
HSM_MTM_DATA | 'Nombre' 'Cancelar' |
- Template MMT
label | Possible value |
---|---|
TEMPLATE | d697bbc9-7f87-4d1c-8d79-9d0f93dexxxx |
LOCALE | es |
WHATSAPP_NUMBER | +569xxxxxxxx |
HSM_TYPE | MMT |
HSM_MMT_BODY_DATA | CLIENT_NAME + ',123' '{\type\:\image\,\image\:{\link\:\https://www.buildquickbots.com/whatsapp/media/sample/png/sample01.png\}}' |
Template configuration for loading contact list
This tool allows you to create your necessary .CSV and Json templates for loading a contact list in Outbound campaigns. Follow these steps:
1- Access the corresponding Lynn environment (Testing or Production).
2- Locate the campaigns icon.
3- Select the division.
4- Locate the "WhatsApp Templates" button at the top right of the window.
5- In the popup window, you can create a new template or edit an existing one.
- To create, click on the "+" button as indicated in the image.
- To edit, click on the "pencil" button as indicated in the image.
In both options, you can see several fields, below is a description:
ITEM | DESCRIPTION |
---|---|
Name | Name of the template. |
Channel | Select the channel through which the campaign will be executed. |
WhatsApp / Voice | Depending on the selection of the "Channel" field, in this field, you can locate the phone numbers already configured. Select the number through which the campaign will be executed. |
Template ID | ID of the service provider's HSM template (Gupshup, Nexmo, etc). |
Namespace | Namespace of the service provider's HSM template (Gupshup, Nexmo, etc). |
Locale | Locality/Language |
Campaign Type | Here you must define the type of campaign according to the template: - MTM (Message Template): Allows the sending of a simple text message. - MMT (Media Message Template): Allows the sending of messages that, in addition to text, can contain a multimedia element, for example: images, videos, files, etc. The variety of supported formats depends on the provider. |
Column Delimiter | The symbol that will delimit the columns in your .csv template. |
Row Delimiter | The symbol that will delimit the rows in your .csv template. |
Enable Multiple Active Results | Select "YES" to allow the same contact to have 2 records within the campaign. |
Sandbox Record | For exclusive use in the testing environment. Select "YES" to run the campaign with Sandbox.** |
Enable Opt-In Contact | Select "YES" to enable Opt-in contact, that is, a link will be sent to the user to subscribe and accept to receive information. |
Ignore DND | Select "YES" to ignore the client's DND (Do Not Disturb) settings. |
Columns | In this section, you can define the columns that will contain the data from your contact list. You can add new fields using the "+" button. |
DATA/HEADER/BODY | In these sections you can define: - The DATA(MTM): field to define the variable to be used in the campaign. Example: Input: ["ContactName"].
|
HEADER (MMT): field to define the variable to be used in the campaign. Example: Input: ["ContactName"].
|
|
The BODY (MMT): here you must define the text and variables to be used in the messages of the campaign (array of variables). Example: Input: [ "'{\"text\", \"text\": \"' + ContactName + '\"}'"],
|
6- Next, you can obtain the CSV file that will serve as a template for you to enter the contact data for the Campaign, to do this locate the download icon as shown in the image:
7- For the list upload process, click on the “Upload campaign data” button:
In the pop-up window you can see:
a) WhatsApp Templates: where you can select the template configured in the previous steps.
b) Import Template: here the JSON already built to the measure of the selected template is found.
c) Contacts File: here you must select the .CSV file that already contains the data of your contacts. Remember to use the .CSV template you downloaded in the previous step.
8- Press "Upload File" and the data in the .CSV will be loaded and ready to be contacted.