Digital Assistant and Mobile

Get Involved. Join the Conversation.

Posts

  • Satshah
    Accessing the Reports in ERP cloud with dynamic...1
    Topic posted February 28, 2019 by Satshah Blue Ribbon: 750+ Points, tagged Alexa, API, Bots, Conversational AI, Messaging, Mobile, OMCE, Slack, Virtual Assistant 
    Title:
    Accessing the Reports in ERP cloud with dynamic authentication
    Summary:
    Accessing the Reports in ERP cloud with dynamic authentication
    Content:

    Hi,

    We are using Digital Assistant to access "https://<host>/xmlpserver/services/PublicReportService?wsdl" WSDL and runReport operation from it. But case here is, we are passing authentication ( userid and password ) ina static manner. So every time the userid and password refreshes our Digital Assistant stops working untill we change that static authentication details,

    Can we do this approach dynamically?

    So that we do not have to enter authentication details evert time and Digital Assistant works flawlessly.

     

    Thanks,

    Satya

     

  • Kranthi Bharadwaj Achanta
    API Connection4
    Topic posted November 29, 2018 by Kranthi Bharadwaj AchantaRed Ribbon: 250+ Points, tagged Bots, Mobile, Virtual Assistant 
    Title:
    API Connection
    Summary:
    API Connection
    Content:

    Hi Team,

    Want some suggestions...

    I have created a Backend, connector and tested the API endpoints which is giving me the results.

    But I am not able to created the service in the bot UI. it is giving me several errors like "404","400",etc....

    Also I would require your help on creating custom components in "OBotML" flow to know if we are following a correct procedure.

    Any sample code would be of great help.

     

    Regards,

    Kranthi Bharadwaj

  • Satshah
    Authorization and Tokenization in ODA
    Topic posted March 14, 2019 by Satshah Blue Ribbon: 750+ Points, tagged Alexa, API, Bots, Conversational AI, Messaging, Mobile, OMCE, Siri, Slack, Virtual Assistant, VPA 
    Title:
    Authorization and Tokenization in ODA
    Summary:
    Use of Authentication Services for Oracle SaaS
    Content:

    Hi,

    We are implementing the Authentication Services from the Oracle Digital Assistant. We have created a Service for Google and
    implemented it which asks Google Id and Password for authentication which generates Token and stores in a variable, in code itself.

    Navigation on ODA instance: Settings>>Authentication Services>>CreateService

    Now, our requirement is to create authentication service for our Oracle SaaS instance. So our question is,
    1. How we can get the parameters which are asked while creating the service, namely Token EndPoint URL, Authorization EndPoint URL,
    Client ID, Client Secret, Scopes & Subject Claim for the SaaS instance?

    So that it will generate a Token for us,

    Also, we would like to know if we could use this token to Access the reports from the SaaS instance? will reports accepts this tokens?

    Thanks,
    Satya

     

    Image:
  • Xena Arcabos
    Auto-translation in variable1
    Topic posted February 7, 2019 by Xena ArcabosGreen Ribbon: 100+ Points, tagged Bots, Conversational AI, Mobile, OMCE 
    Title:
    Auto-translation in variable
    Summary:
    The auto-translation translates the value input in the variable
    Content:

    Hi guys!

    the user should input his UserName on the chatbot but the bot also translates the value in it. I also tried System.TranslateInput but doesn't work. How can we prevent the chatbot to translate the value in the variable?


    Note that we have implemented the Auto-translation and it works properly.

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

  • Kantilalr
    Can we connect third party database like mysql, oracle in...35.0
    Topic posted March 7, 2018 by Kantilalr , tagged Mobile 
    Title:
    Can we connect third party database like mysql, oracle in MCS ?
    Summary:
    Can we connect third party database like mysql, oracle in MCS ?
    Content:

    Hi,

     

    Is there any way to conenct any third party database like mysql, oracle in MCS ?

     

    For eg. we can conenct JDBC connection in java same as I want to conenct any third party database in MCS.

  • santosh kumar JAGTAP
    Chatbot invoking Engagement Cloud Agent Chat API3
    Topic posted October 22, 2018 by santosh kumar JAGTAP, tagged Bots, Mobile 
    Title:
    Chatbot invoking Engagement Cloud Agent Chat API
    Summary:
    Chatbot invoking Engagement Cloud Agent Chat API
    Content:

    I understand the MCS Chatbot has capability of agent integration of which servce cloud support is well documented .Could you please confirm weather the same agent integration framework support the Oracle Engagement cloud chat API. As far as i understand as per documentation Enaggement cloud do not have any webservice api for chat functionality. 

     

    Could you please confirm weather the same agent integration framework support the Oracle Engagement cloud chat API. 

     

     

    Santosh

  • Andre Brouwer
    Clear chatbot session Android SDK95.0
    Topic posted June 25, 2018 by Andre BrouwerGreen Ribbon: 100+ Points, tagged Android, Bots, Mobile 
    Title:
    Clear chatbot session Android SDK
    Summary:
    Clear chatbot session Android SDK V18.2.3.0
    Content:

    Hi,

    I just embedded the Oracle chatbos (bots-client-sdk-android-18.2.3.0) in one of our Android apps. Looks like the chat is working fine.

    The only thing is that whenever the chatbot is restarted (even when app is force closed) the chat history is saved to. I would like a clean chatbot session everytime the chatbot is (re) started.

    So is there a way to reset (or restart) te chat bot session?

    I used the code from de chatbot sample to start te chatbot (bots-client-sdk-android-samples-18.2.3.0).

    Kind Regards,
    Andre Brouwer

  • 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

  • Xena Arcabos
    Derived Entity Type25.0
    Topic posted October 24, 2018 by Xena ArcabosGreen Ribbon: 100+ Points, tagged Bots, Conversational AI, Mobile, OMCE 
    Title:
    Derived Entity Type
    Summary:
    Problem with Derived Entity Type
    Content:

    I have created 2 custom DERIVED entity namely enddate with DATE as parent with preceding phrase ( to , up to ) ... and a startdate with DATE as parent with a preceding phrase ( From , on ). The expected user input would be "Log absence from tomorrow to friday" but i have noticed that it only resolved the tomorrow as the date. I need to get the tomorrow as the start date and Friday as the end date. How should i do it?

    Version:
    18.2.5