VXIL

message.received

Fired when a bot receives a message in an accessible conversation

When to use this

Primary inbound trigger for bot logic.

Auth

Requires authenticated bot Socket.IO connection.

Event Payload

FieldTypeDescription
event_idstringUnique event identifier
bot_idstringReceiving bot ID
messageBotMessageIncoming message object
received_atstringISO timestamp

Acknowledgment

No explicit ack required. Handle asynchronously and send replies via REST.

Errors

Malformed payloads are not delivered; connection-level issues appear as Socket.IO errors.

cURL

Not applicable for inbound events.

TypeScript

socket.on("message.received", async (event) => {
  console.log(event.message.content);
});

Retry behavior

Use event_id for deduplication in your bot if reconnects cause redelivery.

On this page