Git Product home page Git Product logo

engage-digital-structured-messages-demo's Introduction

Demo of Engage Digital Structured Message

A demo of Engage Digital Structured Message by following Quick Start here

Online Demo

Deploy To Heroku

Deploy to Render

Requirements:

Run in Local:

  1. Clone this repo
$ git clone https://github.com/ringcentral-tutorials/engage-digital-structured-messages-demo.git
$ cd engage-digital-structured-messages-demo
  1. Install dependencies
$ yarn
  1. Start Ngrok to create to domain for webhook
$ yarn ngrok
  1. Create .env file as .env.default

Using .env.default as a template, create the .env file with your own access token and server.

ENGAGE_DIGITAL_ACCESS_TOKEN=your_engage_digital_API_access_token
ENGAGE_DIGITAL_SERVER=your_engage_digital_api_server # eg: https://[YOUR DOMAIN].api.digital.ringcentral.com
  1. Start test server
yarn start
  1. Create Webhook in Engage Digital Admin web

Webhook Uri:

https://xxxxxxx.ap.ngrok.io/webhook

Create a new Webhook in Engage Digital Admin web. Make sure to add the /webhook to your ngrok URI, And ngrok domain from step 3

  1. Test by chatting in your Messaging Channel
  • Type 'select' in the customer's chat window to see an example of a quick reply
  • type 'link' in the customer's chat window to see an example of a rich link

Run with Heroku

  1. Click Deploy to Heroku to have a quick deploy to heroku.

In setup page, setup ENGAGE_DIGITAL_ACCESS_TOKEN and ENGAGE_DIGITAL_SERVER environment variables.

  1. After deployment, create Webhook in Engage Digital Admin web

Webhook Uri:

https://xxxxxxxxxx.herokuapp.com/webhook

Create a new Webhook in Engage Digital Admin web. Make sure to add the /webhook to your ngrok URI, And hero domain from step 1

  1. Test by chatting in your Messaging Channel
  • Type 'select' in the customer's chat window to see an example of a quick reply
  • type 'link' in the customer's chat window to see an example of a rich link

engage-digital-structured-messages-demo's People

Contributors

embbnux avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.