https://discord.gg/botpress logo
I’m building a real-estate chatbot in Botpress and...
# 🤝help
s
Goal: when a user asks something on WhatsApp, the bot should fetch real data from Google Sheets (address, city, price, images, etc.) and reply dynamically. My questions: What’s the correct way to connect Google Sheets so the bot pulls live data? What table structure is recommended for the sheet (e.g. ID | Address | City | Price | Images)? How can I use this data inside a WhatsApp flow after the integration works? I already enabled the Google Sheets API, created a Service Account, and added it to my sheet. I just need guidance on the best setup to make the flow work. Thanks 🙏 https://cdn.discordapp.com/attachments/1417530028823941261/1417530029444829325/2025-09-16_-18.17.40.png?ex=68cad137&is=68c97fb7&hm=6b123ae9d0d94f476dff7e870d05c1b0a19131ea3d619e1a3f31cd1250db7a71&
g
the best way would probably be to sync your google sheets with a botpress table, then use the botpress table as a knowledge base, or create dynamic filters to filter the table explicitly based on the users last message.
you can add an apps script to the google sheet and create a button in sheets that when pressed, imports the entire sheet into your botpress table
s
Hey 👋 First of all, thank you so much for all your help so far — it really helped me a lot! I successfully connected the API, and now the bot is already returning data from my table 🎉 Now I’d like to move to the next step: How can I make the bot also display the property images (the ones stored in the “Images” column in my Google Sheets or table)? I’d really appreciate it if you could explain how to do that or share an example. Thanks again for your support 🙏
g
are they public urls? do you want the bot to return more than one image of a property, say in a carousel
the returned rows from the table will each have a field with the image url, if you manipulate that field and map extracting all urls, you can dynamically build a carousel and send it from an execute code card.