# 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:** 5

<div class="post-metadata">

### Author: ![yaaang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaaang/32/210418_2.png) [@yaaang](https://meta.discourse.org/u/yaaang)
#### Post date: [February 21, 2021, 8:32am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/89 "2021-02-21T08:32:02Z")

</div>

Thanks for the guide!

Like an earlier poster, I’m hitting these errors:

```plaintext
/discourse failed with the error "dispatch_failed"

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/1/113e33aedaeecc697747a6379efdb38bf98ee95d.png)

What might I be missing? I double checked the information that I’ve pasted screenshots of below.

Are there debug logs available for this? I checked Error Logs in Admin, and also `sudo ./launcher logs app`.

Please let me know what additional info I can provide to help debug this. Thank you!

* * *

**Oauth scopes:**

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/2/92a09f74ae149342b231b4d61d20bf47b5757faf.png)

**Slash command params**

![Kapture 2021-02-21 at 00.27.08](https://global.discourse-cdn.com/meta/original/3X/e/9/e94e92d1701f0583d2dc52e0a5a16951902f44b5.gif)

**Verification & Oauth tokens**

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/c/8c4f1c4b12c0b1d5575838759c2c0d644737998c.png)

**Interactivity settings**

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/6/567edde92ba9f2ca9c24342fc614db10a4bfc55d.png)

---

<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: [February 21, 2021, 5:11pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/90 "2021-02-21T17:11:38Z")

</div>

@stanislaw after you first asked and David responded, I implemented threaded replies, with David’s advice.

> [@Optionally threading posts to parent topic in slack integration](https://meta.discourse.org/t/optionally-threading-posts-to-parent-topic-in-slack-integration/150759):
>
> At work, we use slack a lot. There’s some content that needs to be accessible on slack but should be organized and searchable, both of which I’ve seen Discourse shine at. We’ve tried a few wiki-like options and they all go stale, in part from lack of connection to slack. So I’m driving an evaluation of Discourse to run in parallel to and connected to our existing slack, since I already run a community Discourse forum. slight_smile However, we have a lot of channels which use threads aggressiv…

That topic shows how to configure it.

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [February 22, 2021, 8:55am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/91 "2021-02-22T08:55:21Z")

</div>

@Brad_Wood your suggestions and question sound interesting, so I don’t want them to get lost.

Would you mind moving the first 2 as a new topic in #Contribute > Feature and tag it #chat-integration, then moving your question to #Support a d tag it #chat-integration too?

This would make it easier to follow/track and not get lost here.

I would have moved the post to a new topic for you, but seeing as you have feature requests and a question in the single post, I’d have to edit and create something new to move it, and I don’t want to do that.

---

<div class="post-metadata">

### Author: ![Brad\_Wood](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brad_wood/32/204558_2.png) [@Brad\_Wood](https://meta.discourse.org/u/Brad_Wood)
#### Post date: [February 22, 2021, 7:02pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/92 "2021-02-22T19:02:35Z")

</div>

@osioke I have created two new topics as you requested, however it appears **I don’t have permissions to add tags**.

> [@Slack Discourse integration category subscription feature](https://meta.discourse.org/t/slack-discourse-integration-category-subscription-feature/180780):
>
> Can’t subscribe to messages in a sub category by subscribing to the parent This may be by-design, but it wasn’t obvious at first. I have parent categories with child categories under them. I expected that if I created a rule that filtered “All posts and replies” to the parent category that it would implicitly include each of the children categories as well. This did not seem to work however, and I needed to create rules for each of my (many) child categories. This would be a great enhancement r…

> [@\`/discourse post\` command hangs on "Loading the transcript..."](https://meta.discourse.org/t/discourse-post-command-hangs-on-loading-the-transcript/180781):
>
> Discourse post command only works in one channel Now, this is likely my fault, but I can’t figure it out, I’ve been through all the threads on the topic, and I’d love some help. I’ve checked and doubled checked the permissions of my Slack app and I can confirm that it totally 100% works… in only one of my channels! /discourse post 20 So I know the access token is set up and working fine. However, in all of the other channels in my Slack team, the command above simply outputs Loading the tran…

If you could help me tag these posts or let me know how to tag them, I would appreciate the assistance.

---

<div class="post-metadata">

### Author: ![ililic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ililic/32/211523_2.png) [@ililic](https://meta.discourse.org/u/ililic)
#### Post date: [March 1, 2021, 4:24pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/93 "2021-03-01T16:24:38Z")

</div>

Hi, I was running into this same issue (after following the steps exactly).

The thing that I was missing was enabling the top level chat integration plugin:

 ![Screen Shot 2021-03-01 at 1.23.51 PM](https://global.discourse-cdn.com/meta/original/3X/7/5/75b17b39b68375bef35424b3a1c0670717b4c1d0.png)

Enabling this got the integration to work as expected.

---

<div class="post-metadata">

### Author: ![yaaang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaaang/32/210418_2.png) [@yaaang](https://meta.discourse.org/u/yaaang)
#### Post date: [March 2, 2021, 5:34am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/94 "2021-03-02T05:34:45Z")

</div>

@ililic Thank you! That was it. 🤦‍♂️

---

<div class="post-metadata">

### Author: ![yaaang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaaang/32/210418_2.png) [@yaaang](https://meta.discourse.org/u/yaaang)
#### Post date: [March 2, 2021, 5:36am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/95 "2021-03-02T05:36:09Z")

</div>

(Would be good to explicitly add this to the top-level instructions! @david)

---

<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: [March 2, 2021, 9:13am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/96 "2021-03-02T09:13:21Z")

</div>

Good idea 👍 I added it to the first step in the OP here:

> [@david](#):
>
> If you haven’t already, install the [discourse-chat-integration](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522) plugin, and make sure its enabled via the `chat integration enabled` site setting.

---

<div class="post-metadata">

### Author: ![shayan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shayan/32/208027_2.png) [@shayan](https://meta.discourse.org/u/shayan)
#### Post date: [March 30, 2021, 3:56pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/97 "2021-03-30T15:56:50Z")

</div>

What is the best way to set the bot to send Slack notification for ALL posts/replies in the forum?

Currently it seems that first you have to add all different topics separately and it still doesn’t work if someone posts in the subcategory of those topics.

---

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [April 4, 2021, 11:28pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/98 "2021-04-04T23:28:26Z")

</div>

A really odd thing happens when chat-integration is paired with [DiscoTOC - automatic table of contents](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143) (cc @Johani)

The headings are now preceded by a link that does NOT go to the heading.

See screenshots below.  
**The original post**

 ![Screenshot of Google Chrome (4-4-21, 7-28-14 PM)](https://global.discourse-cdn.com/meta/original/3X/7/d/7d89c6dd7e2114064686541298812f34b340a42f.png)

**The preview in Slack**

 ![screenshot chat integration](https://global.discourse-cdn.com/meta/original/3X/8/e/8e3ea90b24e5c3d5022be6d9ce08ab594580b7c7.png)

**Result of clicking on the first link is just the homepage of the forum**

 ![Screenshot of Google Chrome (4-4-21, 7-26-46 PM)](https://global.discourse-cdn.com/meta/original/3X/f/2/f2c985253785551fc0798de499ac53ec29945d67.png)

---

<div class="post-metadata">

### Author: ![hexarotor](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@hexarotor](https://meta.discourse.org/u/hexarotor)
#### Post date: [May 2, 2022, 2:52pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/100 "2022-05-02T14:52:39Z")

</div>

I am able to receive notifications on my Slack channel every time someone posts a new message on Discourse (if a certain tag is added at the same time).  
Question: is it possible to trigger Slack notifications only WHEN a new tag is added to an existing Discourse Topic (let’s assume the Topic was created before)?

---

<div class="post-metadata">

### Author: ![emma\_bitfount](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@emma\_bitfount](https://meta.discourse.org/u/emma_bitfount)
#### Post date: [August 24, 2022, 3:57pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/101 "2022-08-24T15:57:34Z")

</div>

Hi - we have set up the integration and are getting the slack notifications for topics in our support category - but is it also possible to have a once daily summary of posts across the whole forum (ie. to let us know activity, but not urgent issues)?

---

<div class="post-metadata">

### Author: ![sedghi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sedghi/32/288929_2.png) [@sedghi](https://meta.discourse.org/u/sedghi)
#### Post date: [January 12, 2023, 2:38am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/102 "2023-01-12T02:38:56Z")

</div>

It might be worth saying that if you skip the slash command section and you come back later to add it, it prompts you to install the app all over again which makes the chat plugin disabled for some reason and you get the dispatch error.

So if you go back to add the slash commands, make sure you add the tokens and basic information again in the admin panel

---

<div class="post-metadata">

### Author: ![sedghi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sedghi/32/288929_2.png) [@sedghi](https://meta.discourse.org/u/sedghi)
#### Post date: [January 12, 2023, 2:52am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/103 "2023-01-12T02:52:46Z")

</div>

I have a permission question.  
I would like to be able to only run `/discourse post` myself and myself only as the owner of the slack workspace. In other words, I don’t want other users to even see the Discourse Integration App, or if they see, I don’t want them to be able to run `/discourse post`. Is it possible?

---

<div class="post-metadata">

### Author: ![ScottWorld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scottworld/32/285416_2.png) [@ScottWorld](https://meta.discourse.org/u/ScottWorld)
#### Post date: [January 22, 2023, 7:18pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/104 "2023-01-22T19:18:15Z")

</div>

Hello @david and other community members!

As far as I can tell, it seems like I need to setup every subcategory separately in Discourse that I want to post to Slack.

In other words, I can’t just specify the overarching category to be sent to Slack and then expect all of that category’s subcategories to get sent to Slack as well.

It seems like I need to setup each subcategory separately. Is this correct?

Ideally, I’d love to just pick a category to send to Slack, and have all of the subcategories automatically be a part of that.

Thanks,  
Scott

---

<div class="post-metadata">

### Author: ![manavb](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@manavb](https://meta.discourse.org/u/manavb)
#### Post date: [August 9, 2023, 11:36pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/105 "2023-08-09T23:36:54Z")

</div>

Facing the same issue. How do I get slack notifications when a tag is added to an existing post ?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 10, 2023, 10:04am UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/106 "2023-08-10T10:04:04Z")

</div>

I believe there was a [filter added](https://github.com/discourse/discourse-chat-integration/commit/a92108b69b6a07a4fd468a2dcba83dcca0fbdcb7) for ‘tag added to topic’, which I think should do what you want:

 ![filter](https://global.discourse-cdn.com/meta/original/4X/a/3/c/a3c79921ca07e00024e87802f010277007fd77f7.png)

---

<div class="post-metadata">

### Author: ![manavb](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@manavb](https://meta.discourse.org/u/manavb)
#### Post date: [August 10, 2023, 4:11pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/107 "2023-08-10T16:11:16Z")

</div>

This is not working as well. Already tried this.

---

<div class="post-metadata">

### Author: ![yoolivia](https://avatars.discourse-cdn.com/v4/letter/y/ecae2f/32.png) [@yoolivia](https://meta.discourse.org/u/yoolivia)
#### Post date: [August 10, 2023, 8:27pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/108 "2023-08-10T20:27:15Z")

</div>

that filter only works if user is creating a new post with that tag. If the tag is being added to existing topic then it doesn’t fire up the notification.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 10, 2023, 8:31pm UTC](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730/109 "2023-08-10T20:31:11Z")

</div>

Hmmm. From the commit name, it sounds like it’s supposed to fire when tags are changed. 🤔

Let me see what I can find out. 👍

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

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