How to create a wrapper over dialog?

I started using the latest botpress v12.0.1, but did not find any document or tutorial which shows creating a wrapper on top of a dialog.

Eg: Instead of just displaying plain links over the existing dialog, I would like to create a scrollable (horizontal) content with cards that would replace the existing dialog on certain request.

Please guide me with some steps on how to create a wrapper over the existing Dialog and how to enable it in web channel.

Thanks.

1 Like

Hello @ruchikumhari, there are some examples of custom components here: https://github.com/botpress/botpress/tree/master/examples/custom-component

Also, we have a module called “extensions” which has a custom component (a dropdown), so you can check it out: https://github.com/botpress/botpress/tree/master/modules/extensions/src/views/lite/components

Finally, we also have some information in the documentation: https://botpress.io/docs/channels/web/#creating-a-custom-component

This is possible since v12x. I have tried a wrapper for my use case and documented the effort in this blog check this for some pointers.