# Automatically send private message when users reaches a new trust level

**URL:** https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095
**Category:** Feature
**Tags:** completed
**Created:** [26.Январь.2018 14:46:28 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095 "2018-01-26T14:46:28Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![cryptominded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cryptominded/32/120347_2.png) [@cryptominded](https://meta.discourse.org/u/cryptominded)
#### Post date: [26.Январь.2018 14:46:28 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/1 "2018-01-26T14:46:28Z")

</div>

Hi there,

We have a discourse forum and a slack and would love to invite people to our slack **only** when they have reached trust level 2.

I would love to be able to automically send a DM once someone reaches trust level 2 with an invitation link to slack. How can I configure this in Discourse?

Best,  
Dylan

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [26.Январь.2018 14:53:01 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/2 "2018-01-26T14:53:01Z")

</div>

You could easily create a Trust Level 2 - see permission category with the invite and sign up info as a Pinned topic.

---

<div class="post-metadata">

### Author: ![cryptominded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cryptominded/32/120347_2.png) [@cryptominded](https://meta.discourse.org/u/cryptominded)
#### Post date: [26.Январь.2018 14:58:39 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/3 "2018-01-26T14:58:39Z")

</div>

I’m aware, but to me, that lacks personality and I’d love to thank them automatically for being an active member and invite them to the slack chat

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [26.Январь.2018 15:09:54 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/4 "2018-01-26T15:09:54Z")

</div>

There’s no built-in way to do this, but it shouldn’t be hard to make a plugin for this. You can post in our #Marketplace if it can’t be created internally.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27.Январь.2018 00:37:29 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/5 "2018-01-27T00:37:29Z")

</div>

We have discussed sending an automatic “congrats!” PM at trust level 2 and 3, also inviting users to try the advanced discobot tutorial as well @erlend_sh

---

<div class="post-metadata">

### Author: ![cryptominded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cryptominded/32/120347_2.png) [@cryptominded](https://meta.discourse.org/u/cryptominded)
#### Post date: [27.Январь.2018 07:55:20 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/6 "2018-01-27T07:55:20Z")

</div>

@codinghorror That be great. For now, is there any way to retrieve a user’s trust level through JS so that we could assign a css class to the `<html>` tag and show a banner message or button once they reached a certain level?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [27.Январь.2018 08:37:32 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/7 "2018-01-27T08:37:32Z")

</div>

> [@cryptominded](#):
>
> is there any way to retrieve a user’s trust level through JS so that we could assign a css class to the \<html\> tag

It should be doable as a plugin if it doesn’t happen in Core. I think you could assign any currentUser property to any tag’s attribute. This is old, crude and not recently tested, but it might help as a start  
[https://github.com/Mittineague/test-plugin](https://github.com/Mittineague/test-plugin)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [23.Июнь.2018 03:49:53 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/8 "2018-06-23T03:49:53Z")

</div>

> [@codinghorror](#):
>
> We have discussed sending an automatic “congrats!” PM at trust level 2 and 3, also inviting users to try the advanced discobot tutorial as well @erlend_sh

This is now in place for trust level 1 — [FEATURE: send message when a user reaches tl1 · discourse/discourse@41f76a7 · GitHub](https://github.com/discourse/discourse/commit/41f76a74f83ece7c8c97d13f4210f774824a835e)

Edit: also in place for Trust Level 2 as well for quite a while now, and the congratulations for TL3 (“welcome to the lounge”) has been in place for some time.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [08.Январь.2021 03:48:22 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/9 "2021-01-08T03:48:22Z")

</div>



---

<div class="post-metadata">

### Author: ![Hugo\_L](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugo_l/32/442399_2.png) [@Hugo\_L](https://meta.discourse.org/u/Hugo_L)
#### Post date: [25.Сентябрь.2024 18:15:00 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/10 "2024-09-25T18:15:00Z")

</div>

Как мне отредактировать эти сообщения? Они отличные, но мы хотим привести их в соответствие с нашим тоном общения (TOV). Спасибо.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [25.Сентябрь.2024 18:18:42 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/11 "2024-09-25T18:18:42Z")

</div>

> [@Customizing trust level promotion messages for new users](https://meta.discourse.org/t/customizing-trust-level-promotion-messages-for-new-users/193270):
>
> bookmark This guide explains how to set up customized trust level promotion messages for new users, replacing the default Discourse narrative bot welcome process. person_raising_hand Required user level: Administrator Summary This guide will show you how to customize the onboarding journey for new users by replacing the default Discourse narrative bot welcome process with personalized trust level promotion messages. You’ll learn how to: Set up the site contact user Modify the default …

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [26.Сентябрь.2024 07:20:58 UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/13 "2024-09-26T07:20:58Z")

</div>


