https://discord.gg/botpress logo
#🌎general
Dynamic images into Carousel and Image cards
# 🌎general
b

bored-australia-39539

07/01/2023, 11:15 PM
guys. Is there any way for me to programatically insert images into Carousel and Image cards based on users input?
e

early-train-33247

07/02/2023, 12:20 AM
Hey @bored-australia-39539 you can do that!
Could you explain to me your requirements?
b

bored-australia-39539

07/02/2023, 12:41 AM
Id like to suggest different products based on customers querry
e

early-train-33247

07/02/2023, 1:28 AM
You could have the product image urls in a Execute Code card, and in it assign the desired one to a
productOneImageUrl
variable and in the Carousel card, use the variable like so:
Hey @bored-australia-39539, I posted a feature request: #1125588762601197688, please upvote and follow it so you are notified when it's released!
p

proud-memory-60003

02/26/2024, 3:32 PM
Is there a way to achieve the same effect but for providing a dynamic link?
Also what would this code look like? Thanks so much!
e

early-train-33247

02/28/2024, 7:00 PM
Hey this is a good way to achieve what you need: #1190425552704774324