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

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.

1개의 좋아요

Yes, the issue was related to the SSL certificate. It has been solved. Thanks for the immediate help :slight_smile:
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.

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.

Our makerforums 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?

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.

3개의 좋아요

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:

4개의 좋아요

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.

2개의 좋아요

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

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, 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.

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

4개의 좋아요

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

2개의 좋아요

Did anyone ever find a solution to this?

안녕하세요,

해당 howto를 따라 Discourse와 Slack 연동을 설정했습니다.
규칙을 테스트할 때 DiscourseChat::ProviderError 오류가 발생하지만, 세부 정보가 전혀 없으며 브라우저 콘솔에서도 오류에 대해 거의 아무런 정보를 제공하지 않습니다.
원인에 대해 어떤 생각이 있으신가요?

감사합니다

관리자 로그를 확인해 보셨나요?

1개의 좋아요

@Nick_Shearer_nsheare @Bas 님, 아래 내용을 시도해 보시기 바랍니다.

불행히도 Slack은 슬래시 명령어 API에서 사용자가 지정한 채널 이름을 제공하지 않으므로, ID를 사용해야 합니다. (자세한 내용은 커밋 메시지에서 확인하실 수 있습니다). 규칙 관리를 항상 슬래시 명령어로 수행하신다면, 이로 인해 아무런 차이가 없게 됩니다.

3개의 좋아요

정말 멋집니다! :slight_smile:

이번 주에 스테이징 환경을 업데이트하고 결과를 알려드릴게요!

2개의 좋아요

슬랙 봇을 채널과 연동하려고 아주 오래 동안 시도해 왔습니다. 디스커스가 공개 채널에 게시할 수 있도록 하는 마법이 있는지 놓치고 있는 부분이 있을까요? 디스커스에서 직접 알림은 받을 수 있지만, 디스커스가 채널에 게시하는 것 같지는 않습니다. 통합 설정에 인커밍 웹훅을 추가하려고 했는데, 디스커스 툴팁에서는 권장하지 않는다고 표시되고 있습니다. 도움을 주시면 감사하겠습니다.

음 - 다른 포럼에서 로그가 다른 위치에 있다는 것을 보여주는 게시물을 찾았어요. 에러 메시지는 꽤 명확했어요 - 봇 사용자가 게시물을 작성하려면 공개 채널에 추가되어야 한다는 거였죠. 그런 게 필요할 줄은 몰랐어요 - 하지만 그게 해결책이었어요!

5개의 좋아요

여러분 안녕하세요,

Slack에서 수신 메시지에 커스텀 텍스트를 추가하는 방법이 있을까요? 찾아봤는데 관련 정보를 찾지 못했습니다.

1개의 좋아요

포럼 스레드의 답변을 Slack에서 해당 메시지 아래에 있는 스레드로 전송할 수 있을까요?

1개의 좋아요