This project shows how to use Smooch's channel transfer feature to link a user across multiple messaging channels. This project highlights two ways this can be done:
-
Moving a user from a social channel like Facebook Messenger to an embedded chat in a Web app.
-
Moving a user from a web chat to a social channel like Facebook Messenger.
For more information on this feature, see this guide.
-
Create a config.json file in the project's root based on the contents of config.json.example.
-
Configure a webhook to point from your Smooch app to a publicly accessible endpoint, /api/webhooks, on this service.
-
Change directory to either social-to-web or web-to-social and
npm install
andnpm start
to run the project.
-
Make sure you have a social channel like Facebook Messenger configured on your Smooch app.
-
Visit that channel as an end-user and send a message.
-
Make sure you have a social channel like Facebook Messenger configured on your Smooch app.
-
In your browser, visit localhost:8000, or whatever host this service is deployed to, and initiate a conversation over the Web messenger.