Deep Chat 提供了丰富的自定义选项,包括界面样式和功能调整:
- 消息样式: By
messageStyles
修改气泡颜色、字体等,如<deep-chat messageStyles='{"user": {"bubble": {"backgroundColor": "blue"}}}' />
The - 消息分组: Enable
groupedMessages="true"
,让对话更结构化。 - Markdown Support: Settings
markdown="true"
,支持代码块、标题等格式。 - 介绍面板与弹窗: Add
introPanel
或动态弹窗,帮助用户快速了解功能。 - 头像与名称:可自定义用户和 AI 的头像、名称,增强个性化体验。
通过这些选项,开发者可以轻松打造与网站风格一致的聊天界面。
This answer comes from the articleDeep Chat: an AI chat component for quick website integrationThe