Chatbot, remove bubble
# 🤝help
j
Hi guys, I was wondering if there's a possibility of not having to click the floating bubble to open my chatbot on my webpage, I mean, if the chat can appear directly. https://cdn.discordapp.com/attachments/1229297130393305108/1229297130599088220/Captura.PNG?ex=662f2b2b&is=661cb62b&hm=a5b595de0898f8e2e390772d373cd2e200f9efb3f1765a20fc54bdb19e4d51fb&
f
There is. You can try adding this
Copy code
javascript
      window.botpressWebChat.onEvent(
        function (event) {
          if (event.type === 'LIFECYCLE.LOADED') {
            window.botpressWebChat.sendEvent({ type: 'show' })
          }
        },
        ['LIFECYCLE.LOADED']
      )
You can read more about the events and see a full example here https://botpress.com/docs/cloud/toolbox/events-triggers/#webchat-lifecycle-and-events
j
In which part of the code should I put, is it in the Styler?
f
j
I was waking my website on Wix, do you know if I cand do it there?
f
I think that you should be able to, but I am honestly not sure. Is there a place for JavaScript code?
j
Yes, I put the chatbot with the pre configured code. And then I realized there's a tool called Velo to use Java code
So do I have to search the java code of the chat bot?
f
You should find a tool that can use JavaScript instead
j
Yes, Velo is part of Wix, it's like where you modify and add java code for the site
f
Alrighty, but we are not going to be adding Java, we are going to be adding JavaScript
j
It is for Javascript, I just thought Java and Javascript were the same thing
lol
I was just lazy to write javascript
f
Ah okay. You can try and add it there