onMessageSentToBusiness( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:

Triggered when a visitor, contact, or member sends a message to the business.

Permissions
Manage Inbox Messages
Read Inbox Messages
Learn more about app permissions.
Method Declaration
Copy
function onMessageSentToBusiness(handler: function): void;
Method Parameters
handlerfunction

handler(event: MessageSentToBusinessEnvelope): void | Promise<void>

JavaScript
import { messages } from "@wix/inbox"; messages.onMessageSentToBusiness((event) => { // handle your event here });
Did this help?