article by Anshuman Panda, September 2020

 

On mobile devices in particular, scanning QR codes is a quick and easy way to navigate to a URL. When Oracle Digital Assistant runs on the web as a messenger using the Oracle Web SDK, users can scan a QR code to display a launch option or to save the information contained in a code.

This article explains how to integrate QR code scanning using the on-device camera (or the camera attached to a device) from Oracle Digital Assistant. If a device does not have a camera, then this sample displays a simple alert. 

Below sequence of images show the sample you can download for this article. You simply start by typing 'hi'.

Click on the QR code to start the scan. Most likely your browser will prompt you to grant permission for accessing the camera. Please allow this action to continue with the demo

Next, hold a QR code in front of the camera

When the code could be read, you see the following screen to press the button in.

As you can see in the image above, the sample displays the scanned URL (Wikipedia in my test). This message actually comes from Oracle Digital Assistant.

 

READ FULL ARTICLE (PDF)

 

Download Sample

Download and import the sample skill into Oracle Digital Assistant. Open the channel configuration and expose the skill on an Oracle Web channel. 

Sample Skill

Download the index.html.zip file and unzip it. Copy the index.html file to your sample directory (the same application that you get when downloading the Oracle Digital Assistant Web SDK)

Download HTML file

Start the index.html file and run the demo. Make sure you configured access to the web channel for the Web SDK. 

 

Related Content

Oracle Web SDK Tutorial

Oracle Web SDK Guide

TechExchange: How to respond to user inactivity using the Oracle Web SDK messenger. An implementation strategy

TechExchange: Oracle Digital Assistant Web SDK customization and programming examples

Oracle TechExchange: Integrating the Oracle Digital Assistant Web SDK Messenger to Oracle JET web applications

TechExchange: How to Build a Remote JWT Token Server in Node for Use With Oracle Web SDK Client Authentication

 

Author