https://discord.gg/botpress logo
How to get images from a web page
# 🤝help
p
Is it possible to extract images from a website and output them in the chat? The bot should know what images to extract based on the user's question, and store them in a variable (or store the URLs) to then output them as an image or carrousel. How can I do something like this?
l
One way might be possible with the Apify integration (though I have never tested it, our docs bot had suggested these steps: https://cdn.discordapp.com/attachments/1472813490111647873/1472970611474305256/image.png?ex=69948248&is=699330c8&hm=1ca58a45b18f05ddaf4e36098cfccc5e2de8b67dbf31d0421ec679500633b527&
- Another solution (especially if there are not 100s of images on the website) is to create a table and create rows for all the specific images copying the image urls and pasting it in the table. In your Autonomous node you can enable the table + FindTableRows and when the user asks for a specific item, the correct image will be displayed!
p
I will try the apify integration and see how it goes, thank you!!
c
It usually works for me just telling the autonomous node (if ur using one) to always showcase products with their correct image url in a carousel
l
exactly, in my examle it was via a table - carousels work too!