如何配置Cognigy WebchatWidget参数移除界面Powered by Cognigy AI标识
Cognigy Webchat 移除品牌标识配置方法
你需要将disableBranding: true参数添加到initWebchat函数的第二个配置对象中,与已有的userId、forceWebsockets参数同级即可。
修改后的完整代码如下:
<!DOCTYPE html> <html> <head> <title>Parcel Sandbox</title> <meta charset="UTF-8" /> <style> html { background-color: #eee; } </style> </head> <body> <!-- 1. Load the webchat.js bundle via a script tag --> <script src="https://github.com/Cognigy/WebchatWidget/releases/download/v2.20.0/webchat.js"></script> <!-- Initialize the Webchat towards a Cogngiy Endpoint via initWebchat() --> <script> initWebchat( "https://endpoint-trial.cognigy.ai/8a8b023c1da283e1c9191c471aaef8dc5090ccc8f33d6a39b00a80276754309e", { userId: "documentation-reader", forceWebsockets: true, disableBranding: true } ); </script> </body> </html>
修改完成后刷新页面,界面上的「Powered by Cognigy AI」标识就会被隐藏。
内容的提问来源于stack exchange,提问作者John Paul
相关产品推荐
相关产品推荐

