grumpy-cyan
grumpy-cyan16mo ago

Chatbot preview on website

Sorry for my terrible accent haha, that would be really helpful if someone could tell me how you would do this
2 Replies
absent-sapphire
absent-sapphire16mo ago
(function(d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function() {
window.voiceflow.chat.load({
verify: { projectID: 'PROJECT ID PROJECT ID' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
});
}
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
})(document, 'script');
(function(d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function() {
window.voiceflow.chat.load({
verify: { projectID: 'PROJECT ID PROJECT ID' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
});
}
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
})(document, 'script');
Paste this code into the browser's console, not into the HTML elements. You may need to type 'Allow pasting' into the console and press Enter before pasting the code.
grumpy-cyan
grumpy-cyanOP16mo ago
That was it thanks!

Did you find this page helpful?