auto open bot on google sites website not possible...
# 🤝help
b
Hello I am trying to auto open the bot on a google sites website, but it doesn't work. When I just test the bot with the provided link, it opens in a full window immediately, as needed. Taking the embed code and placing it into a google sites frame: is just displaying the chat icon, that the user first has to click to open the chat. If I use the editable embed code, the there is just white space upon start, and nothing can even be clicked. Thanks for help!
f
b
Thank you - problem is this just displays a "click me" button. But it is vital to have the full chat window opened from the beginning.
This must be the solution, the sample already works on my google sites website: https://botpress.com/docs/developers/webchat/embedding-webchat-options/bot-in-div/
It still doesn't work. With the sample code it looks good at first sight, but I can't really chat with the bot (no answer delivered). Then I entered my own botid and clientid: The bot starts with my bot's welcome message, but then doesn't answer anything. When I replace the whole "webchat init" block with my own "editable embedding code", then there is no chat textfield anymore, just the colored background, and no text.
f
Are you using a styleseheet?
Could also be some CSS on your website that is changing it.
b
I am doing nothing special, am trying this just in a standard google-provided embed frame on a simple basic google sites website.
OK, I found a way to do this: 1. Publish bot. 2. Click the "Share button" -> opens website with the bot 3. right click on that site -> view page source 4. Copy the whole page source html code over into the embed-frame on the google sites-website. And (only) then it works!
73 Views