abdulhannanali / messenger-slack-relay

A relay to post messages from Messenger to Slack using Incoming Webhook
MIT License
0 stars 0 forks source link

Application's Architecture #1

Open abdulhannanali opened 7 years ago

abdulhannanali commented 7 years ago

The application architecture of this application is going to be very similar to some of the other messenger bots I have built. It's going to include a Server side that's going to receive messages from Fb Messenger and relay them to Slack using Slack's commonly used incoming web hooks.

The beginning components of this application might look like this

Slack Incoming Webhook implementation

There are two ways to go about here, send request ourselves using a module such as axios and rebuild the wheel, or use node-slack-sdk which seems to be quite updated till now and can help us in implementing features. We are going about the second way, since we haven't done it in the past, and it could be exciting to learn this new library.

abdulhannanali commented 7 years ago

In the future using node-slack-sdk can also help us, if we plan to implement Outgoing webhook, to relay messages from Slack to Messenger too, however, we don't plan to do that right now, immediately.