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

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:

Enabling this got the integration to work as expected.


@ililic Thank you! That was it. :man_facepalming:

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

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


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.

A really odd thing happens when chat-integration is paired with DiscoTOC - automatic table of contents (cc @Johani)

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

See screenshots below.
The original post

The preview in Slack

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

1 Like

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)?

1 Like

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)?

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

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?

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.


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

I believe there was a filter added for ‘tag added to topic’, which I think should do what you want:

1 Like

This is not working as well. Already tried this.

1 Like

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.

1 Like

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

Let me see what I can find out. :+1:

Digging into the code, it looks like Create post for category and tag changes site setting needs to be enabled for these tag changes to picked up.

Another note, the Tag added to topic rule will not cause a chat message to go out if the topic already contains one of the tags specified in the tags list.
So in this case:

  • tags list for the rule is how-to, admin
  • the topic is tagged with how-to already
    → you add the admin tag.

No chat message is sent out.

I’m wondering if that dropdown option of Tag added to topic should not even show up in the list if the site setting Create post for category and tag changes is disabled. I could see it still being in the list but there being a prominent visual indicator showing that it will have no effect unless the setting is enabled.

Let me know how that works for you!

1 Like

hey @markvanlan

That setting did it. I gotta admit it is super misleading that that setting is there instead of where I would expect it to be which is somewhere in the chat integration section.

Regardless will keep that in mind, thanks for the help! :heartbeat:

We have started using this plugin which works great

e.g., jumpToCenter is not working in new segmentation mode - Support - Open Health Imaging Foundation

My question is, whether there is a setting that I can hide usernames? or just say anonymous1 and anonymous2

Thanks for a great plugin. Works like a charm.

Not sure if this is the right place for it, but it would be great to be able to customize the messages that are posted to Slack. Having the category, and all the tags, and the username and name all gets a bit wordy and it would be great to be able to customize this.

Thanks again.