conversationCreated
When a conversation is created this event is triggered
JavaScript
frame1.on("conversationCreated", (message) => {
console.log("conversationCreated", message);
});
Properties
Properties | Description | Type |
---|---|---|
_id | id of the conversation | String |
archivedForUsers | array | Array |
customer | id of the customer | String |
chatRoom | id of the chat room | String |
memberOne | member one Object | Object |
memberTwo | member Two Object | Object |
created | date and time when the conversation was created | String |
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
}