article by Frank Nimphius, June 2019

 

Google reCaptcha is used in many web applications to distinguish humans from bots. A type of reCaptcha is where users select a checkbox or select images showing common objects like a bus, traffic lights, street signs and so on.

Google reCaptcha can also be implemented in chatbots built with Oracle Digital Assistant. For this you use a locally deployed webview for displaying the challenge and a custom component for verifying the prove that a human is what he claims to be: a human.

This article explains how you use the System.Webview component and a custom component to integrate Google reCaptcha in Oracle Digital Assistant chatbot conversations. In addition, you can download the Oracle JET webview application and the custom component as packed files for immediate use in your own chatbots.

About the Sample Skill

Bot asks user to verify that he or she is human.

Google reCaptcha opens in separate browser tab (or mobile webview)

User selects "I'm not a robot" select box. Note that Google reCaptcha may display a more complex challenge in which users need to select all images that share a common object. When the user passes the reCaptcha test, control is passed back to the bot (pressing Cancel would also pass control back to the bot)

Note: Because a locally deployed webview is used, the article and the samples require Oracle Digital Assistant 19.1.5 or later.

READ FULL ARTICLE (PDF)

Sample Download

You can download the sample skill, components and sources from here (18 MB):

recaptcha.zip

Related Content

TechExchange – Tutorial: How-to Debug Custom Component Services Deployed to Oracle Digital Assistant Skill Bot Local Component Container

Oracle Bots Node.js SDK: Building Custom Component Services in and for Oracle Autonomous Mobile Cloud Made Easy

Author