Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: update kapa widget (#5918)

Myles Scolnickab3f60bf8187
diff --git a/docs/_static/js/init_kapa_widget.js b/docs/_static/js/init_kapa_widget.js
index aba1c712e0..1c7b9f9337 100644
--- a/docs/_static/js/init_kapa_widget.js
+++ b/docs/_static/js/init_kapa_widget.js
@@ -17,6 +17,26 @@ document.addEventListener("DOMContentLoaded", () => {
"This is a custom LLM for marimo with access to all [documentation](https://docs.marimo.io) and the [API reference](https://docs.marimo.io/api/).",
);
+ // Uncertain answer
+ script.setAttribute(
+ "data-uncertain-answer-callout",
+ "I could not find an answer in my knowledge base. But a human team member can give you more detailed answers directly in our [Discord](https://marimo.io/discord?ref=kapa-widget).",
+ );
+
+ // CTA
+ script.setAttribute(
+ "data-answer-cta-button-enabled",
+ "true",
+ );
+ script.setAttribute(
+ "data-answer-cta-button-link",
+ "https://marimo.io/discord?ref=kapa-widget",
+ );
+ script.setAttribute(
+ "data-answer-cta-button-text",
+ "Ask on Discord",
+ );
+
// TODO: Add example questions
// Currently this makes the styling weird
// script.setAttribute(