> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: onMessageButtonInteracted(event: MessageButtonInteracted) # Method package: wixInboxV2 # Method menu location: wixInboxV2 --> onMessageButtonInteracted # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/inbox/events/on-message-button-interacted.md # Method Description: An event that triggers when a postback button is clicked. The `onMessageButtonInteracted()` event handler runs when contact, member, or site visitor clicks on a postback button that was sent with a message. The received `MessageButtonInteracted` object contains information about the interaction with the postback button. >**Note:** Backend events don't work when previewing your site. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event triggered when a postback button is clicked ```javascript // Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixCrmInbox_onMessageButtonInteracted(event) { const eventId = event.metadata.id; const messageId = event.data.message._id; } /* Full event object: * { * "data": { * "appId": "151e476a-715e-ec33-db9a-a7ff4d51f70a", * "conversationId": "6fd2b962-dd8f-382f-8d27-ae63f188c939", * "interactedBy": { * "contactId": "9e668c08-8bdb-4240-babb-8176935f6f78" * }, * "interactionId": "spa_day_54321__change_appointment" * }, * "metadata": { * "entityId": "4b0d9a97-7c33-4ee9-945d-6a2f82d2f26d", * "eventTime": "2023-11-15T15:24:51.096099Z", * "id": "4fe18293-0a00-4650-be2e-ba754ee5cba0", * "triggeredByAnonymizeRequest": false * } * } */ ``` ---