From 8444afbe4d416206e8cff977ac4ebcf9c227ce58 Mon Sep 17 00:00:00 2001 From: letmeexplainai Date: Tue, 4 Feb 2025 16:39:38 +0530 Subject: [PATCH] Implementation of letmeexplainAI --- docusaurus.config.js | 10 ++++++++++ static/js/enable_lme_chatbot.js | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 static/js/enable_lme_chatbot.js diff --git a/docusaurus.config.js b/docusaurus.config.js index 99bd9145a..e3d653ea1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -278,6 +278,16 @@ module.exports = { crossorigin: 'anonymous', }, ], + scripts: [ + { + 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, + }, + ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ diff --git a/static/js/enable_lme_chatbot.js b/static/js/enable_lme_chatbot.js new file mode 100644 index 000000000..a97d04a59 --- /dev/null +++ b/static/js/enable_lme_chatbot.js @@ -0,0 +1,16 @@ +/* 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() { + window.loadCustomWidget({ + orgId: "07950f2f-7e5c-46" + }); + }); \ No newline at end of file