# Set up Rocket Chat notifications using the discourse-chat-integration plugin

**URL:** https://meta.discourse.org/t/set-up-rocket-chat-notifications-using-the-discourse-chat-integration-plugin/68633
**Category:** Integrations
**Tags:** chat-integration, how-to
**Created:** [8월 23, 2017, 4:24오후 UTC](https://meta.discourse.org/t/set-up-rocket-chat-notifications-using-the-discourse-chat-integration-plugin/68633 "2017-08-23T16:24:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [8월 23, 2017, 4:24오후 UTC](https://meta.discourse.org/t/set-up-rocket-chat-notifications-using-the-discourse-chat-integration-plugin/68633/1 "2017-08-23T16:24:09Z")

</div>

This #howto describes how to setup the [Rocket.Chat](https://rocket.chat/) provider included in `discourse-chat-integration`.

# Enable the plugin

The `discourse-chat-integration` plugin is bundled with Discourse. Enable the `chat_integration_enabled` site setting to activate it. For more details, see the [discourse-chat-integration](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522) topic.

# Notifications

### Set up Rocket Chat

> Your Rocket Chat server needs to be accessible from your Discourse server in order to connect them. It is recommended that you use HTTPS, but HTTP should also work.

1. Log in to your Rocket Chat server, click your name in the top left, then click Administration

2. Under Integrations, click New Integration

3. Choose Incoming Webhook

4. Fill out the form to define how you want your bot to look inside Rocket Chat. Under “Post to Channel”, you can enter any channel name (e.g. `#general`). This will be overridden by Discourse, so it doesn’t matter which.

5. Set “Enabled” to “True”

6. Save Changes

7. Copy the “Webhook URL”, you’ll need it later

### Setup Discourse

1. Paste the URL you copied into the `chat_integration_rocketchat_webhook_url` site setting

2. Enable `chat_integration_rocketchat_enabled`

3. Setup some “Rules” for your channels, according to the [discourse-chat-integration](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522) instructions. Channel identifiers look like `#general` or `@davidtaylor`.

4. Click Test on one of the channels to check everything’s working. You should receive a message like this:  

5. 🚀

> Last edited by @JammyDodger 2024-05-26T07:10:22Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![pi88](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pi88/32/270964_2.png) [@pi88](https://meta.discourse.org/u/pi88)
#### Post date: [2월 21, 2023, 8:33오전 UTC](https://meta.discourse.org/t/set-up-rocket-chat-notifications-using-the-discourse-chat-integration-plugin/68633/2 "2023-02-21T08:33:49Z")

</div>

안녕하세요, 테스트 메시지를 보낼 때 아래 오류를 확인하시는 분이 있는지 궁금합니다.

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/0/0/3006037418ad789f07a3430a4f9282ac687417c9.png)

아래 명령어를 테스트했을 때 정상적으로 작동하므로, 제공업체(rocketchat)의 문제라고 생각하지 않습니다.

`curl -X POST -H 'Content-Type: application/json' --data '{"text":"Example message","attachments":[{"title":"Rocket.Chat","title_link":"https://rocket.chat","text":"Rocket.Chat, the best open source chat","color":"#764FA5"}]}' https://chat.rocketchat.com/hooks/Token`

{“success”:true}
