extended-salmon•16mo ago
Proactive Message and Opening it automatically after one second is not working.
I tried creating the chatbot and have integrated it with my website as well. But now when I am trying to add proactive messages alongside the one where the widget opens automatically after a few seconds (1 in my case) it isn't working. I tried copying the code from the Voiceflow documentation but it isn't working. Can someone help me with it? The code I am using currently is:
<script type="text/javascript">
(function(d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function() {
window.voiceflow.chat.load({
verify: { projectID: '65ec0609175bb21b06b57c9a' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
}); window.voiceflow.chat.proactive
.push({ type: 'text', payload: { message: "Hello, Chat with me to avail a guaranteed discount" } }) } v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s); })(document, 'script'); </script>
.push({ type: 'text', payload: { message: "Hello, Chat with me to avail a guaranteed discount" } }) } v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s); })(document, 'script'); </script>
0 Replies