# 收到私信后添加自动化脚本以"邀请加入主题"

**URL:** <https://meta.discourse.org/t/add-automation-script-to-invite-to-topic-upon-receiving-a-dm/319554>\
**Category:** Feature\
**Tags:** automation, staff-alias, personal-messages\
**Created:** [2024年七月31日 21:45 UTC](https://meta.discourse.org/t/add-automation-script-to-invite-to-topic-upon-receiving-a-dm/319554 "2024-07-31T21:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmstedt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmstedt/32/314607_2.png) [@elmstedt](https://meta.discourse.org/u/elmstedt)\
**Post date:** [2024年七月31日 21:45 UTC](https://meta.discourse.org/t/add-automation-script-to-invite-to-topic-upon-receiving-a-dm/319554/1 "2024-07-31T21:45:46Z")

</div>

设想的使用场景是使用 `discourse-staff-alias` 的论坛。如果用户向 staff alias 用户发送消息，可以将 `staff alias allowed groups` 添加到群组消息中，以处理可能被忽略的消息。

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2024年八月1日 04:58 UTC](https://meta.discourse.org/t/add-automation-script-to-invite-to-topic-upon-receiving-a-dm/319554/2 "2024-08-01T04:58:53Z")

</div>

这只是另一个 CC 问题吗？我不知道这种自动化有多容易，但当使用员工别名时，这样的消息就不再是私人的了，因此它应该可以：

- 发送给能够将其转发给正确人员的人
- 发送到群组邮箱

我的思维方式离开发模式很远，因为我太务实了 😏，在这种情况下，我更担心的是如何防止当消息发送到所有热心员工的收件箱时出现重复和三重操作。

无论如何，如果我还有投票权，我会给这个加一分。但我没有。
