https://discord.gg/botpress logo
Integrate Bot into Framer Page
# 🤝help
f
Hi everyone, I'm trying to create a button on my Framer webpage that when clicked it opens the Botpress webchat I've tried using a code override as well as the custom code feature on Framer but neither are working. Does anyone have any experience with this?
p
Hey! Yeah, I’ve worked with Framer and Botpress before. Getting the webchat to open with a button click can be a bit tricky, especially with how Framer handles custom code. Usually, you need to make sure the Botpress chat script is loaded properly first. Then, you can use something like window.botpressWebChat.sendEvent({ type: "show" }) to trigger the chat to open when the button is clicked. If it’s not working through the code override or custom code, it might be a timing issue or how the script is being added. If you'll like me to get it done for you, you can dm bro
2 Views