Hide launcher on click (x)
Hi, my client is about to launch their chatbot on their webshop, and they’re using the voiceflow widget for it.
Unfortunately, we can't go live just yet because the launcher is overlapping some buttons in the checkout process.
Is there a way to add a close (X) button above the launcher to allow users to hide it? Or any other solutions?
Thanks!!
1 Reply
You can – the web-chat widget exposes a small JS API you can call from your site.
1) Load the widget as usual
2) Add your own button (or any element) and call the API when it’s clicked
The relevant API methods are:
•
window.voiceflow.chat.hide()
– hides both the launcher bubble and the chat window
• window.voiceflow.chat.show()
– shows the launcher again (useful if you want to give users a way to reopen it later)
Other practical work-arounds
────────────────────────────
• Re-position the bubble with CSS instead of hiding it:
• Automatically hide the bubble on specific pages (e.g. your checkout) so no extra button is needed:
Docs: https://docs.voiceflow.com → Custom Triggers → window.voiceflow.chat
APIVoiceflow
Welcome to Voiceflow's docs
Build, manage, and deliver chat and voice agents for customer support and beyond.