ZohoSalesIQ.Chat.start()
Note: This API is supported from version 8.0.0.
The ZohoSalesIQ.Chat.start() API allows initiating a new chat or reopening an existing one (closed or missed) using the specified chat ID.
Parameters
- question* - User input or question of the conversation.
- customChatId (Optional) - To open a chat with a custom chat ID or reopen an existing chat (closed or missed).
- departmentName (Optional) - Department to which the chat should be routed.
- callback (Optional) - The callback to get the result.
Example
CopiedZohoSalesIQ.chat.start("Hi there, I have a query with your product!", "custom_chat_id", "department_name").then((value) =>
{
// Handle success
}).onError((error, stackTrace) => {
// Handle error
});