How to Chat with Contacts

Overview

Users can chat with their contacts through the chat Box and can choose the number to send the message from. Received message and sent message are stored in the ‘SMS Storage’ object. The user can schedule a message at a particular date and time.

  • You can type messages to send to the receiver.
  • You can choose the Action to send message.
  • You can Schedule messages to send them on a particular time and date.
  • Depending on the Action name one chooses, the value is saved and displayed under respective message.
  • 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’) is created for the contact with the received message. The messages should be displayed in the chatBox. A related record (‘SMS Storage’) is created for the related Contact with the message received. The message should be displayed in the chatBox. A related record is created for the contact name “A Johnson” with the message Hello. The message is 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 receives a response confirmation of 200 for successful and 201 for unsuccessful. after a 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 a successful sending process, a related record should be created for the contact with type:”Sent.” The message should be displayed in the chatBox. A related record is created with the message “testing for outbound message” for the contact “A Johnson.” The message is displayed in the chatBox.