Voiceflow PartnersVPVoiceflow Partners
Powered by
inner-oliveI
Voiceflow Partners•9mo ago•
2 replies
inner-olive

Need help by implementing my (styled) Chatbot to my website

Hey everyone,

I don't understand why I can't implement my chatbot in my website.

I want the chatbot to be embed with my customized styling from the widget area. I copy the code and implement it right before the closing body tag. But the chatbot is nowhere. So I did also implement this code: <div id="vf-chat-wrapper" style="width:100%;max-width:420px;height:100vh;"></div> - but nothing happened.

I have no idea, what I'm doing wrong. Is there someone, who can help me?

Thanks a lot

My code:

<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: 'XYZ' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production',
voice: {
url: "https://runtime-api.voiceflow.com"
},
render: {
mode: 'embedded',
target: document.getElementById(vf-chat-wrapper),
}
});
}
v.src = "https://cdn.voiceflow.com/widget-next/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

Need help with ecommerce chatbot
verbal-limeVverbal-lime / ❓┃ask-a-question
3y ago
Chatbot preview on website
Francois🇫🇷FFrancois🇫🇷 / ❓┃ask-a-question
2y ago
Can't add chatbot to website
verbal-limeVverbal-lime / ❓┃ask-a-question
2y ago
im having trouble adding my chatbot onto my website
static-pinkSstatic-pink / ❓┃ask-a-question
3y ago