Like when using the System.CommonResponse component channelCustomProperties component (as explained in another Oracle TechExchange article*), you can return a message payload from custom components that are messenger specific and that allow you to use layout extensions available on a specific messenger channel. By doing so, you bypass the payload format transformation in the channel connectors and instead post the payload "as is" to the messenger client.
In this article, I explain how you use the MessageModel's RAW message format to send a channel specific layout. The example used is Microsoft Teams' adaptive card layout.
The image below shows the the output rendered by the custom component that you can download for this article. The custom component uses multiple text messages and an attachment message to print a confirmation for a pasta order. Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.