Tutorial

Functionnal Documentation Socialbus

npm## Summary

- 1. Introduction

- 2. Features

- 3. Running a bot in an OSNS

- 4. Socialbus initiating a conversation with a user

- 5. Deploy Socialbus to an OSNS

1. Introduction

      Computer-mediated communication can be defined as any form of human communication achieved through computer technology. From its beginnings, it has been shaping the way humans interact with each other, and it has influenced many areas of society. There exist a plethora of Online Social Network Services (OSNS) enabling computer-mediated social communication (e.g., Skype, Facebook Messenger, Telegram, WhatsApp, Twitter, Slack, etc.). Based on personal preferences, users may prefer a social interaction service rather than another. As a result, users sharing same interests may not be able to interact since they are using incompatible technologies. To tackle this interoperability barrier, we propose Socialbus, a middleware solution targeted to enable the interaction via heterogeneous social interaction services.

      The purpose of this documentation is to understand how to setup and use Socialbus. The figure below shows an example of a user interacting with Socialbus.

Figure 1: Diagram of a user interacting with Socialbus

A user can communicate to other users through groups that were created and linked through Socialbus’ website. To have a more in depth understanding of how the groups work, please refer to the functional website documentation.

2. Features

Refer to this page to see all the features available in Socialbus.

3. Running a bot in an OSNS

Socialbus receives messages through separate webhooks for each OSNS. Those webhooks are located in the Servers directory and conventionally named “server[OSNS].js” in the Socialbs repository.

3.1 Defining the hostname which receives the webhooks

Socialbus must be deployed in a server and reachable through an https url. The OSNS needs to know the url to the webhook of the target OSNS. The webhook URL should be under this form: “https://[socialbus deployment url]/[OSNS’ name]”. Please review deployment documentation to deploy Socialbus.

4. Socialbus initiating a conversation with a user <a name="">

OSNS usually have security measures that prevent bots from initiating a conversation with any user. The user must be authenticated and give their consent to be able to receive messages from the bot. Those authentications are made through Sociabus’ website while joining a group.

The procedure is as follows:

  1. Give the OSNS’ webhook URL to the OSNS
  2. Authenticate the user to the OSNS’s application.

5. Deploy Socialbus to an OSNS

Refer to this page to see all the tutorials on how to deploy to a specific OSNS.