-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(docs): Cookbook Onboard (AI Assistant) integration #2198
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,24 @@ $(document).ready(function () { | |
$("option[value='" + selected + "']").attr("selected", "selected"); | ||
window.location = document.URL.replace(current, selected); | ||
}); | ||
|
||
// Cookbook Onboard (AI Assistant). | ||
// API key is public so it's fine to just hardcode it here. | ||
var COOKBOOK_PUBLIC_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NmFhY2QzYjZiYmI2MmQwOGY0ZjYzNzgiLCJpYXQiOjE3MjI0Njk2OTEsImV4cCI6MjAzODA0NTY5MX0.Xw4JO3X3T19NOGqPnsz_DYDEBdsxNYM9JkZK4k8ADs8"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the point of a public API key? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is used to make user interactions with Ask Cookbook available for your review in the CMS, allowing you to further tune replies by leaving feedback on conversations. Additionally, it enables you to dynamically configure the appearance of Ask Cookbook using the same CMS |
||
var element = document.getElementById("__cookbook"); | ||
if (!element) { | ||
element = document.createElement("div"); | ||
element.id = "__cookbook"; | ||
element.dataset.apiKey = COOKBOOK_PUBLIC_API_KEY; | ||
document.body.appendChild(element); | ||
} | ||
|
||
var script = document.getElementById("__cookbook-script"); | ||
if (!script) { | ||
script = document.createElement("script"); | ||
script.src = "https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js"; | ||
script.id = "__cookbook-script"; | ||
script.defer = true; | ||
document.body.appendChild(script); | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anywhere that controls for following text:
ApeWorX
does not have the correct casing, and where it is coming from (?) is mysterious...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for taking so long to reply! We have a CMS website where you can customize suggestions, view questions asked and the bot's responses, configure and update data sources, and much more! If you'd like an invite link, just reach out to us at [email protected] from your corporate email, or please ask your colleague Chris (whom we chat with on Telegram) to add you to the chat :)