How to Send Auto Response Messages

Overview

Auto responses are sent based on the received message. The message can be seen in the chat box and an action is 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 cleared.

For sample sontact A Johnson, the Details tab is selected and the Promo and NOC checkboxes are highlighted

A related record is created with the selected value in the requestMessageHistories section. A message is displayed in the chat box with the selected value.

The request message histories section is show with sample data and a sample chat box message

Note: Follow the unit test scripts to test the functionality 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 Following are the received values: ANI:’+1768531097’, NotificationList:’Promo’, action :’Subscribe’ After receiving the values, the Promo notification list is activated in the contact record page of the contact that contains the received number. A message gets inserted into the message history table.

1. Promo check box 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 check box of the contact is activated and a related record is created while showing the message in the chat box
    Following are the received values: ANI:’+17685310975′, NotificationList:’NOC’’. action:’Subscribe’ After receiving the values, NOC notification list is activated in the contact record page of the contact that contains the received number. A message is inserted into the message history table.

1.NOC check box 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 check box of the contact is activated. A related record is created while showing the message in the chat box.
    Following are the received values: ANI:’+17685310975′, NotificationList:’All’, action:’Subscribe’ After receiving the values, NOC and Promo notification lists are activated in the contact record page of the contact that contains the received number. A message is inserted into the message history table.

1. Promo and NOC check boxes 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 check boxes of the contact are activated. A related record is created while showing the message in the chat box.
2 Unsubscribe Following are the received values: ANI:’+17685310975′, NotificationList:’Promo’, action:’UnSubscribe’ After receiving the values, Promo notification list is deactivated in the contact record page of the contact that contains the received number. A message is inserted into the message history table.

1. Promo check box is 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 check box of the contact is deactivated. A related record is created while showing the message in the chat box.
    Following are the received values: ANI:’+17685310975′, NotificationList:’NOC’, action:’UnSubscribe’ After receiving the values, NOC notification list is deactivated in the contact record page of the contact that contains the received number. A message is inserted into the message history table.

1. NOC check box should be deactivated on the contact record detail page.

2. Related records should be created in the history table.

3. Message is displayed in the chat box.

NOC check box of the contact is deactivated. A related record is created while showing the message in the chat box
    Following are the received values: ANI:’+18594840447′, NotificationList:’All’, action:’UnSubscribe’ After receiving the values, Promo and NOC notification lists are deactivated in the contact record page of the contact that contains the received number. A message is inserted into the message history table.

1. Promo and NOC check boxes should be deactivated.

2. Related records should be created in the history table.

3. Message is displayed in the chat box.

Promo and NOC check boxes of the contact are deactivated. A related record is created while showing the message in the chat box.
3 Unknown Following are the received values: ANI:’+18594840447′, NotificationList:’Unknown’’, action:’Subscribe/unSubscribe’ After receiving the values, history table record is created. One related record should be created in history table. Only related record is created.