How to Chat with Contacts

Overview:

Users can chat to the contacts through the chat Box and can choose the number to send the message from. Received message and sent message gets stored in the ‘SMS Storage’ Object.User can schedule a message at a particular date and time.

1. You can type messages to send to the receiver.
2. You can choose the Action to send message.
3. You can Schedule messages to send them on a particular time and date.
4. Depending on the Action name one chooses value will be saved and displayed under respective message.
5. Related record containing message body is shown here.

Smoke Test:

SL#

Use Cases Steps to test Test Cases Expected result

Actual result

1

Send messages to Contact using Postman rest client.

 

URL: /services/apexrest/postsms

Below are the received values: ANI:’+17685310975′, message_Body:’Hello’

After receiving the values a related record (‘SMS Storage’) gets created for the respected contact with the received message and the messages should be displayed in the chatBox.

A related record(‘SMS Storage’) should be created for the related Contact with the message received and the message should be displayed in the chatBox.

A related record got created for the contact name “A Johnson” with the message Hello and the message got displayed in the chatBox.

2 Send messages from Contact   URL: https://smart-flows.intelepeer.com/v2/api/apitriggers

Sending a json from salesforce in the following format {

“ANI”;”+17685310975″, “message_Body”:”testing for outbound message”,

“DNIS”:”+17207291069”,

“flowId”:”5c3e1af2bc7dab6c9ae32c09”

“recordId”:”a5C0n000000Cw80EAC” }

After sending the json salesforce gets a response confirmation of 200 for successful and 201 for unsuccessful, after successful process a related record should be created for the contact where The Message Direction field shows Sent, with the Message Status field shows Delivered or Successfully delivered to SmartFlows.

After successful sending process a related record should be created for the contact with type:”Sent” and the message should be displayed in the chatBox.

A related record got created with the message “testing for outbound message” for the contact “A Johnson” and the message got displayed in the chatBox.