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! 🙏