https://discord.gg/botpress logo
What's the best way to access Google Sheets from a...
# 🤝help
s
Hey 👋 I'm building a real-estate bot in Botpress that fetches property data from Google Sheets through a Google Apps Script endpoint. Since I couldn’t find the HTTP Request card, I’m currently using an Execute Code card with this snippet: const endpoint = env.GS_ENDPOINT; const token = env.GS_TOKEN; const city = workflow.city || 'Jerusalem'; const url = `${endpoint}?action=search&token=${token}&city=${encodeURIComponent(city)}`; const res = await fetch(url); const data = await res.json(); workflow.gs = data; return data; My question: 🧩 Is this the recommended way to connect Botpress with Google Sheets via API now (using Execute Code)? Or is there a new/better official method to make HTTP or API calls (like the old HTTP Request card)? Thanks! 🙏
w
there's a [google sheets integration](https://www.botpress.com/en/integrations/gsheets) in the marketplace
i've used it a bit and it's pretty good
c
I just changed the title so it's more clear what the subject of the thread is from a glance