Here's the code that works:
<iframe srcdoc="
window.botpressWebChat.init({
'composerPlaceholder': 'Ask me anything AI!',
'botConversationDescription': 'ThreadripperGPT',
'botId': 'f87c4530-e481-49dd-8841-236d83aa1389',
'hostUrl': '*ttps://cdn.botpress.cloud/webchat/v0',
'messagingUrl': '*ttps://messaging.botpress.cloud',
'clientId': 'f87c4530-e481-49dd-8841-236d83aa1389',
'enableConversationDeletion': true,
'showPoweredBy': false,
'className': 'webchatIframe',
'containerWidth': '100%25',
'layoutWidth': '100%25',
'hideWidget': true,
'showCloseButton': false,
'disableAnimations': true,
'closeOnEscape': false,
'showConversationsButton': false,
'enableTranscriptDownload': false,
'stylesheet':'*ttps://webchat-styler-css.botpress.app/prod/code/3fcd3e4e-d5bc-4bf5-8699-14b621b3ada2/v31782/style.css'
});
window.botpressWebChat.onEvent(function () { window.botpressWebChat.sendEvent({ type: 'show' }) }, ['LIFECYCLE.LOADED']);
"
width="100%" height="100%">
Note: BotID/ClientID the same, yet only works when I'm switched to v2.
The
only thing I'm changing is adding my BotID/ClientID.