# Set up Slack notifications using the discourse-chat-integration plugin

**URL:** https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730
**Category:** Integrations
**Tags:** chat-integration, how-to
**Created:** [July 24, 2017, 4:45pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730 "2017-07-24T16:45:28Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![pihentagy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pihentagy/32/131067_2.png) [@pihentagy](https://meta.discourse.org/u/pihentagy)
#### Post date: [March 14, 2019, 8:22am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/42 "2019-03-14T08:22:39Z")

</div>

> [@david](#):
>
> For private categories, you can already control that. See the “Security/Permissions” section of this topic: [Chatroom Integration Plugin (discourse-chat-integration)](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522)

Thanks for the link.

As I understand, all notifications will be fired using one discourse user. For me that’s a bit rigid. Ideally I need different users for different channels. Our discourse will serve company wide purposes, andalso support projects, which are kind of private.

But, as a workaround / simple solution I can live with a setup, where there are implicit rules like: mute all categories, which are not public. That way if I create a new category for a new project, posts from that new category won’t appear in the company wide channel.

---

<div class="post-metadata">

### Author: ![Pooja08](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pooja08/32/133855_2.png) [@Pooja08](https://meta.discourse.org/u/Pooja08)
#### Post date: [March 16, 2019, 5:39am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/43 "2019-03-16T05:39:31Z")

</div>

Yes, the issue was related to the SSL certificate. It has been solved. Thanks for the immediate help 🙂  
Another big thing is, I am embedding the discourse subdomain into our react product. Whenever a user clicks on slack notification of topic/post creation , our intended goal is to redirect user to our product’s domain, instead of discourse subdomain. I am not able to set this redirection. Kindly suggest any way.

---

<div class="post-metadata">

### Author: ![ingoclaro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ingoclaro/32/138798_2.png) [@ingoclaro](https://meta.discourse.org/u/ingoclaro)
#### Post date: [April 18, 2019, 6:45pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/44 "2019-04-18T18:45:43Z")

</div>

I created the slack app as per the instructions. The issue I’m having is that other users want to add notifications to private channels I don’t have access to.  
Is there a way to notify private slack channels that the creator of the slack app doesn’t have access too?  
Or how can other users grant permissions to the app?

Also if I understand correctly, those slack app tokens that are entered into the Discourse’s plugin configuration allow access to my private channels, correct? This might be undesirable since any Discourse admin can see those tokens in the settings section. Would be good to warn about that, or remove from the instructions the `groups:history` and `im:history` grants.

---

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [April 25, 2019, 11:06am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/45 "2019-04-25T11:06:21Z")

</div>

Our [makerforums](https://forum.makerforums.info/) discourse is intended to bring together a lot of related but separate communities. These communities are organized in our discourse by category or sub-category. Some of these communities have their own slack spaces.

At least one community, associated with a sub-category, would like slack integration, but as far as I can tell, there can be only one for the whole discourse.

Am I missing something?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [April 25, 2019, 11:08am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/46 "2019-04-25T11:08:47Z")

</div>

Unfortunately you can only have one slack community connected at the moment. It would be nice to allow multiple connections per-provider in the future.

---

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [April 25, 2019, 11:25am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/47 "2019-04-25T11:25:57Z")

</div>

Thanks for confirming. It looks like it would be substantial work to move to installing arbitrarily many chat integrations, especially to do so without backward compatibility problems.

For anyone else with this problem: As an alternative we are exploring for one-way notification in slack that posts have been made in discourse, we realized that it makes sense to take advantage of Discourse’s RSS support and hook up the slack RSS app:

> **[RSS](https://slack.com/marketplace/A0F81R7U7-rss)**
>
> The RSS integration allows you to subscribe to an RSS or Atom feed URL and receive updates in Slack. Feeds will be fetched periodically, and new items will be posted to the specified channel.
> 
> Feeds

---

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [April 26, 2019, 1:54pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/48 "2019-04-26T13:54:57Z")

</div>

For the next person who sees this: I saw `422 No Record` in the slack integration when trying to send a test message from the admin interface in my discourse.

The logs (`https://mydiscourse/logs`) showed the real error, which was in my case `"{\"ok\":false,\"error\":\"channel_not_found\"}"}`

The reason was that `/discourse watch` in a private channel of the Staff category showed up with a slack channel name like `#private` instead of the actual channel name, so I had to set the correct channel name in the discourse administrative interface to the actual channel name; then it worked.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [July 11, 2019, 10:36pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/49 "2019-07-11T22:36:21Z")

</div>

is it possible to have permanent feeds sync’d between a few channels on slack and discourse using this?

---

<div class="post-metadata">

### Author: ![danielbgomes](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@danielbgomes](https://meta.discourse.org/u/danielbgomes)
#### Post date: [August 21, 2019, 1:24pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/50 "2019-08-21T13:24:33Z")

</div>

Hi @david, is there a way to configure a one-way integration (Discourse to Slack) using discourse-chat-integration plugin?

I’d like to configure a Slack webhook where messages would be send to, without configuring a new App on Slack.

I followed the instructions from [Discourse to Slack (one-way) integration](https://meta.discourse.org/t/discourse-to-slack-one-way-integration/65287), but didn’t succeed. After enabling the plugin and setting up the webhook URL, I didn’t find any dashboard to proceed with the configuration.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 26, 2019, 8:49am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/51 "2019-08-26T08:49:55Z")

</div>

> [@danielbgomes](#):
>
> After enabling the plugin and setting up the webhook URL, I didn’t find any dashboard to proceed with the configuration

You need to enable the plugin, add the webhook URL, **and** enable the “slack” provider. The setting is “chat integration slack enabled”. Once you’ve done that, you should see the slack tab in your admin panel (under plugins → chat integrations).

---

<div class="post-metadata">

### Author: ![danielbgomes](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@danielbgomes](https://meta.discourse.org/u/danielbgomes)
#### Post date: [August 27, 2019, 5:34pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/52 "2019-08-27T17:34:18Z")

</div>

Thanks @david, I found the option and it is working 😄

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [September 13, 2019, 1:06pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/53 "2019-09-13T13:06:50Z")

</div>

> [@Nick\_Shearer\_nsheare](#):
>
> when i used the slash command from a private channel i.e  
> `#my-special-channel` → `/discourse watch site-feedback`
> 
> the entry in the discourse plugins settings had the channel `#privategroup`
> 
> i.e
> 
> ![image.png](https://global.discourse-cdn.com/meta/original/3X/c/b/cbe473eb120bcc3e199f3191cb49499da2b5779d.png)
> 
> works fine if i go and edit the channel name, but this isn’t ideal for users who aren’t also discourse admins :-[

Did anyone ever find a solution to this?

---

<div class="post-metadata">

### Author: ![Matthieu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matthieu/32/107885_2.png) [@Matthieu](https://meta.discourse.org/u/Matthieu)
#### Post date: [September 23, 2019, 7:54pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/54 "2019-09-23T19:54:56Z")

</div>

Hello,

I’ve followed this howto to set up our discourse integration with slack.  
When testing the rule i get this error `DiscourseChat::ProviderError` but without any details, even the browser console does not say much about the error.  
Any idea what’s the cause ?

Thanks

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 24, 2019, 12:29pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/55 "2019-09-24T12:29:54Z")

</div>

Did you check the admin logs?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 30, 2019, 12:29pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/56 "2019-09-30T12:29:57Z")

</div>

> [@Bas](#):
>
> Did anyone ever find a solution to this?

Please give this a try @Nick_Shearer_nsheare @Bas

[https://github.com/discourse/discourse-chat-integration/commit/7e5dc5acc1fc6ea762ff51e00cbd430fb8191c5a](https://github.com/discourse/discourse-chat-integration/commit/7e5dc5acc1fc6ea762ff51e00cbd430fb8191c5a)

Unfortunately slack doesn’t give us the user-specified channel name in the slash commands API, so we have to use the ID. (more details in the commit message). If you always use slash commands to manage rules, it will not make any difference.

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [September 30, 2019, 12:31pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/57 "2019-09-30T12:31:46Z")

</div>

Very nice! 🙂

I’ll update our staging environment this week and report back!

---

<div class="post-metadata">

### Author: ![dovholuknf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dovholuknf/32/164094_2.png) [@dovholuknf](https://meta.discourse.org/u/dovholuknf)
#### Post date: [December 19, 2019, 8:16pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/58 "2019-12-19T20:16:00Z")

</div>

I’ve been trying to get the slack bot to work with a channel for far too long. Is there some magic I’m missing to allow discourse to post in a public channel? I can get notified directly from discourse but discourse doesn’t seem to be able to post to a channel. I was going to add the incoming webhook to the integration but Discourse tool tip indicates that it’s not recommended. Any help would be very much appreicated

---

<div class="post-metadata">

### Author: ![dovholuknf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dovholuknf/32/164094_2.png) [@dovholuknf](https://meta.discourse.org/u/dovholuknf)
#### Post date: [December 19, 2019, 8:39pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/59 "2019-12-19T20:39:32Z")

</div>

Ok - I found a post on a different forum that showed me a different place logs were. The error was pretty clear - the bot user had to be added into the public channel to post to it. I didn’t expect that to be necessary - but that’s the solution!

---

<div class="post-metadata">

### Author: ![stanislaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanislaw/32/167064_2.png) [@stanislaw](https://meta.discourse.org/u/stanislaw)
#### Post date: [January 20, 2020, 6:53pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/60 "2020-01-20T18:53:48Z")

</div>

Hi guys,

is there a way to add some custom text into incoming messages in Slack? I was looking for it, but I didn’t find anything.

---

<div class="post-metadata">

### Author: ![stanislaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanislaw/32/167064_2.png) [@stanislaw](https://meta.discourse.org/u/stanislaw)
#### Post date: [January 27, 2020, 1:19pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/61 "2020-01-27T13:19:42Z")

</div>

Is it possible to make the answers in the thread on the forum sent to the thread under the message in the slack?

[Previous page](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730.md?page=2)

[Next page](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730.md?page=4)
