https://discord.gg/botpress logo
#🤝help
Webchat Integration
# 🤝help
f

full-ocean-42333

07/11/2023, 11:20 AM
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

acceptable-kangaroo-64719

07/11/2023, 12:37 PM
Hey @full-ocean-42333 could you share the code you're using?
f

full-ocean-42333

07/11/2023, 1:32 PM
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

acceptable-kangaroo-64719

07/12/2023, 11:42 AM
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

full-ocean-42333

07/12/2023, 1:18 PM
that is exactly what I have. when i copy paste here discord shows that random thing that isn't what I have
a

acceptable-kangaroo-64719

07/12/2023, 1:21 PM
Ah okay. Once the quote is added, the embed script works fine. Maybe a working example could help? https://jsfiddle.net/GordyNumberOne/j3a9k2wo/3/
7 Views