Introduction
Kaleyra is the API-based platform to engage your clients with personalized messages, chatbots, programmable voice services, and more.
info |
Information
|
library_add_check |
Prerequisites Ensure that you have the login credentials: the API secret for the SMS Kaleyra Account. If you have any issues with the credentials or if you do not have the credentials, contact Kaleyra support. |
Configure in Revamped UI
Configure as a Service Provider (Integrated)
Log in to the MoEngage Dashboard and follow these steps:
- Navigate to Settings > Channel > SMS > Sender Configuration.
- Click +Add Service Provider at the top right corner.
- Select Kaleyra in the Add Sender screen.
- Add the following details in the Sender Details screen.
Field Description Mark as default
This toggle will be disabled during sender creation. The first sender to be created in your MoEngage account will be marked as the default sender for your SMS campaigns. You can change the default sender by following the steps mentioned in Marking a sender as default.
Sender name
This field identifies the Sender. Type the name of the sender here.
Sender type
The Sender type can either be one of the following:
- Transactional
- Promotional
Select the appropriate sender type.
Sender ID
This is the number from which SMS will be sent to your users.
API secret
This is the secret key to authenticate API requests to your Kaleyra account.
- Send a test SMS to verify your configuration.
- Click Save to save the Sender Configuration.
-
Delivery Callback - Delivery receipts will be automatically tracked by MoEngage. MoEngage passes the delivery callback URL in the API call to Kaleyra. You don't have to do any additional configuration for tracking the SMS delivery when using Kaleyra as an integrated service provider.
Configure as a Custom Service Provider
- Navigate to Settings > Channel > SMS > Sender Configuration.
- Click +Add custom service provider at the top right corner.
- Add the following details in the Sender Details screen.
Field Description Mark as default
Turn on this toggle to mark the sender as the default sender for the service provider being configured. If marked as default, this sender would be used for sending all SMS campaigns from MoEngage unless you select a different sender while creating the campaign.
Service provider name This field identifies the service provider you are configuring on the MoEngage Dashboard and has to be unique. Type the name of the service provider here.
Sender name
This field identifies the Sender. Type the name of the sender here.
Sender type
The Sender type can either be Promotional or Transactional. Choose the Sender type as Promotional when you would be using the Sender for sending information about your brand, promoting deals, or engaging with users. Choose the Sender type as Transactional when you would be using the Sender for sending alerts about transactions, OTPs, security information, or any information that can be classified as transactional in nature.
- Configure the Webhook by adding the following details:
Field Description API URL
This field contains information about the URL that should be used to send an API request to the Sender. You can get this information from the API Documentation of the Sender. Type the API Endpoint of the sender here. The API URL for Kaleyra is:
https://moengage-sms-api.kaleyra.io/send-smsSID
This field contains the Sender ID for Kaleyra.
Kaleyra Host
Kaleyra Host URL: https://api.in.kaleyra.io/
Method
Select GET as the HTTP method.
URL Parameters
The URL Parameters will be populated from the API URL.
-
-
- Replace YourApiKey with the API key provided by Kaleyra. In the to field, you can invoke the personalization editor by typing using @. In the editor, you can select the user attribute that stores the user's mobile number. Ensure that the selected attribute consists of mobile numbers.
- Replace YourSenderId with the sender ID of your account provided by your service provider.
- Add the following values in the to and message fields:
-
-
- "to" Number to Moesms_destination
- "message" to Moesms_message
-
-
-
-
- Send a test SMS to verify your configuration.
- Click Save to save the Sender Configuration.
- You can configure delivery tracking after creating the sender in the MoEngage Dashboard. For information about Delivery Tracking, refer to Delivery Tracking for Custom Connectors.
- You can map the attributes of the delivery tracking response manually or automatically.
Configure in Old UI
Configure as SMS Connector (Service Provider)
- On the MoEngage Dashboard, navigate to Settings > Channel > SMS & Connector and click the SMS Connector Config tab.
- In Integrated Connectors, click Kaleyra.
- Fill in the following details:
Field Description Sender Type Select either Transactional or Promotional to define the type of SMS sent. Sender Name
Type the name to identify the Kaleyra sender. Sender ID
Type the sender ID identifying Kaleyra as the SMS provider.
warning Warning
- In the Sender ID field, ensure that you add the Header ID approved under the DLT platform. More details on DLT are captured here.
- If you try to send an SMS via an unregistered header, your SMS will be rejected and will not be delivered to the end users.
API Secret
Type the API secret used to authenticate the Kaleyra account. - In the Is Default Sender, select Yes to make this Kaleyra sender the default SMS Sender.
- Send a quick test SMS to ensure your configurations are working fine. To do this, click on the Send SMS to Test button. Add:
- Mobile number with country code. Make sure that your account is eligible to send SMS in that particular country
- Add the test message. If you send SMS in India, ensure the message content is in-line with the approved DLT template. More details are captured here.
- If you try to test a Promotional SMS and the test number has DND activated, the message might not be delivered. In such cases, test with a number not in the DND list.
- Click Save to save the Kaleyra settings.
Delivery Callback (SMS Connector/Service Provider)
Delivery receipts will be automatically tracked by MoEngage. We pass the delivery callback URL in the API call to Kaleyra. You don't have to do any additional configuration for tracking the SMS delivery via Kaleyra.
Configure as a Custom Connector (Service Provider)
Go to Settings>> SMS & Connector >> SMS Connector Config. On this page, click "Create" corresponding to Custom Connectors
Step 1: Set the Connector
Set a name for the Connector and corresponding Sender. You can create multiple Senders corresponding to a Connector or SMS provider. For more information on creating multiple senders, refer to this page.
Step 2: Configure Web-hook
Configure Web-hook URL as shown in the image below.
GET Method:
Once you enter your API Request URL, you will be able to see the URL parameters here:
Replace YourApiKey with the API key provided by Kaleyra. In to field, you can personalize [using @] it to select user's mobile number. Ensure that the selected attribute consists of user's mobile numbers.
Replace YourSenderId with the sender Id of your account provided by your service provider.
Change the value of the following fields:
- "to" Number to Moesms_destination
- "message" to Moesms_message
For example:
Step 3: Test and save the settings
Do a test SMS to make sure everything is set up correctly. And finally, click Save to save the settings.
Now you are good to proceed with SMS Campaign creation.
Next Steps
- Create an SMS campaign using the Getting Started for creating SMS campaign.
- Set the Frequency Capping for SMS.
- Set the Current Service Provider.