Rocketchat Integration [GOT CREATED]

Free Open Source Team Chat similar integration to send to a room/DM would be amazing!

I agree here… RC integration would be fantastic.

I would like RC! Please :heart_eyes:

@BCEVE @kasini which use case are you looking for?

Sending messages to individual(s), groups, channels would be a great start!
Being able to change the “FROM”, Avatar would be amazing as well.
I’m currently doing it via a hack with Curl which I could share.

@tiredofit Perfect, I’m working on the fresh desk integration right now as soon as I finish it I might be able to look into this. Never used Rocketchat but it seems like the slack integration has a lot of similarities.

3 Likes

Very sorry, did not get to it earlier. Is now released with [email protected]
https://n8n.io/nodes/n8n-nodes-base.Rocketchat
Thanks a lot @RicardoE105 for creating it!

1 Like

Many Thanks RicardoE105. I only wish that I had the skills that you had to turn this around so fast.

2 Likes

@RicardoE105 I seem to be having no success with trying to test this out.

In my Rocket API I use the username provided along with the Token, yet I seem to be having some trouble with your field subdomain. I have tried: https://domain/api https://domain/api/v1 yet get an error of

Error: Rocketchat Error: TypeError: Cannot read property 'body' of undefined
    at Object.executeSingle (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Rocketchat/Rocketchat.node.js:463:27)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

I also tried without the protocol in front and received 280kb of response but it bogged down so much I couldn’t see much other than the first line which was DOCTYPE HTML etc. Any advice on where I am going wrong on this?

Hey @tiredofit I have a test account you can check.

Domain: https://n8n.rocket.chat
Subdomain: n8n
UserID: initialuser
Auth key: Vu0LJVWVXMUO1mhBdM_xysnjcKXPtM-wJUq7A7g3Cf9

To get the userId which is not your username and the auth key you gotta login and grab them from the response.

You can do that doing a POST to the following end point youdomain/api/v1/login and providing the fields username and password on the body.

Let me know if that helps.

Sorry about my delay in getting back to you, had a few things to take care of before I went back at this. The workspace has expired - and that is OK. I think where the issue is here is with the subdomain field - Rocketchat does have a hosted option, but really shines in it’s on premise implementation. Perhaps subdomain can be altered to take a FQDN?

@tiredofit yeah I can change it to take the whole domain instead of just the subdomain. Gonna send a pull request with this fix. Thanks for pointing that out.

@RicardoE105 Thanks a lot for making the change.

Got released with [email protected]