# Help configuring Slack Discourse plugin

**URL:** https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917
**Category:** Support
**Created:** [July 10, 2017, 1:41am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917 "2017-07-10T01:41:44Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![UkiahSmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ukiahsmith/32/75042_2.png) [@UkiahSmith](https://meta.discourse.org/u/UkiahSmith)
#### Post date: [July 10, 2017, 1:41am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/1 "2017-07-10T01:41:44Z")

</div>

I am having no luck when it comes to configuring the Slack integration. I am following the [Slack plugin configuration instruction](https://meta.discourse.org/t/configuring-slack-for-discourse-slack-plugin/52990). I am following the instructions exactly. I am only configuring the **Incoming Webhook** , not the optional **Slash Command**. The Incoming Webhook is configured to send a private message to my user.

My Discourse setup is set to require authentication to read content on the site.

I am an Admin in the slack I am connecting to.

Plugin version: Most recent from github  
Discourse version: v1.9.0.beta3 +27 (current up to date version)

I rebuild the app and I see the configuration options available. I copy in the proper values and everything saves.

Once everything is configured nothing happens. I setup a private DM as a notification, I setup a Category to notify a channel, I try the **Test Notification**. None of these post a message to the Slack. No notification anywhere.

I use the webhook URL and I `POST` a simple json from the command line using cURL. The cURL command works. It pops up directly as a DM to my slack user.

```plaintext
curl -X POST -H 'Content-type: application/json' -d '{"text": "this is a test yo! from the CLI"}' https://hooks.slack.com/services/{redacted}

```

I looked in the logs and I saw no errors specific to Slack or the plugins. Where would I look for error logs? The plugin is silent, quiet, no failure notices. How can I make it louder when there is an error?

What am I missing?

Thank you.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [July 10, 2017, 1:45am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/2 "2017-07-10T01:45:13Z")

</div>

Hey there,  
Have you set up a filter rule? You can do it at /admin/plugins/slack

---

<div class="post-metadata">

### Author: ![UkiahSmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ukiahsmith/32/75042_2.png) [@UkiahSmith](https://meta.discourse.org/u/UkiahSmith)
#### Post date: [July 10, 2017, 1:47am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/3 "2017-07-10T01:47:33Z")

</div>

Yes, I tried two filter rules. One that would notify post first to a channel, and a second that would notify my Slack user on any activity. But not both at the same time.

Even if there were no filters, wouldn’t the _Test Notification_ still work?

I deleted the initial filter rule, as the slack had renamed the `general` channel to `general-tech`.

---

<div class="post-metadata">

### Author: ![UkiahSmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ukiahsmith/32/75042_2.png) [@UkiahSmith](https://meta.discourse.org/u/UkiahSmith)
#### Post date: [July 10, 2017, 2:04am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/4 "2017-07-10T02:04:58Z")

</div>

I think I have it working now. I did two things:

- Installed the Slackdoor plugin
- Created an **All Categories** filter rule

I tested by disabling Slackdoor and notifications did not appear to work.

Why would Slackdoor help this? I thought the Official Slack Plugin was just an outgoing POST connection. It shouldn’t need an Incoming Webhook.

---

<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: [July 10, 2017, 5:55am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/5 "2017-07-10T05:55:31Z")

</div>

> [@UkiahSmith](#):
>
> Why would Slackdoor help this?

That sounds odd to me. Hard to believe, frankly.

But I just tried disabling the Slackdoor plugin on our site and indeed, “Test Notification” from the official Slack plugin does not work until I re-enable to Slackdoor 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: [July 10, 2017, 6:33am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/6 "2017-07-10T06:33:39Z")

</div>

Well, “slackdoor”, whatever that may be, is not installed on our Discourse dev instance and we definitely get slack messages when new posts are made there.

---

<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: [July 10, 2017, 1:33pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/7 "2017-07-10T13:33:48Z")

</div>

> [@codinghorror](#):
>
> “slackdoor”, whatever that may be

This is the [slackdoor](https://meta.discourse.org/t/discourse-slackdoor-plugin/44632) plugin.

But… I just tried things again this morning, and I cannot reproduce this issue. While the slackdoor plugin is installed but disabled, notifications from the slack plugin still work when triggered by creating a post and by clicking the “Test Notification” button on the Slack plugin page.

Not sure what was happening last night when I looked first.

---

<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: [July 10, 2017, 2:11pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/8 "2017-07-10T14:11:55Z")

</div>

The “test notification” button has some quirks - when you click it, it chooses a random post from your forum to send (could include PMs). Then when it actually tries to send, it checks whether the slack user account is allowed to see the post. If not then it aborts the sending.

Tl;dr: “Test Notifications” won’t always work :facepalm:

(I’ve fixed this in my new implementation)

---

<div class="post-metadata">

### Author: ![UkiahSmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ukiahsmith/32/75042_2.png) [@UkiahSmith](https://meta.discourse.org/u/UkiahSmith)
#### Post date: [July 14, 2017, 7:01pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/9 "2017-07-14T19:01:42Z")

</div>

So it could be that I got really unlucky in the several times I clicked test?

But I am admin on the Slack, and admin on the Discourse forum. Shouldn’t I have access to everything that way?

---

<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: [July 15, 2017, 12:39am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/10 "2017-07-15T00:39:08Z")

</div>

> [@UkiahSmith](#):
>
> So it could be that I got really unlucky in the several times I clicked test?

Yes, it could be

> [@UkiahSmith](#):
>
> But I am admin on the Slack, and admin on the Discourse forum. Shouldn’t I have access to everything that way?

It doesn’t matter what you have access to, it matters what the `slack_discourse_user` has access to. By default it’s the “system” account. Regardless of permissions, the slack plugin will completely refuse to send private messages, so that could be why the test button isn’t working reliably for you.

---

<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: [August 11, 2017, 9:00pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/11 "2017-08-11T21:00:31Z")

</div>

we’re having the same issue. i’ve had one post go through using the ‘test notifications’ button, so it is able to work - but every other post and test has failed to go to our Slack thread

---

<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: [August 11, 2017, 9:08pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/12 "2017-08-11T21:08:51Z")

</div>

it might be related to the tokens. i couldn’t understand where i was supposed to find the token which the how to says i should enter

---

<div class="post-metadata">

### Author: ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)
#### Post date: [September 14, 2017, 4:14pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/13 "2017-09-14T16:14:26Z")

</div>

Same issue here. I even posted test post but it is not being passed to slack.  
I’m not using a slackdoor plugin but the official plugin. @UkiahSmith How did you make yours work? Thanks

---

<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 14, 2017, 4:20pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/14 "2017-09-14T16:20:36Z")

</div>

My personal recommendation is that you use the new plugin I wrote: [Discourse Chat Integrations](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522)

It has all the same functionality, and solves a lot of bugs that the existing Slack plugin has.

---

<div class="post-metadata">

### Author: ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)
#### Post date: [September 14, 2017, 4:28pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/15 "2017-09-14T16:28:31Z")

</div>

Hi @david This is awesome. Should I remove the official discourse slack plugin first before integrating yours to remove conflict? Thanks. 🙂

---

<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 14, 2017, 4:32pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/16 "2017-09-14T16:32:22Z")

</div>

They should work fine side by side, so it’s up to you. If you have both installed, make sure you don’t get confused with the site settings - the new plugin prefixes all of them with “chat integration”

---

<div class="post-metadata">

### Author: ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)
#### Post date: [September 14, 2017, 4:44pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/17 "2017-09-14T16:44:01Z")

</div>

@david is the chat integration slack access token required? Or just the chat integration slack outbound webhook url?

I’m confused why Slack incoming webhook provides url, outbound webhook provides token but in discourse - outbound is webhook url while inbound is the token.

---

<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 14, 2017, 4:46pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/18 "2017-09-14T16:46:46Z")

</div>

Have you tried following the slack-specific setup instructions?

You need either the access token, OR the Webhook URL. I would recommend the access token, because it enables more functionality like posting slack transcripts to Discourse. These instructions walk you through setting up the token, and assigning the correct permissions:

> [@Set up Slack notifications using the discourse-chat-integration plugin](https://meta.discourse.org/t/set-up-slack-notifications-using-the-discourse-chat-integration-plugin/66730):
>
> This #howto describes how to setup the Slack provider included in discourse-chat-integration. It allows posting notifications to Slack, managing rules using Slash Commands, and posting transcripts back to Discourse. Slash command instructions can be found by typing /discourse help. Transcript can be created using the context menus on Slack posts. Install 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 settin…

---

<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: [September 28, 2019, 10:24pm UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/19 "2019-09-28T22:24:19Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 30, 2019, 7:40am UTC](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917/20 "2019-09-30T07:40:09Z")

</div>



[Next page](https://meta.discourse.org/t/help-configuring-slack-discourse-plugin/65917.md?page=2)
