Digital Assistant and Mobile

Get Involved. Join the Conversation.

Posts

  • Sean Yang
    Deploy Mobile Hub Custom API-Express package on generic...
    Topic posted Yesterday by Sean Yang, tagged API, Mobile 
    Title:
    Deploy Mobile Hub Custom API-Express package on generic NodeJS server
    Summary:
    Is it possible to run a Mobile Hub Custom API-Express package on generic NodeJS server
    Content:

    Hi there,

    We have developed a set of Mobile Hub Custom Express APIs. 

    Is it possible to export a Mobile Hub Custom Express API package and run it on a generic NodeJS server? 

    If it possible, what kind of effort is required?

    Thank you very much.

     

    Sean

  • Geetha Devi
    How to integrate oracle bot with google hangout?1
    Topic posted October 16, 2019 by Geetha DeviRed Ribbon: 250+ Points, tagged API, Bots, Conversational AI, Messaging, Mobile, OMCE, Slack, Tip, Virtual Assistant, VPA, WeChat 
    Title:
    How to integrate oracle bot with google hangout?
    Summary:
    how google hangout as oracle chat-bot UI.
    Content:

    I have configured the webhook channel in oracle digital bots.

    pastedImage_3.png

    And publish the hangout chat API  based below document

    https://developers.google.com/hangouts/chat/how-tos/bots-publish 

     

    pastedImage_5.png

    what is the next thing I need to do to see the oracle bot in hangout chat UI?

    attaching the code to hangout chat.

    How to run this code? how to integrate this code with hangout.

    Need an urgent help with this.

     

    Thanks,

    Geetha.

  • Geetha Devi
    How to use Oracle Bot into google hangout? Anyone have any...Answered22
    Topic posted October 11, 2019 by Geetha DeviRed Ribbon: 250+ Points, tagged Alexa, Analytics, Android, API, Bots, Conversational AI, Facebook, iOS, MAX, Messaging, Mobile, Notification, OMCE, Siri, Slack, Tip, Virtual Assistant, VPA, WeChat 
    Title:
    How to use Oracle Bot into google hangout? Anyone have any doc on this?
    Summary:
    how to integrate the OMH chatbot-UI as google hangouts.
    Content:

    I  would to login  the oracle mobile hub chats using the hangout credentials.

    Dailog Flow  channel as google hangout

  • subhajit saha
    How to remove View option from QnA and Change card to...1
    Topic posted September 18, 2019 by subhajit sahaGreen Ribbon: 100+ Points, tagged Alexa, Analytics, API, Bots, Conversational AI, Messaging, Mobile, OMCE, Siri, Slack, Virtual Assistant, WeChat 
    Title:
    How to remove View option from QnA and Change card to vertical
    Content:

    Hello,

    I am stuck in problem to remove VIEW option from qna and also change the card to vertical.

    I want to create a qna skill where qna query comes like hyperlink and responding after clicking on the hyperlink.

    or can suggest me any other solution.

    Thanks n Regards

    subhajit saha

    Image:
  • Prakash Rajagopal
    Oracle Digital Assistant - REST API calls4
    Topic posted September 10, 2019 by Prakash Rajagopal, tagged API, Bots 
    Title:
    Oracle Digital Assistant - REST API calls
    Content:

    Hi,

    We are trying to develop chatbots using Oracle Digital Assistant with the backend REST API calls.
    Here for the REST API call, I am using the Embedded Container for Custom Component deployment. 
    Is there any documentation/Example for calling and using REST API in a custom component which is deployed inside an embedded container in 
    ODA.
    In addition to this, I need to know where to find the error logs or the console log statements that been used in the javascript file of the Custom component.  

    Kindly help me on the same to proceed  on the ODA bot development. 

  • Mozakkir Jamil
    ODA custom component validation error2
    Topic posted September 3, 2019 by Mozakkir JamilGreen Ribbon: 100+ Points, tagged API, Bots 
    Title:
    ODA custom component validation error
    Summary:
    custom component error
    Content:

    Hi Experts,

    I have built a custom components based on the latest SDK. When i try to validate the same using "bots-node-sdk service" I get below error

    D:\gitwork\Digital Assistant\saasccs_1.0\saasccs>bots-node-sdk service
    shell.js create console logger
    ERROR: Package 'saasccs' does not export components

    D:\gitwork\Digital Assistant\saasccs_1.0\saasccs>

    This is first time I am developing a custom component and I am new to ODA also.

    Thanks,

    Mozakkir

     

  • bc_uk
    Can node-oracledb be used in Mobile Hub Custom APIs?45.0
    Topic posted June 10, 2019 by bc_uk, tagged API, Mobile 
    Title:
    Can node-oracledb be used in Mobile Hub Custom APIs?
    Content:

    From within my Mobile Hub Custom APIs I need to be able to directly access an Oracle DB instance using Basic authentication. As per the Oracle Mobile Platform videos on youtube, I added the oracledb package as a dependency:

    {

      "name": "patients",

      "version": "1.0.0",

      "description": "API to handle getting, adding, and updating of patient records.",

      "main": "patients.js",

      "dependencies": {

        "oracledb": "3.1.2"

      },

      "oracleMobile": {

        "dependencies": {

          "apis": {},

          "connectors": {}

        }

      }

    }

     

    I then executed "npm install" within the package folder, and it completed without error, and generated a package-lock.json file:

     

    {

      "name": "patients",

      "version": "1.0.0",

      "lockfileVersion": 1,

      "requires": true,

      "dependencies": {

        "oracledb": {

          "version": "3.1.2",

          "resolved": "https://registry.npmjs.org/oracledb/-/oracledb-3.1.2.tgz",

          "integrity": "sha512-DOBKpUlfvGAX6bcpuPGtPVVfOOUqFue8eLjbnnmkDyBTU+YuH+gXHRy4ftlFzkHBXYkrSGenFJrXy8dDfEVXCg=="

        }

      }

    }

     

    However, when I uploaded the Custom API package and tested it, I got the following error:

     

    MOBILE-43560: Custom Code VM: Failed to start container due to an error in the custom code: /u01/app/oracle/mobile/mobile_ccc/custom_code_modules/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_6/patients/patients.js:29
    connection = await oracledb.getConnection( {
                       ^^^^^^^^
    SyntaxError: Unexpected identifier.

     

    Here is my full node.js code for the Custom API:

     

    module.exports = function(service) {

        service.get('/mobile/custom/patients/patients', function(req,res) {

            var oracledb = require('oracledb');

            let connection;

            try {

                connection = await oracledb.getConnection( {

                    user          : "system",

                    password      : "xxxxxxxxxx",

                    connectString : "(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = ***.xx.xx.***)(PORT = 1521))(CONNECT_DATA =(SID= db1)))"

                });

                let result = await connection.execute('SELECT * FROM patients');

                console.info(result.rows);           

            } catch (err) {

                console.error(err);

            } finally {

                if (connection) {

                  try {

                    await connection.close();

                  } catch (err) {

                    console.error(err);

                  }

                }

            }

       

            var result = {};

            var statusCode = 200;

            res.status(statusCode).send(result);

        });

     

        // router: get patient by id

        service.get('/mobile/custom/patients/patients/:id', function(req,res) {

            var result = {};

            var statusCode = 200;

            if (statusCode == 200){

                var acceptType = req.accepts(['application/json']);

                if (acceptType == 'application/json'){

                    result = {

                          "items":

                            [

                              {

                                "id": 1,

                                "first_name": "Ted",

                                "surname": "Smith",

                                "gender": "M",

                                "dob": "12-Jun-1987"

                              }

                            ]

                        };

                }

            }

            res.status(statusCode).send(result);

        });

    };

     

    Please advise.

  • David Gonzalez
    Error with ODA and google cloud speech4
    Topic posted May 31, 2019 by David GonzalezGreen Ribbon: 100+ Points, tagged API, Bots 
    Title:
    Error with ODA and google cloud speech
    Content:

    Hi,

    We are triying to make first test with google cloud speech, but we are having some problems.

    We are following: https://cloud.google.com/nodejs/docs/reference/speech/2.3.x/#using-the-client-library

    But we are getting the following error when uploading the custom component to ODA (attached image).

    unhandledRejection
    build module failed: @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0
    BUILDER_BUILD_MODULE_ERROR: build module failed: @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0
        at Builder.buildModuleForService (/usr/src/app/node_modules/hosted_cc_builder/src/builder.js:89:13)
        at <anonymous>
    [object Promise]

    We are on Version 19.1.3-1903140545

    Has some one some experience with this?

    Thank you,

    Regards

    Version:
    Version 19.1.3-1903140545
    Image:
  • Michael Simonetti
    Is there any way to get user typed data while we are using...3
    Topic posted May 28, 2019 by Michael SimonettiGreen Ribbon: 100+ Points, tagged API, Bots, Conversational AI 
    Title:
    Is there any way to get user typed data while we are using system.list
    Content:

    Hi

    We are trying to get user typed data on system.list 

    If user didn't choose from sytem.list instead They write text in it Can we able to get those data

    Thanks

  • Bijay Nair
    Request body is empty when we use custom Content Type in...
    Topic posted May 7, 2019 by Bijay NairRed Ribbon: 250+ Points, tagged API, OMCE 
    Title:
    Request body is empty when we use custom Content Type in request
    Summary:
    Request body is empty when we use custom Content Type in request
    Content:

    When  i use custom content-type "application/vnd.oracle.adf.resourceitem+json" in POST request,the request body becomes empty.

    How can i use custom content-type in the request?