A web page that allows a user to subscribe to queue notificaitons and displays active conversations.
Try it now with your mypurecloud.com credentials at https://mypurecloud.github.io/queue-notifications-example/src/
- Node.js
- http-server node package
- SSL certificates (instructions to generate them below)
- A PureCloud Engage org
- With a working edge for telephony
- With at least one queue set up for inbound ACD
- With at least one user configured to handle ACD calls from the queue
- Clone this repo locally
- Generate SSL certificates for http-server to use HTTPS (recommended tutorial)
- Install http-server globally:
npm install http-server -g
- Change the environment in main.js if you need to connect to another PureCloud environment.
- If using a different environment or redirect URL, you will also need to provide your own client ID and redirect URL.
- Run the server from the repo directory
- In the OSX terminal:
sh server.sh
- For non-shell environments, inspect server.sh to see the http-server command to start the web server. The path to the certificates and the ability to turn of HTTPS can be changed here also.
- Navigate to the page: https://localhost:8443/
- This app is also hosted on Github Pages for access without running locally: https://mypurecloud.github.io/queue-notifications-example/src/
- If not already authenticated, you will be redirected to log in to PureCloud.
- The list of queues will be populated at the top of the page. Scroll through the list and click the subscribe button to subscribe to the desired queues.
- Place calls into the queues to see the display populate.
- Inspect the JavaScript console to see some relevant trace messages.