Bring Your Own Channel For Messaging Outbound Event Reference

Partner integrations use the Pub/Sub API to subscribe to the custom platform event. There, they receive outbound messages from the rep in Salesforce and forward them to the customer.

Outbound events include diverse message entries and provide supplementary information related to the conversation entry. This event reference includes essential outbound events for partners to integrate, but a full event reference is available in GitHub: Outbound Custom Event Payloads.

The outbound event with "entryType": "Message" provides outbound message content entered by the rep in Salesforce. To show outbound messages to the messaging end user, supporting this event type is required.

Salesforce supports a wide variety of payloads for format types and message types. Here are a few examples.

Payloads differ based on which capabilities you register for your integration.

To support showing a Messaging end user when a rep starts and stops typing, see Configure Inbound Acknowledgments and Outbound Typing Indicators for Bring Your Own Channel for CCaaS or for Bring Your Own Channel for Messaging.

The MessageUpdated event signals whether an asynchronous file upload was successful or not in the attachmentUploadResult object. While not required, we recommend that partner integrations listen for and handle this event.

Whenever a rep leaves or joins a conversation, a ParticipantChanged event fires. The event payload specifies whether it was a remove or add operation. Partners can build optional Messaging session clean up logic by consuming and handling these events.

GitHub: Outbound Custom Event Payloads