# 如何将首页设置为AI机器人？例如：ask.discourse.com

**URL:** <https://meta.discourse.org/t/how-to-set-the-home-page-to-be-an-ai-bot-ex-ask-discourse-com/365126>\
**Category:** Support\
**Tags:** ai\
**Created:** [2025年五月7日 12:35 UTC](https://meta.discourse.org/t/how-to-set-the-home-page-to-be-an-ai-bot-ex-ask-discourse-com/365126 "2025-05-07T12:35:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2025年五月8日 03:31 UTC](https://meta.discourse.org/t/how-to-set-the-home-page-to-be-an-ai-bot-ex-ask-discourse-com/365126/7 "2025-05-08T03:31:36Z")

</div>

我已经设法让它正常工作了。在 DiscourseAI 设置中启用 `AI bot enable dedicated UX` 后，我创建了一个名为“Bot Test” (`bot-test`) 的组，并将其设置为测试用户的首选。然后我使用了 [custom-homepage-for-groups](http://github.com/pfaffman/discourse-custom-homepage-for-groups) 主题组件，并将 `group page map` 设置为 `bot-test:/discourse-ai/ai-bot/conversations`。我的测试用户现在的主页就是机器人页面。

 ![Screenshot 2025-05-07 at 8.22.19 PM](https://global.discourse-cdn.com/meta/original/4X/8/1/e/81e7b41a50cede285a528cb1f537f574377ae9e8.png)

 ![Screenshot 2025-05-07 at 8.21.07 PM](https://global.discourse-cdn.com/meta/original/4X/a/4/e/a4e939ab83442a2aef0b26fa5b6c06554ef8587d.png)

测试用户主页：

 ![Screenshot 2025-05-07 at 9.23.41 PM](https://global.discourse-cdn.com/meta/original/4X/0/2/a/02a0eb2f4862fee6ec30b43b620959dd356df676.png)

~~问题在于“返回论坛”链接会失效，点击 Logo 只是重新加载页面（当然，因为它就是主页）。用户必须尴尬地手动退出（例如，在 URL 地址栏中输入“/hot”），或者通过用户菜单或高级搜索菜单退出。~~

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-the-home-page-to-be-an-ai-bot-ex-ask-discourse-com/365126)._
