Send message to latest Conversation using Visitor's Email
Description:
- This API allows an agent to send messages to the recent active conversation of the visitor with the email specified in the URL.
Note:
- If the agent is associated with more than one active chat for the specified visitor's email address, then the message is sent to the recent chat where the agent is the attender rather than the chat in which he is a participant
- If more than one active chat is associated with a specified email address, then the message is sent to the recent chat conversation.
Requested Payload:
- text - To specify the text that will be sent as message in the conversation.
- file - To specify the file which will be shared in the conversation, you can add comments to the file. Ex: {file : multipart/form-data , comment :"any comment "}
Note that the file size limit is 50 MB.
OAuth Scope:
SalesIQ.conversations.CREATE
URL
Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screen name}/visitors/{email_id}/messages
Example
Copiedhttps://salesiq.zoho.com/api/v2/zylkerinc/visitors/patricia@zylker.com/messages
Payload - Case 1: To send text
Copied{
"text" : "Can i find a solution for this error?"
}
Payload - Case 2: To send file
Copied{
"file": loginerror.png,
"comment": "Log in error"
}