@koredev/agentai-web-sdk 1.2.9-rc → 1.3.1-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -60,34 +60,35 @@ include the following script in your html file and configure bot configurations
|
|
|
60
60
|
|
|
61
61
|
```js
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
63
|
+
<script src="https://cdn.jsdelivr.net/npm/@koredai/agentai-web-sdk@1.0.0/dist/umd/agentai-web-sdk-umd.min.js"><script>
|
|
64
|
+
<script>
|
|
65
|
+
var aaWindow=KoreAASDK.AAWindow;
|
|
66
|
+
var aaConfig=KoreAASDK.AAConfig;
|
|
67
|
+
|
|
68
|
+
aaConfig.connectionDetails = {
|
|
69
|
+
conversationId: "PLEASE_ENTER_CONVERSATION_ID",
|
|
70
|
+
botId : "PLEASE_ENTER_BOT_ID",
|
|
71
|
+
domainURL: "PLEASE_ENETR_DOMAIN_URL",
|
|
72
|
+
token: "PLEASE_ENTER_TOKEN",
|
|
73
|
+
interactiveLanguage: "PLEASE_ENTER_LANGUAGE",
|
|
74
|
+
customData: "PLEASE_ENTER_CUSTOM_DATA",
|
|
75
|
+
userName: "PLEASE_ENTER_USER_NAME",
|
|
76
|
+
channel: "PLEASE_ENTER_CHANNEL",
|
|
77
|
+
sessionId: "PLEASE_ENTER_SESSION_ID",
|
|
78
|
+
summaryEnabled: "PLEASE_ENTER_SUMMARY_ENABLED"
|
|
79
|
+
};
|
|
80
|
+
aaConfig.container = 'aa-web-sdk';
|
|
81
|
+
aaConfig.branding.colors.primay = '#2970FF';
|
|
82
|
+
|
|
83
|
+
/*
|
|
84
|
+
Important Note: These keys are provided here for quick demos to generate JWT token at client side but not for Production environment.
|
|
85
|
+
Refer below document for JWT token generation at server side. Client Id and Client secret should maintained at server end.
|
|
86
|
+
https://developer.kore.ai/docs/bots/sdks/user-authorization-and-assertion/
|
|
87
|
+
**/
|
|
88
|
+
|
|
89
|
+
var chatWindowInstance = new aaWindow(aaConfig);
|
|
90
|
+
chatWindowInstance.show(aaConfig);
|
|
91
|
+
|
|
92
|
+
</script>
|
|
93
|
+
|
|
93
94
|
```
|