我正试着用Cognigy.ai做一个聊天机器人。我做了一个小机器人,但我不能自定义它的网络聊天界面,从Github回购,但我不能知道如何做呢?
这是我的聊天机器人的端点:
<!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
}
);
</script>
</body>
</html>我正试图从网络聊天界面中删除“由认知AI提供动力”的功能。在Github中,他们提到我需要disableBranding = True。但我该写在哪里呢?
用于定制的Github是:https://github.com/Cognigy/WebchatWidget/blob/master/docs/embedding.md
发布于 2021-09-27 16:53:25
像这样,
<script>
initWebchat(
"https://endpoint-trial.cognigy.ai/8a8b023c1da283e1c9191c471aaef8dc5090ccc8f33d6a39b00a80276754309e",
{
settings: {
colorScheme: "#fab",
disableBranding: true
}
}
);
</script>发布于 2021-09-27 16:51:44
你需要添加
settings: {
disableBranding: true
}行后:
forceWebsockets: true,确保在forceWebsockets: true = forceWebsockets: true,之后添加逗号
正如它们在文件中提到的那样:
名称:设置:类型:端点设置
https://stackoverflow.com/questions/69350359
复制相似问题