自定义指南

自定义组件的外观、行为和AI个性。

外观设置

在 控制台 → 组件 → 外观 选项卡中配置。

设置项类型描述
主题色hex按钮和强调元素的品牌颜色
位置bottom-right | bottom-left组件在屏幕上的显示位置
主题light | dark | auto配色方案(自动跟随系统)
启动器图标chat | message | help | ai启动按钮上显示的图标
欢迎语string打开聊天时显示的欢迎消息
占位文本string输入框的占位提示文本

行为设置

置信度阈值

控制AI在置信度较低时何时拒绝回答。

行为
0.3宽松 - 回答更多问题,准确性可能较低
0.5均衡 - 适合大多数场景的默认值
0.7+严格 - 仅在高度确信时才回答

拒绝回答消息

当AI没有足够信息回答时显示的消息。

I don't have enough information to answer this question accurately.
Would you like to contact our support team?

允许的域名

限制哪些域名可以嵌入您的组件。留空则允许所有域名。

example.com
app.example.com
*.example.com  // subdomains

AI个性(自定义提示词)

通过自定义系统提示词定义AI的语气、专业领域和行为。

核心规则(不可覆盖)

  • 必须使用 [Source N] 格式引用来源
  • 不可编造信息
  • 信息不足时必须如实告知

预设模板

友好客服

You are a friendly and helpful customer support assistant.
Your goal is to make users feel welcome and supported.
Use a warm, conversational tone while remaining professional.
Break down complex topics into simple explanations.
Show empathy when users face issues and celebrate their successes.

技术专家

You are a technical expert assistant for developers.
Provide accurate, detailed technical answers with code examples when relevant.
Use proper technical terminology and assume familiarity with programming concepts.
Be concise but thorough - developers value precision over pleasantries.
When explaining concepts, include relevant context and edge cases.

简洁直接

You are a direct and efficient support assistant.
Provide brief, actionable answers without unnecessary elaboration.
Get straight to the point - users value their time.
Use bullet points and short sentences for clarity.
Only include essential information to answer the question.

BYOK(自带密钥)

使用您自己的API密钥,无限使用。支持任何兼容 OpenAI 的服务商。

支持的服务商

  • OpenAI(GPT-4、GPT-3.5)
  • Anthropic(Claude 3)
  • OpenRouter(多种模型)
  • 任何兼容 OpenAI 的API

BYOK 的优势

  • 无限消息(无平台配额限制)
  • 选择您偏好的模型
  • API费用由您掌控
  • 密钥静态加密存储

多语言支持

组件自动检测用户语言并以相同语言回复。

支持的语言

语言检测支持大多数主流语言,包括:

英语中文日语韩语西班牙语法语德语葡萄牙语俄语阿拉伯语

注意:您的知识库内容可以是任何语言。无论源内容是什么语言,AI都会以用户的语言进行回答。