Skip to main content
Custom Connectors are only supported in the SMS channel.
To configure a custom connector on the MoEngage dashboard, perform the following steps:
  1. Navigate to Settings -> Channels -> SMS.
  2. Click the Sender Configuration tab. You’ll find the list of integrated and custom service providers here.
  3. Click +Add Sender at the top right corner. In the Add Sender screen, you can either add a new custom service provider or a sender to a configured service provider.
  4. Click +Add custom service provider.
  5. Fill in the following details in the General Details screen:
  6. After a successful test, click Save to save the settings.
Set the following values as specified below when defining the request parameters, headers, or body:
  • Destination Number Key as Moesms_destination
  • Message Key as Moesms_message
  • DLT Template ID as Moesms_dltTemplateId (This is for clients operating in India)
  • Campaign ID as Moesms_campaignId (You can use this attribute in the POST and GET methods, not in the DELETE method).

Personalize API Requests

You can add personalization to the API requests for reporting or analysis purposes. You can pass the following user attributes and campaign attributes as dynamic attributes:
  • User attributes: All attributes that are available in the Personalisation dialog box.
  • Campaign attributes:
    • Campaign ID
    • Campaign name
    • Campaign tags
    • Team name
    • Template ID
    • Connector type (Promotional or Transactional)
    • Creator
    • Campaign creation time
    • Publish time
    • Last updated at
    • Last updated by
    • Campaign delivery type
    • Conversion goal
    • Conversion goal attribute
You can map the required attribute into the API’s request payload for the GET and POST methods. You can also pass multiple values for some attributes. For example, Campaign tags.The Value field under the following sections supports personalization:
  • URL parameters
  • Headers
  • Body type (Form and JSON only) 6.png
To add personalization:
  1. In the required Value field, type “@”. For example, the Value field under URL parameters. 12.png The Personalization pop-up is displayed. 7.png
  2. On the Data personalization tab, in the Select attribute list, select the required attribute. For example, Campaign ID. 9.png
  3. In the Replace text field, enter a standard string that should be sent if the user-specific value can’t be resolved. 10.png
    While sending the SMS, MoEngage supports the current replacement strings for attributes included in the campaign object.
  4. Click Done. The dynamic value of the personalized attribute is displayed in the selected Value field on the Sender Details page. 11.png
  • You can add user attributes using the same process explained above.
  • After you save the sender configuration, you can enable Delivery Tracking for your messages.

Delivery Tracking

Delivery tracking allows you to track the delivery status of the SMS messages sent using custom connectors (service providers). Delivery tracking, when enabled, will show a metric - Delivered*,* which helps you understand whether messages have been delivered to the user and analyze delivery failures and errors. You can use this information to clean up your delivery list periodically (by removing users for previous deliveries that were unsuccessful). This will help you avoid sending SMS campaigns to users with repeated delivery failures, thus saving costs. You can add the Delivery Tracking information once you save the connector (service provider) settings for the first time.

Steps to Enable Delivery Tracking

To enable delivery tracking:
  1. Click on the ellipsis icon by hovering over the newly added sender on the SMS settings screen.
  2. Select Edit. The Sender Details screen opens.
  3. Click Nextto enable delivery tracking.
  4. The Track sms delivery toggle is turned on. Turn off this toggle to disable delivery tracking.
  5. Copy the SMS delivery tracking URL and paste it into the callback webhook settings of the partner’s dashboard. MoEngage generates a unique identifier called custom_connectorID under the SMS delivery tracking URL, as shown below. All senders in a connector will have the same custom_connectorID and delivery tracking URL. SMS Delivery Tracking URL
  6. Map attributes/fields in the delivery response You can either map the fields from the delivery response or map the fields manually by choosing the desired option. This mapping helps MoEngage understand the service provider’s delivery response. To map the attributes in the delivery response, choose one of the following options:
    1. Map attributes of the delivery response
    2. Map fields manually If you have not tested your configuration with Send a Test SMS during the previous step, click on Send a test SMS to map the attributes from the delivery response. It may take up to 15 minutes to receive the delivery callback information. Once MoEngage receives this information, it will be shown in the Dashboard. | Field Name | Description | | --- | --- | | Attribute storing unique ID of the sent response | This field uniquely identifies the request. The value of this field should ideally match the value present in the Transaction or msg ID field. | | Attribute storing Unique delivery ID field of delivery response | This field stores the unique identifier of the delivery response. The value in this field should match the value in the sent response. This will help MoEngage identify the delivery response for any given SMS. | | Attribute storing delivery status | This field contains the delivery status of the sent SMS. This is used to calculate the Delivered metric by MoEngage. | | Success values for delivery status | The values denote that the SMS has been delivered successfully. We mark a message as delivered if any values mentioned in this field are received as part of the response. If any other value is received in the response, it will be considered a failure by default. | | Attribute storing failure reason | This field contains the failure reason when an SMS delivery is unsuccessful. The failure reason can be seen in campaign analytics. For more information, refer to Failure Reasons. |
    To map the fields from the delivery response:
    1. Click Send test SMS to send a test SMS and receive a response from your service provider. Once MoEngage receives this information, it is shown in the Dashboard. You can map the fields from this response.
    2. The dropdowns are auto-populated with the field names parsed from the delivery response. The following image shows the sample SMS sent and the delivery response. The auto-population of the dropdowns from this response for mapping on the Dashboard is also illustrated in the image.\ MapFieldsFromResponse.png
  7. Once the delivery response has been mapped, click Save to save the delivery callback configuration.
  • The delivery callback is a POST request and accepts a JSON payload.
  • To optimize system usage, reduce costs, and increase reliability, the delivery callback response payload should not exceed 150 KB in size. MoEngage sends a 413 Bad Request error if the response exceeds this limit. In such cases, it is recommended to reduce the payload size and resend the response. MoEngage recommends updating your payload creation code if this error is observed consistently.
  • Only Admins and Managers can configure Delivery Tracking in MoEngage.

Next Steps

  1. Create an SMS campaign
  2. Set the Frequency Capping for SMS
  3. Set the Current Service Provider