@@ -4,7 +4,6 @@ const INKEEP_INTEGRATION_ID = "cm3ogfzp4003f29brrf16r6gm";
4
4
const INKEEP_ORGANIZATION_ID = "org_yjUXfeVC1tTVMIoY" ;
5
5
6
6
// Get the button element
7
- const inkeepButtonTop = document . getElementById ( "chatButtonTop" ) ;
8
7
const inkeepButtonBottom = document . getElementById ( "chatButton" ) ;
9
8
10
9
// Create a new div element to hold the Inkeep modal and set its id and position
@@ -71,9 +70,6 @@ const config = {
71
70
const inkeepWidgetAI = Inkeep . ModalChat ( config ) ;
72
71
73
72
// Add event listener to open the Inkeep modal when the button is clicked
74
- inkeepButtonTop . addEventListener ( "click" , ( ) => {
75
- inkeepWidgetAI . update ( { modalSettings : { isOpen : true } } ) ;
76
- } ) ;
77
73
inkeepButtonBottom . addEventListener ( "click" , ( ) => {
78
74
inkeepWidgetAI . update ( { modalSettings : { isOpen : true } } ) ;
79
75
} ) ;
@@ -162,9 +158,40 @@ isShortcutKeyEnabled,
162
158
return source ;
163
159
} ,
164
160
} ,
165
- canToggleView : false ,
161
+ aiChatSettings : {
162
+ aiAssistantName : "Viam" ,
163
+ chatSubjectName : "Viam" ,
164
+ aiAssistantAvatar : "https://cdn.prod.website-files.com/62fba5686b6d47fe2a1ed2a6/62fba8f4a8ca05f38a2b497f_viam-logo-webclip.png" ,
165
+ userAvatarSrcUrl : "https://storage.googleapis.com/organization-image-assets/viam-botAvatarDarkSrcUrl-1721328398594.svg" ,
166
+ introMessage : "Hi!\n\nI'm an AI assistant trained on documentation, help articles, and other content. \n\nHow can I help you today?\n\n_Please do not share sensitive information such as secrets or API keys with me._" ,
167
+ getHelpOptions : [
168
+ {
169
+ icon : { builtIn : "IoMail" } ,
170
+ name : "Email" ,
171
+ action : {
172
+ type : "open_link" ,
173
+
174
+ } ,
175
+ } ,
176
+ {
177
+ icon : { builtIn : "FaDiscord" } ,
178
+ name : "Discord" ,
179
+ action : {
180
+ type : "open_link" ,
181
+ url : "https://discord.gg/viam" ,
182
+ } ,
183
+ } ,
184
+ ] ,
185
+ exampleQuestions : [
186
+ "How do I install Viam on a single-board computer?" ,
187
+ "How do I deploy a person detection model?" ,
188
+ "How to ingest data from machines" ,
189
+ "How can I query sensor data with third-party tools?" ,
190
+ ] ,
191
+ } ,
192
+ canToggleView : true ,
166
193
searchSettings : {
167
- placeholder : "Search..." ,
194
+ placeholder : "Search for anything ..." ,
168
195
tabs : [
169
196
"All" ,
170
197
[ "Docs" , { isAlwaysVisible : true } ] ,
0 commit comments