Digital Assistant and Mobile

Get Involved. Join the Conversation.

Posts

  • Geetha Devi
    How to use Oracle Bot into google hangout? Anyone have any...Answered26
    Topic posted October 11, 2019 by Geetha DeviBlue Ribbon: 750+ 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

  • Geetha Devi
    how to print the values form custom component as a link in...12
    Topic posted October 18, 2019 by Geetha DeviBlue Ribbon: 750+ Points, tagged API, Bots, Conversational AI, Messaging, Mobile, OMCE, Slack, Virtual Assistant, VPA, WeChat 
    Title:
    how to print the values form custom component as a link in skill ODA?
    Summary:
    I would to print value coming from custom component as link
    Content:

    My requirement is to print the output from the custom component as a link.

    Below out I am getting from the custom API. I would like to show each line as a link.

    2019-10-21 to 2019-10-27 (29 hrs)

     2019-07-08 to 2019-07-14 (.5 hrs)

    2019-07-01 to 2019-07-07 (1.4 hrs)

    Below YAML to print  this output

      Print:
        component: "System.List"
        properties:
          options: "${Name}" #output from custom component.
          prompt: "Below are the details "
        transitions: 
          return: "done"

    Here in this attachment considering all output as a link. I would print each line as link

    Could anyone please help us?

     

    Image:
  • Vikhil Khobragade
    Oracle Bots Android SDK: HTML not renderingAnswered95.0
    Topic posted November 9, 2019 by Vikhil KhobragadeBlue Ribbon: 750+ Points, tagged Android, API, Bots, Conversational AI 
    Title:
    Oracle Bots Android SDK: HTML not rendering
    Summary:
    oracle android SDK
    Content:

    Hi All,

    I am trying to rendering the html code in android bots SDK. any one have idea how can we do this.

     

    Regards,

    Vikhil

  • Satshah
    Skype for Business Integration with Oracle Mobile Cloud9
    Topic posted February 20, 2019 by Satshah Blue Ribbon: 750+ Points, tagged Alexa, API, Bots, Messaging, Mobile, Slack, Virtual Assistant 
    Title:
    Skype for Business Integration with Oracle Mobile Cloud
    Summary:
    We are trying to perform Skype for Business Integration with Oracle Mobile Cloud
    Content:

    We are trying to perform Skype for Business Integration with Oracle Mobile Cloud,

    But we see that there is no any channel for skype and we need know how we could achieve it?

    Is there any provision for it or will it require any additions cost for its licsence.

     

  • Geetha Devi
    How to integrate oracle bot with google hangout?8
    Topic posted October 16, 2019 by Geetha DeviBlue Ribbon: 750+ 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.

  • Luc Bors
    How to include local node package in custom API5
    Topic posted September 27, 2018 by Luc BorsRed Ribbon: 250+ Points, tagged API, Mobile 
    Title:
    How to include local node package in custom API
    Summary:
    Need to add a local node package to custom API
    Content:

    Hi All,

    I developer a custom API for AMCe and that one is using a local node package that contains some utilities. How do I include it in my custom API so it is deployed properly using omce-deploy ?

    This is the situation: Custom API depends on my utilities package.

    Utilities package's package.json contains :  "name": "eproseed-js-utils", 

    When using it locally, it can refer to it in my API's package.json as follows:

    "dependencies": {
        "eproseed-js-utils": "file:eproseed-js-utils"}

    However, when using omce-deploy, this (obviously) does not work. Runtime cannot find my utils package. I am not "willing" to install my package in a 'global' or 'private' npm repo. Is there any way to make this work? 

    Thanks

    NOTE: As it is a rather simple utils package, for now I copied the js file to my API and refer to that one as a workaround. The question remains how I would make this a reusable package that I can reference.

  • 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. 

  • 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:
  • Satshah
    Digital Assistant UtilityAnswered4
    Topic posted February 25, 2019 by Satshah Blue Ribbon: 750+ Points, tagged Alexa, API, Bots, Messaging, Mobile, Siri, Slack, Tip, Virtual Assistant 
    Title:
    Digital Assistant Utility
    Summary:
    Scalability of Digital Assitant
    Content:

    Hi,
    We were getting familiar with Digital Assistant and found few doubts ?
    we would appreciate your assistance in understanding them well,

    1> Can we add other custom questions, other than given out of the box questions ?

    2> And also what if we dont want some of given out of the box questions ?

    3> And while using channels, is it necessary to get logged into the instance first ?

    Thanks,
    Satya