Events
user-new
{
event: "user-new",
payload: {
id: <uuid>,
legalId?: <providerId>,
names: string,
referenceId: <uuid>,
roomId: `G:<botId>:<referenceId>`,
botId: <uuid>,
companyId: Number,
socketId: <uuid>,
createdAt: Date
}
}
{
"event": "user-new",
"payload": {
"id": "60b28001-daee-45c1-9b21-3cd8ede9ea1f",
"names": "Tester #1",
"referenceId": "60b28001-daee-45c1-9b21-3cd8ede9ea1f",
"roomId": "G:a6c95322-f419-42b8-a762-5c8eaf20a874:60b28001-daee-45c1-9b21-3cd8ede9ea1f",
"botId": "a6c95322-f419-42b8-a762-5c8eaf20a874",
"companyId": 135,
"socketId": "87d46c82-0987-47a8-8d80-2ef0d08f1a68",
"createdAt": "2021-12-23T15:20:07.462Z"
}
}
room-message
{
"event": "message:user",
"origin": "web" | "mobile",
"app": {
"id": <botId>,
...props: {..}
},
"sender": <SenderProps>,
"room": <RoomProps>,
"messages": ["https://docs.jelou.ai/webhook/messages-events"],
"datetime": Date,
}
room-member-add
{
"event": "room-member-add",
"payload": {
"roomId": <roomId>,
"member": <uuid>,
"memberInfo": <MemberProps>,
},
"datetime": Date,
}
room-member-remove
{
"event": "room-member-remove",
"payload": {
"roomId": <roomId>,
"member": <uuid>,
"memberInfo": <MemberProps>,
},
"datetime": Date,
}
conversation-open
{
"event": "conversation-open",
"payload": {
"room": <room>,
"openedBy": <userId>,
},
"datetime": Date,
}
Last updated