# 在我们的社区中添加外部聊天机器人的最佳方式是什么？

**URL:** <https://meta.discourse.org/t/what-is-the-best-way-to-add-an-external-chat-bot-in-our-community/317406>\
**Category:** Support\
**Created:** [2024 年7 月 20 日 19:04 UTC](https://meta.discourse.org/t/what-is-the-best-way-to-add-an-external-chat-bot-in-our-community/317406 "2024-07-20T19:04:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
发布日期： [2024 年7 月 22 日 02:13 UTC](https://meta.discourse.org/t/what-is-the-best-way-to-add-an-external-chat-bot-in-our-community/317406/3 "2024-07-22T02:13:30Z")

</div>

> [@efuetatem1](#):
>
> 这是开发人员发送的一个脚本，但当我将其添加到自定义中的标题下方时，它不起作用。要么是脚本有问题，要么是我操作不正确。
> 
> 我通过在 Google Tag Manager 中添加跟踪代码，然后将其附加到我们的 Discourse 实例，从而将 Brevo 客户服务机器人添加到了我们的 Discourse 实例。

我可以在您的论坛上看到您的脚本。但是，它可能是在页面加载后插入的，这就是为什么聊天机器人无法加载的原因。

如果您将脚本/样式放在附加到主题的主题组件的 `<head>`\[1\] 中，这应该会起作用。

正如 Robert 所说，您可能需要调整 CSP 设置以允许链接。

* * *

1.

---

_[View the full topic](https://meta.discourse.org/t/what-is-the-best-way-to-add-an-external-chat-bot-in-our-community/317406)._
