https://discord.gg/botpress logo
Dynamic Message Display and Multiple Choice Config...
# šŸ¤help
r
Hi Botpress Community, I have a few questions regarding the Send Messages Card functionality in Botpress. I'm hoping someone can help me out: Dynamic Message Display: I have an array/object stored as a variable and would like to dynamically display messages to customers based on that. Is this possible in Botpress? If so, how can I implement it? Rich Text Support: I’d like to know if the messages I send through Botpress can be configured to display rich text using basic HTML (such as bold, italics, and images). Is this feature supported? Multiple Choice Input Configuration: Can the multiple-choice input option be configured to display a number of choices proportional to the number of items in an array/object? If anyone has worked with this or has insights on how to achieve this, I’d love to hear your thoughts. I’ve searched the documentation but couldn’t find any information on these capabilities. Any help would be greatly appreciated! Looking forward to your responses! Regards,
p
Hi! Dynamic messages based on a variable are possible, for example using an autonomous node. It would be helpful to know what kind of message you'd want to send depending on the different elements in your array to better advise you on a recommended implementation. Rich text s supported, you can instruct the autonomous node to write in bold or italic. Images are also possible as long as the ink is provided. The array variable can be used to generate buttons through the autonomous node as well. Although there might be a limit to how many buttons can be created, and only one can be selected by the user, just like the multiple choice card. I would recommend to test out your idea, but I have made a bot that implements those features, for reference, if you need it. Happy Bot Building!
r
Hi @prehistoric-airplane-85682 , Thanks for your response in my case, I get a json object with an array of items that needs to be displayed sometimes the number of items can be more than three and in other cases lesser than three, and a few cases might not have any information. I would like to use the Carousel (send message) card to display this. If there are lesser than 3 items; I dont want to display any information. If three or more, show the informaiton as carousels. Are you able to share some specifics on the best way to go about it? I look forward to your response.
4 Views