dialog-survey 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
value="{{ template.name | default('') }}"
|
|
56
56
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 sm:text-sm px-3 py-2 border"
|
|
57
57
|
placeholder="请输入模板名称" />
|
|
58
|
+
<p class="mt-1 text-xs text-gray-500">模板名称,用于在管理后台区分不同的访谈模板(如"Q3 满意度调研")</p>
|
|
58
59
|
</div>
|
|
59
60
|
|
|
60
61
|
<div>
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
<textarea id="description" name="description" rows="2"
|
|
65
66
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 sm:text-sm px-3 py-2 border"
|
|
66
67
|
placeholder="模板用途说明(可选)">{{ template.description | default('') }}</textarea>
|
|
68
|
+
<p class="mt-1 text-xs text-gray-500">模板用途说明,帮助其他管理员理解该模板的适用场景</p>
|
|
67
69
|
</div>
|
|
68
70
|
|
|
69
71
|
<div>
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
<textarea id="invitationPrompt" name="invitationPrompt" required rows="3"
|
|
74
76
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 sm:text-sm px-3 py-2 border"
|
|
75
77
|
placeholder="输入用于邀约候选人的AI提示词">{{ template.invitationPrompt | default('') }}</textarea>
|
|
78
|
+
<p class="mt-1 text-xs text-gray-500">用途:AI 邀约时使用的提示词,用于生成发给受访者的邀约消息。应包含访谈目的、时长说明等关键信息。</p>
|
|
76
79
|
</div>
|
|
77
80
|
|
|
78
81
|
<div>
|
|
@@ -113,6 +116,7 @@
|
|
|
113
116
|
<textarea id="closingMessage" name="closingMessage" rows="2"
|
|
114
117
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 sm:text-sm px-3 py-2 border"
|
|
115
118
|
placeholder="访谈结束时的结束语(可选)">{{ template.closingMessage | default('') }}</textarea>
|
|
119
|
+
<p class="mt-1 text-xs text-gray-500">受访者完成所有问题后 AI 主持人发送的结束语。例如:感谢您的参与,祝您工作顺利!留空则不发送。</p>
|
|
116
120
|
</div>
|
|
117
121
|
|
|
118
122
|
<div>
|
|
@@ -123,6 +127,9 @@
|
|
|
123
127
|
<textarea id="llmPromptTemplate" name="llmPromptTemplate" rows="8"
|
|
124
128
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 sm:text-sm px-3 py-2 border font-mono text-sm"
|
|
125
129
|
placeholder="自定义 AI 主持人的提示词模板">{{ template.llmPromptTemplate | default('') }}</textarea>
|
|
130
|
+
<p class="mt-1 text-xs text-gray-500">
|
|
131
|
+
<strong class="text-gray-600">用途:</strong>控制 AI 主持人如何根据受访者的回答进行追问。<strong class="text-gray-600">留空则使用系统默认模板(推荐)。</strong>修改此模板可能影响访谈质量。
|
|
132
|
+
</p>
|
|
126
133
|
<p class="mt-1 text-xs text-gray-500">
|
|
127
134
|
可用变量:<code class="bg-gray-100 px-1 rounded">conversationHistory</code>
|
|
128
135
|
<code class="bg-gray-100 px-1 rounded">currentQuestion</code>
|
|
@@ -64,6 +64,36 @@
|
|
|
64
64
|
<textarea id="description" name="description" rows="2"
|
|
65
65
|
class="block w-full text-sm rounded-md border border-gray-300 px-2 py-1.5 focus:border-indigo-500 focus:ring-indigo-500 resize-none"
|
|
66
66
|
placeholder="可选"></textarea>
|
|
67
|
+
<p class="text-xs text-gray-400 mt-1">模板用途说明,帮助其他管理员理解该模板的适用场景</p>
|
|
68
|
+
</div>
|
|
69
|
+
<div>
|
|
70
|
+
<label for="closingMessage" class="block text-xs font-medium text-gray-600 mb-1">结束语</label>
|
|
71
|
+
<textarea id="closingMessage" name="closingMessage" rows="2"
|
|
72
|
+
class="block w-full text-sm rounded-md border border-gray-300 px-2 py-1.5 focus:border-indigo-500 focus:ring-indigo-500 resize-none"
|
|
73
|
+
placeholder="访谈结束时的结束语(可选)"></textarea>
|
|
74
|
+
<p class="text-xs text-gray-400 mt-1">受访者完成所有问题后 AI 主持人发送的结束语。留空则不发送。</p>
|
|
75
|
+
</div>
|
|
76
|
+
<div>
|
|
77
|
+
<label for="llmPromptTemplate" class="block text-xs font-medium text-gray-600 mb-1">
|
|
78
|
+
<span>智能提示词模板</span>
|
|
79
|
+
<span class="text-gray-400 font-normal">(可选,留空则使用系统默认值)</span>
|
|
80
|
+
</label>
|
|
81
|
+
<textarea id="llmPromptTemplate" name="llmPromptTemplate" rows="4"
|
|
82
|
+
class="block w-full text-sm rounded-md border border-gray-300 px-2 py-1.5 focus:border-indigo-500 focus:ring-indigo-500 resize-none font-mono"
|
|
83
|
+
placeholder="自定义 AI 主持人的提示词模板"></textarea>
|
|
84
|
+
<p class="text-xs text-gray-400 mt-1">
|
|
85
|
+
<strong class="text-gray-500">用途:</strong>控制 AI 主持人如何根据受访者的回答进行追问。<strong class="text-gray-500">留空则使用系统默认模板(推荐)。</strong>修改此模板可能影响访谈质量。
|
|
86
|
+
</p>
|
|
87
|
+
<p class="text-xs text-gray-400 mt-1">
|
|
88
|
+
可用变量:
|
|
89
|
+
<code class="bg-gray-100 px-1 rounded">conversationHistory</code>
|
|
90
|
+
<code class="bg-gray-100 px-1 rounded">currentQuestion</code>
|
|
91
|
+
<code class="bg-gray-100 px-1 rounded">followupCount</code>
|
|
92
|
+
<code class="bg-gray-100 px-1 rounded">maxFollowups</code>
|
|
93
|
+
<code class="bg-gray-100 px-1 rounded">userAnswer</code>
|
|
94
|
+
<code class="bg-gray-100 px-1 rounded">userName</code>
|
|
95
|
+
<code class="bg-gray-100 px-1 rounded">lastQuestionFlag</code>
|
|
96
|
+
</p>
|
|
67
97
|
</div>
|
|
68
98
|
<div class="flex justify-end gap-2 pt-1">
|
|
69
99
|
<button type="submit" id="submit-btn"
|