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
    }
}

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