Digital Assistant and Mobile

Get Involved. Join the Conversation.

Posts

  • Vikhil Khobragade
    How to add sentiment analysis in ODA2
    Topic posted November 14, 2019 by Vikhil KhobragadeBlue Ribbon: 750+ Points, tagged Analytics, API, Bots, Conversational AI, Messaging 
    Title:
    How to add sentiment analysis in ODA
    Summary:
    sentiment analysis
    Content:

    Hi All,

    Can we have sentimental analysis with Oracle Digital Assistant(ODA).

    Regards,

    Vikhil

  • 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

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

  • 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

  • Sean Yang
    Deploy Mobile Hub Custom API-Express package on generic...1
    Topic posted October 17, 2019 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

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

  • 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:
  • 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 last edited 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.