diff --git a/blog.config.js b/blog.config.js
index 3a7cc530..f0e4ff17 100644
--- a/blog.config.js
+++ b/blog.config.js
@@ -179,6 +179,10 @@ const BLOG = {
// ********挂件组件相关********
// Chatbase
CHATBASE_ID: process.env.NEXT_PUBLIC_CHATBASE_ID || null, // 是否显示chatbase机器人 https://www.chatbase.co/
+ WEB_WHIZ_ENABLED: process.env.NEXT_PUBLIC_WEB_WHIZ_ENABLED || false, // 是否显示webwhizAI机器人 @see https://github.com/webwhiz-ai/webwhiz
+ WEB_WHIZ_BASE_URL: process.env.NEXT_PUBLIC_WEB_WHIZ_BASE_URL || 'https://api.webwhiz.ai', // 可以自建服务器
+ WEB_WHIZ_CHAT_BOT_ID: process.env.NEXT_PUBLIC_WEB_WHIZ_CHAT_BOT_ID || null, // 在后台获取ID
+
// 悬浮挂件
WIDGET_PET: process.env.NEXT_PUBLIC_WIDGET_PET || true, // 是否显示宠物挂件
WIDGET_PET_LINK:
diff --git a/components/ExternalPlugins.js b/components/ExternalPlugins.js
index b239f954..1ce95b16 100644
--- a/components/ExternalPlugins.js
+++ b/components/ExternalPlugins.js
@@ -1,5 +1,6 @@
import BLOG from 'blog.config'
import dynamic from 'next/dynamic'
+import WebWhiz from './Webwhiz'
// import TwikooCommentCounter from '@/components/TwikooCommentCounter'
// import { DebugPanel } from '@/components/DebugPanel'
@@ -57,6 +58,7 @@ const ExternalPlugin = (props) => {
{JSON.parse(BLOG.RIBBON) && }
{JSON.parse(BLOG.CUSTOM_RIGHT_CLICK_CONTEXT_MENU) && }
{!JSON.parse(BLOG.CAN_COPY) && }
+ {JSON.parse(BLOG.WEB_WHIZ_ENABLED) && }
>
}
diff --git a/components/ExternalScript.js b/components/ExternalScript.js
index 7f5d015d..00bd8521 100644
--- a/components/ExternalScript.js
+++ b/components/ExternalScript.js
@@ -1,34 +1,28 @@
'use client'
-import BLOG from '@/blog.config'
-import { isBrowser, loadExternalResource } from '@/lib/utils'
+import { isBrowser } from '@/lib/utils'
/**
- * 自定义引入外部JS 和 CSS
+ * 自定义外部 script
+ * 传入参数将转为