cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Conversational AI webchat script is not working while inserting on webpage

Hi,

I have added webchat script of a chatbot in a document and saved in .html format, this is the screenshot of the code but when I'm trying to open it, the webpage is coming blank no chatbot icon is coming below right corner webpage-of-bot.png. It is giving error error-of-bot.png.

<!DOCTYPE html>
<html>
<body>
<script
src="https://cdn.cai.tools.sap/webchat/webchat.js"
channelId="c4416dcd-a9cc-48de-3542-c2a6558be93b"
token="f0e281401115e5bdd98090d64ca1d74ea"
apiRoot="https://xxxxxxxxxxxxx.eu10.hana.ondemand.com/public/api"
id="cai-webchat">
</script>
</body>
</html><br>

Any help on this issue is highly appreciated.

Thanks in advance,

Kshama Shankar

GabiBuchner
Product and Topic Expert
Product and Topic Expert

Hi Kshama,

I suppose you might need a web server if you want to run the webchat locally from your machine.

Best, Gabi

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Kshama,

For the enterprise tenant, you would need to host it in your local HTTP server.

Or you can use jsbin.com for testing.

I just tried it in jsbin and it works perfectly.

Cheers,

Lucero