本指南说明了如何自定义 Discourse 内置的助手机器人 Discobot,使其更好地匹配您社区的风格和需求。
所需用户级别:管理员
Discobot 是您 Discourse 社区中的一个特殊用户,它帮助新成员了解平台。作为管理员,您可以自定义 Discobot 的各个方面,以更好地适应您社区的风格和要求。
配置 Discobot 的站点设置
Discobot 的行为由“插件”设置类别下的多个站点设置控制(在“管理” > “设置”中搜索“narrative bot”)。主要设置包括:
discourse_narrative_bot_enabled:完全启用或禁用 Discobot 插件。默认值:true。disable_discourse_narrative_bot_welcome_post:启用时,阻止 Discobot 向新用户发送欢迎帖子。默认值:true(在新安装中禁用欢迎帖子)。discourse_narrative_bot_welcome_post_type:控制欢迎帖子的类型。选项是“新用户引导”(New user track)(启动交互式教程)或“欢迎消息”(Welcome message)(发送简单的欢迎消息)。默认值:new_user_track。discourse_narrative_bot_welcome_post_delay:发送欢迎帖子前等待的秒数。默认值:0。discourse_narrative_bot_ignored_usernames:Discobot 不应互动的用户名列表。默认值:discourse。discourse_narrative_bot_disable_public_replies:启用时,阻止 Discobot 在公开主题中回复。默认值:false。
在新安装中,
disable_discourse_narrative_bot_welcome_post的默认值为true,这意味着 Discobot 不会自动私信新用户。要启用 Discobot 的欢迎帖子,请将其设置为false。修改 Discobot 的用户个人资料
要自定义 Discobot 的个人资料:
- 转到“管理” > “用户”并选择 Discobot 用户。
- 选择“偏好设置”或点击“访问此用户偏好设置页面以编辑其个人资料”:
进入“偏好设置”部分后,您可以修改以下设置:
帐户设置
- 名称 (Name):点击“编辑”按钮更改 Discobot 的名称。
- 图像 (Image):点击“编辑”按钮上传新的头像图片。
- 进行更改后,点击“保存更改 (Save Changes)”按钮。
如果您更改了 Discobot 的名称,请记住也要在“个人资料 (Profile)”部分更新其“关于我 (About me)”简介。默认简介是按描述而不是用户名引用的 Discobot,但您可能希望查看它,以确保它与新名称仍然合理。
个人资料设置
根据需要自定义 Discobot 的个人资料信息。
电子邮件设置
根据需要调整与电子邮件相关的设置。
更新 Discobot 的欢迎消息
Discobot 的所有文本——包括欢迎消息、教程步骤和其他回复——都可以通过管理面板中的“外观” > “站点文本”进行自定义(
/admin/customize/site_texts)。要查找和编辑特定消息:
转到 Discobot 的个人资料(
https://example.discourse.com/u/discobot/summary)并选择“消息 (Messages)”。点击“已发送 (Sent)”。
找到您想要修改的问候消息。
复制消息中的唯一部分,例如“I’m only a robot”。
导航到管理界面(
https://example.discourse.com/admin)转到“外观” > “站点文本”(
https://example.discourse.com/admin/customize/site_texts)将复制的文本粘贴到搜索窗口。当问候消息出现时,点击“编辑 (Edit)”。
更新问候消息并点击“保存更改 (Save Changes)”。
您也可以在“站点文本”中搜索
discourse_narrative_bot,直接浏览 Discobot 的所有可自定义文本字符串。限制和附加信息
- 您可以在消息中重用现有的变量(如
%{username}或%{discobot_username}),但不能添加新变量。- Discobot 必须保留管理员角色;此角色无法被移除。
- 您可以自定义教程步骤的正文内容,但不能添加、删除或重新排序步骤。
如需进一步的自定义需求或功能请求,请考虑在 #feature 类别中发帖。
Is it possible to make a new conversation discobot with With members and make a new certificate for them ?
I am admin to an educational forum and I want to make a new conversation with a new certificate ![]()
No, you cannot currently customise the full experience.
Questions are fine. ![]()
You can reuse any existing variables in the message but you cannot add new ones.
many thanks @HAWK
Is it possible to define the existing variables if possible? ![]()
I suggest adding that either
- People need to update the Discobot’s profile About me because it’ll still say message or mention
@discoboteven after you change its name
or
- Maybe Discourse could remove the username from the default message? I went ahead and edited our About me to just say
Hi, I’m not a real person. I’m a bot that can teach you about this site. To interact with me, send me a message or mention me anywhere.
Just in case we have to change it again, we don’t need to remember to also change the About me.
Is this something that’s going to be possible in the future? The current question/answer format of fortune and quote is sufficient for what I have in mind.
@codinghorror is extending the discobot functionality on our roadmap at all?
That’s a good point we should make that copyedit, @tshenry can you take it? No need to deal with it retroactively just for new ones. Say “mention me by name” so editing the name doesn’t require editing the “about me”.
@hawk we don’t plan on extending discobot at the moment.
Should be done with the following!
Does Discobot have to be a Moderator or can I take this role away from him? I mean, will he still work then?
As far as I can tell from looking at the code and the UI, Discobot should never be able to become a moderator.
If you meant an admin, then no, unfortunately there is no way to take the admin role away from DIscobot at this time.
谢谢您的回答。自上次发帖以来,是否可以自定义 discobot 用户培训和高级用户培训,还是仍然是标准的?我们通过“capybara”一词获得了大量搜索流量,但可能想尝试另一个术语?
实际上,我认为我所指的可能在这里:Customizing Discobot for your site - #7
管理员能否打开或关闭教程的特定部分?
例如,“标记”教程要求用户选择“不当”标记。此标记在我们的实例中是隐藏的,因为它不适合我们的用例。因此,我们的用户无法完成教程。如果我能禁用/跳过这一部分,我们就可以重新启用教程。
您可以更改该步骤的说明,就像在禁用点赞时可以跳过点赞帖子一样。禁用点赞 - 更新 discobot 教程
您无法移除或添加步骤,但可以自定义现有步骤的正文内容(但不能自定义触发器)。
很乐意为此提供服务,并使用 LM / chatgpt 等技术训练它回答论坛主旨相关的问题……可行吗?
与其尝试自定义discobot,不如创建自己的AI角色/机器人是最好的选择。








