diff --git a/web/app/components/base/prompt-editor/plugins/memory-popup-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/memory-popup-plugin/index.tsx
index ecc37a3eb2..7d48fd6e43 100644
--- a/web/app/components/base/prompt-editor/plugins/memory-popup-plugin/index.tsx
+++ b/web/app/components/base/prompt-editor/plugins/memory-popup-plugin/index.tsx
@@ -15,6 +15,10 @@ import {
size,
useFloating,
} from '@floating-ui/react'
+import {
+ RiAddLine,
+} from '@remixicon/react'
+import { Memory } from '@/app/components/base/icons/src/vender/line/others'
import {
$getSelection,
$isRangeSelection,
@@ -231,7 +235,20 @@ export default function MemoryPopupPlugin({
>
)}
-
{t('workflow.nodes.llm.memory.createButton')}
+ {!memoryVarInNode.length && !memoryVarInApp.length && (
+
+
+
+
+
+
{t('workflow.nodes.llm.memory.emptyState')}
+
+
+ )}
+
+
+
{t('workflow.nodes.llm.memory.createButton')}
+
,
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts
index 0993dc98a9..d7a1757c7a 100644
--- a/web/i18n/en-US/workflow.ts
+++ b/web/i18n/en-US/workflow.ts
@@ -528,6 +528,7 @@ const translation = {
addButton: 'Add Memory',
currentNodeLabel: 'Current Node scope',
conversationScopeLabel: 'Conversation scope',
+ emptyState: 'Create memory variables to enable Memory Block',
createButton: 'Create memory variable',
},
},
diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts
index 36646b7a13..e320d97d55 100644
--- a/web/i18n/zh-Hans/workflow.ts
+++ b/web/i18n/zh-Hans/workflow.ts
@@ -528,6 +528,7 @@ const translation = {
addButton: '添加记忆',
currentNodeLabel: '当前节点范围',
conversationScopeLabel: '会话范围',
+ emptyState: '创建记忆变量以启用记忆块',
createButton: '创建记忆变量',
},
},