How to Send Auto Response Messages

Overview

Auto response will be sent based on received message and the message will be seen in the chat box and an action will be done in back-end respectively. Contacts can subscribe and unsubscribe to notifications.

  1. Navigate to the Details section of a specific Contact's record.
  2. Depending on the received message, the check box next to Promo, NOC, or both can be selected or deselected.

  1. A related record will be created with the selected value in the requestMessageHistories section.
  2. A message will be displayed in the chat box with the selected value.

Note: Follow the unit test scripts to test the functionalities by sending json to the following URL : /services/apexrest/smsRequest

Smoke Test

SL# Use Case Steps to Test Test Cases Expected Result Actual Result
1 Subscribe Below are the received values: ANI:’+1768531097’, NotificationList:’Promo’, action :’Subscribe’ After receiving the values Promo notification list gets activated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox should be active in the record detail page of the contact 2.related records should be created in the history table. 3.Message is displayed in the chat box Promo checkbox of the contact got activated and a related record got created while showing the message in the chat box
    Below are the received values: ANI:’+17685310975′, NotificationList:’NOC’’. action:’Subscribe’ After receiving the values NOC notification list gets activated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.NOC checkbox should be active in the record detail page of the contact 2. related records should be created in the history table 3.Message is displayed in the chat box NOC checkbox of the contact got activated and a related record got created while showing the message in the chat box
    Below are the received values: ANI:’+17685310975′, NotificationList:’All’, action:’Subscribe’ After receiving the values NOC notification list and Promo notification list gets activated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox and NOC checkbox should be active in the record detail page of the contact. 2. related records should be created in the history table 3.Message is displayed in the chat box. Promo and NOC checkbox of the contact got activated and a related record got created while showing the message in the chat box
2 Unsubscribe Below are the received values: ANI:’+17685310975′, NotificationList:’Promo’, action:’UnSubscribe’ After receiving the values Promo notification list gets deactivated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox should get deactivated in the contact record detail page 2. related records should be created in the history table. 3.Message is displayed in the chat box. Promo checkbox of the contact got deactivated and a related record got created while showing the message in the chat box
    Below are the received values: ANI:’+17685310975′, NotificationList:’NOC’, action:’UnSubscribe’ After receiving the values NOC notification list gets deactivated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.NOC checkbox should get deactivated in the contact record detail page. 2 related records should be created in the history table. 3.Message is displayed in the chat box. NOC checkbox of the contact got deactivated and a related record got created while showing the message in the chat box
    Below are the received values: ANI:’+18594840447′, NotificationList:’All’, action:’UnSubscribe’ After receiving the values Promo notification list and NOC notification list gets deactivated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox and NOC checkbox should get deactivated. 2. related records should be created in the history table. 3.Message is displayed in the chat box. Promo and NOC checkbox of the contact got deactivated and a related record got created while showing the message in the chat box
3 Unknown Below are the received values: ANI:’+18594840447′, NotificationList:’Unknown’’, action:’Subscribe/unSubscribe’ After receiving the values history table record will be created One related record should be created in history table Only related record got created