When user clicks on the website I want to immediately pop up
I am using wordpress. I have created a page on Wordpress. I want that whenever that page loads , chatbot should immediately popup. How can I do this
1 Reply
How to make the Voiceflow chat widget pop-up as soon as the page loads (WordPress)
1. Go to the WordPress page where you want the chat to auto-open.
• If you use Gutenberg, add a Custom HTML block.
• If you prefer, install a snippet/ header-injection plugin (e.g. “Code Snippets”, “Header & Footer”) and target only this page. 2. Paste the widget code below and replace
https://docs.voiceflow.com
• If you prefer, install a snippet/ header-injection plugin (e.g. “Code Snippets”, “Header & Footer”) and target only this page. 2. Paste the widget code below and replace
PROJECT_ID
with your Voiceflow project ID (and adjust the runtime URL / versionID if you changed them in the integration tab):
That’s it – every time the page loads, the widget script initializes and open()
programmatically pops the chat window instead of waiting for the visitor to click the launcher.
Need a slight delay? Replace window.voiceflow.chat.open();
with:
(Optional) Prevent auto-opening for returning visitors
Reference: Voiceflow Web Chat API – open()
method in Custom Triggers docshttps://docs.voiceflow.com