-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:avo-hq/avodocs
- Loading branch information
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,60 @@ const config = { | |
}, | ||
}, | ||
head: [ | ||
[ | ||
"script", | ||
{ | ||
src: "https://unpkg.com/@inkeep/[email protected]/dist/embed.js", | ||
type: "module", | ||
defer: true, | ||
}, | ||
], | ||
["script", { src: "/static/addInkeep.js", type: "module", defer: true }], | ||
// [; | ||
// 'script', | ||
// {}, | ||
// `// Embed the widget using the Inkeep.embed() function. | ||
// const config = { | ||
// componentType: "ChatButton", | ||
// // optional -- for syncing UI color mode | ||
// colorModeSync: { | ||
// observedElement: document.documentElement, | ||
// isDarkModeCallback: (el) => { | ||
// return el.classList.contains("dark"); | ||
// }, | ||
// colorModeAttribute: "class", | ||
// }, | ||
// properties: { | ||
// chatButtonType: "PILL", | ||
// baseSettings: { | ||
// apiKey: import.meta.env.VITE_INKEEP_API_KEY, // required | ||
// integrationId: import.meta.env.VITE_INKEEP_INTEGRATION_ID, // required | ||
// organizationId: import.meta.env.VITE_INKEEP_ORGANIZATION_ID, // required | ||
// primaryBrandColor: "#1398FE", // your brand color, widget color scheme is derived from this | ||
// organizationDisplayName: "Avo", | ||
// // ...optional settings | ||
// chatButtonText: "Ask the AI Assistant", | ||
// }, | ||
// modalSettings: { | ||
// // optional settings | ||
// }, | ||
// searchSettings: { | ||
// // optional settings | ||
// }, | ||
// aiChatSettings: { | ||
// // optional settings | ||
// botAvatarSrcUrl: "/logomark.png", // use your own bot avatar | ||
// // quickQuestions: [ | ||
// // "Example question 1?", | ||
// // "Example question 2?", | ||
// // "Example question 3?", | ||
// // ], | ||
// }, | ||
// }, | ||
// }; | ||
|
||
// const inkeepWidget = Inkeep().embed(config);` | ||
// ], | ||
// <script async="" src="https://www.google-analytics.com/analytics.js"></script> | ||
[ | ||
'script', | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Embed the widget using the `Inkeep.embed()` function. | ||
const config = { | ||
componentType: "ChatButton", | ||
// optional -- for syncing UI color mode | ||
colorModeSync: { | ||
observedElement: document.documentElement, | ||
isDarkModeCallback: (el) => { | ||
return el.classList.contains("dark"); | ||
}, | ||
colorModeAttribute: "class", | ||
}, | ||
properties: { | ||
chatButtonType: "PILL", | ||
baseSettings: { | ||
apiKey: "389a67786d65d3ed8f59715c9e61d4a782c33269e7a89919", // required | ||
integrationId: "cm0wbyzba009blzci5h1bxbg8", // required | ||
organizationId: "org_IqSqx2i7H6DlDzGS", // required | ||
primaryBrandColor: "#1398FE", // your brand color, widget color scheme is derived from this | ||
organizationDisplayName: "Avo", | ||
// ...optional settings | ||
chatButtonText: "Ask the AI Assistant", | ||
}, | ||
modalSettings: { | ||
// optional settings | ||
}, | ||
searchSettings: { | ||
// optional settings | ||
}, | ||
aiChatSettings: { | ||
// optional settings | ||
botAvatarSrcUrl: "/logomark.png", // use your own bot avatar | ||
// quickQuestions: [ | ||
// "Example question 1?", | ||
// "Example question 2?", | ||
// "Example question 3?", | ||
// ], | ||
}, | ||
}, | ||
}; | ||
|
||
const inkeepWidget = Inkeep().embed(config); |