Proactive message

I just want to pop message anything or without typing initially the flow will start. How can I do that.? I’m using V12.2.3 and I refer the proactive trigger in the document. But I don’t know where I should attach the code. Can anyone help me to do it :grinning:

Thank you

You should add below code in your website where you want your bot to appear.

    <script src="http://localhost:3000/assets/modules/channel-web/inject.js"></script>
        host: 'http://localhost:3000',
        botId: 'test_bot'
      window.addEventListener('message', function(event) {
        if ( === 'webchatOpened') {
          setTimeout(function() {
              type: 'proactive-trigger',
              channel: 'web'
          }, 1000)          

Please check this guide for more information.

Thank you very much :+1:

I just want to know where I can attach the html code in my project folder?

@mariam are u referring to the code shown Proactive message?

Yes, I can’t find index.html

@mariam What technology\language are you using for your website? You should add the given snippet in your website’s start page.

hey @abhisheksimion, hope you’re great!
My chatbot is linked with a desktop widget developed in JavaFX, still this code useful for my case?