I want to create a module for the Botpress. This module must render dynamic data as a carousel.
The module must work in this way:
- The user types into chat the breed of the cat he likes;
- Botpress pass the cat breed to the module;
- The module goes to Google images and searches for “cat +breed+”;
- The module takes out the first 5 pictures and draws them as a
carousel. Each card looks like this: in the place of the picture is an image of a cat. In the signature below is a link to the original image.
Actually, my question is, how to do this? I clearly understand that
actions are not suitable for me, since they will not allow me to render a
carousel. In fact,
actions have access only to the assignment of variables within the key-value storage.
A custom content-type is also not the answer, since I need not only to render, but also to get data for rendering from somewhere.
Perhaps skill will suit me, but I’m not sure.
Do you have ideas on how to organize such a module? I will be very grateful for any ideas. Thank!