diff --git a/website/siteConfig.js b/website/siteConfig.js index 79adc2f..92d478f 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -83,6 +83,14 @@ const siteConfig = { 'https://buttons.github.io/buttons.js', 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js', '/js/code-blocks-buttons.js', + { + src: "https://dashboard.letmeexplain.ai/embed/lme_chatbot_widget.js", // LetMeExplain embed script + async: false, + }, + { + src: "/js/enable_lme_chatbot.js", // Custom initialization script + defer: true, + }, ], stylesheets: ['/css/code-block-buttons.css'], diff --git a/website/static/js/enable_lme_chatbot.js b/website/static/js/enable_lme_chatbot.js new file mode 100644 index 0000000..9953408 --- /dev/null +++ b/website/static/js/enable_lme_chatbot.js @@ -0,0 +1,18 @@ +/* This code enables the integration of the LetMeExplain.ai chatbot to this page. + +Parameters: orgId, - Unique identifier of the chatbot in the letmeexplain.ai client dashboard. +For support of LetMeExplain.ai chatbot or access to client dashboard, please contact + +Email: hello@letmeexplain.ai +Discord ID: @minus1618 +Telegram: @amiri_uk + +*/ + +window.addEventListener("DOMContentLoaded", function() { + if (window.loadCustomWidget) { + window.loadCustomWidget({ + orgId: "d70dafeb-4148-49" + }); + } +});