Skip to main content

conversationCreated

When a conversation is created this event is triggered

JavaScript
frame1.on("conversationCreated", (message) => {
console.log("conversationCreated", message);
});

Properties

PropertiesDescriptionType
_idid of the conversationString
archivedForUsersarrayArray
customerid of the customerString
chatRoomid of the chat roomString
memberOnemember one ObjectObject
memberTwomember Two ObjectObject
createddate and time when the conversation was createdString
JSON Sample Response
{
"_id": "63289b4bf0357f1c648791e8",
"archivedForUsers": [],
"customer": "631794a83671700c713b1ce5",
"chatRoom": "631794a83671700c713b1ce6",
"memberOne": {
"_id": "63233015c3aa3508a4c8fc34",
"username": "dasdas",
"webSocketId": "hPehXIksLFMO4Cv_AAAm"
},
"memberTwo": {
"_id": "63289b35f0357f1c648791e5",
"username": "user 1",
"webSocketId": "iJu1juaUBN-U2HMAAAAo"
},
"created": "2022-09-19T16:39:39.882Z",
"__v": 0
}