https://discord.gg/botpress logo
Hi Botpress community,
# 💻developers
b
Hi Botpress community, I'm trying to send custom analytics events (like conversation start, lead capture) from my bot's flow via webhook to a Supabase endpoint. What's the recommended best practice or most robust way to trigger these webhook POST requests from within a standard flow? Is using Execute Code with an HTTP client standard, or is there a built-in webhook card/feature? Also, generally speaking, is sending custom data via webhooks like this possible on the free tier, or are specific analytics/webhook capabilities often tied to paid plans? Thanks for any pointers!
w
Hey there yes you can do that with a "execute code" card that allows you to write js (Deno) the webhook integration is more to receive data (e.g. create an "endpoint" that targets your bot)
whats's cool is that i'd 95% of the features are available on the free plan so you can test and create your bots very deeply before pushing them to production by buying add-ons or another plan
w
In Botpress hub there's a workflow to install as extension, create a card, to call webhook or api