How to implement rich messages with "buy button", images and carousels

Iā€™m trying to implement an in-app messaging feature that let users chat with sellers and buy products/services within the chat context.
I was inspired by Facebook messenger bots - just to give you the idea!
I thought to use Firebase as the database to host my conversations but I was wondering how to enhance conversation messages with - at least - an image showing the product and the related buy button in the same bubble.
Any help is appreciated :slight_smile: