Skip to content

Integration between WhatsApp and Rocket.Chat using Chat-Api.

License

Notifications You must be signed in to change notification settings

josep112/rocketchat-whatsapp-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocket.chat integrated with WhatsApp

This service sits between Rocket.chat and chat-api. The goal of this project is to be able to integrate rocket chat and whatsapp seamlessly; allowing both whatsapp users and rocket.chat users to share images, audio, video and text. This solution is helpful for companies looking for centralizing their customer support, as it is very commom to have both a chat widget on the company's website, and users who prefer to use whatsapp as a customer support channel.

What this project is not.

This project is not related to an official WhatsApp message broker, nor do I or anyone involved in this project offer any official message broker service.

Running this project

To run this project you will need:

  • a chat-api account
  • a server where you can host the project. A free server such as heroku will do the job.
  • a server running rocket.chat

Once you have all of the items above, you can edit the constants.py file and add your chat-api instance number, rocket chat url etc.

Go to your chat api dashboard, and under Instance settings, configure the webhook to https://your-domain-name.com/msg_recv. This is the endpoint that awaits for a post message from chat-api, and forwards it to rocket.chat.

Now every message sent to your chat-api whatsapp number should be forwarded to your rocket.chat live-messages. But the messages sent from rocket-chat will not reach your whatsapp number. To solve this, you need to configure rocket.chat's live message webhooks found under omnichannel > webhooks > send request for agent's messages. Your webhook url should look like https://your-domain-name.com/msg_snd.

TODO:

  • Send text messages from WhatApp to Rocket.Chat
  • Send text messages from Rocket.chat to WhatsApp
  • Send media messages from Rocket.chat to WhatApp (currently only images)
  • Send media messages from WhatsApp to Rocket.Chat (media currently goes as links)
  • Integrate with other APIs. (e.g., Wassenger)

Want to contribute?

Feel free to open a pull request with a bug fix or a feature you think is interesting.

About

Integration between WhatsApp and Rocket.Chat using Chat-Api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages