Webchat Integration
# 🤝help
f
My pre-configured integration works (the embedded one) but the configurable doesn't. I am only trying the basis, changing names and description but it just doesn't work.
a
Hey @full-ocean-42333 could you share the code you're using?
f
window.botpressWebChat.init({ "composerPlaceholder": "Chat with bot", "botConversationDescription": "This chatbot was built surprisingly fast with Botpress", "botId": "My ID", "hostUrl": "https://cdn.botpress.cloud/webchat/v0", "messagingUrl": "https://messaging.botpress.cloud", "clientId": "My ID" }); My ID is replaced 🙂
a
You're missing a quote in the first
<script>
tag. Replace it with
<script src="https://cdn.botpress.dev/webchat/v0/inject.js"></script>
and you should be good to go
f
that is exactly what I have. when i copy paste here discord shows that random thing that isn't what I have
a
Ah okay. Once the quote is added, the embed script works fine. Maybe a working example could help? https://jsfiddle.net/GordyNumberOne/j3a9k2wo/3/
11 Views