Posts

Posts

  • Sunil Kumar
    IBCS Bots Integration to Other Channel(Alice similar to...Answered25.0
    Topic posted August 13, 2018 by Sunil KumarRed Ribbon: 250+ Points, tagged Alexa, API, Bots, Conversational AI, Messaging, Mobile, OMCE, Siri, Slack, Virtual Assistant in Application Development > Digital Assistant and Mobile public
    Title:
    IBCS Bots Integration to Other Channel(Alice similar to Alexa)
    Summary:
    Need to create a webhook server to integrate IBCS with other channels
    Content:

    Hi,

    I am working on project, where I need to integrate IBCS bots to other channel(Alice -- Russian Voice bot, similar to Alexa).

    For this reason i have to create a webhook server to take request/command from Alice & pass that to IBCS. 

    I followed this doc https://docs.oracle.com/en/cloud/paas/mobile-suite/use-chatbot/bot-channels.html#GUID-96CCA06D-0432-4F20-8CDD-E60161F46680  

    My Webhook server is able to get message from Alice , but on calling IBCS bot using  (Webhook URI which I got from IBCS channel), i am getting error -- getaddrinfo ENOTFOUND bots-connectors bots-connectors:8000

    If any of expert can share some info/link/sample code for webhook that will be great. 

     

    Thanks in advance

    Sunil

  • Lukas Raymaekers
    Custom API (CCS for chatbot) randomly returns 200,...45.0
    Topic posted August 9, 2018 by Lukas RaymaekersRed Ribbon: 250+ Points, tagged Bots, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Custom API (CCS for chatbot) randomly returns 200, 404 or 500
    Summary:
    Custom API, a custom component service for chatbots, randomly returns 200, 404, 500
    Content:

    Hi,

     

    I'm currently working on some chatbot projects with two other people. In total we have five CCS APIs, three of which work fine. The other two return 200 most of the time, however, from time to time, they return 500 or 404. The two APIs seem to be both working and not working.

    I also tried to adapt a working implementation, but that one also returns 200 most of the time and 500s and 404s at random times.

    The error we get, when the CCS returns a 500, can be found in the code snippet. I also included a zipfile of the custom components implementation.

    If you need more information, please feel free to ask.

     

    Thanks in advance,

    Lukas

     

     

    Code Snippet:
    Document:
    UZA_CCS.zip (2.3MB)
  • Ameur Baccoucha
    System.ConditionExists Component25.0
    Topic posted August 9, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, tagged Bots, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    System.ConditionExists Component
    Summary:
    I am asking why this built-in component always pass to the exists action.
    Content:

    Here how i use it :

    conditionExists:
        component: "System.ConditionExists"
        properties:
          variable: "destinDate"
        transitions:
          actions:
            exists: "done"
            notexists: "askForTripType"

    Always it take the action of exists wich is "done"  here. this is my payload where the "destinDate"  variable is null but the component act like it's not. 

    "destinAir":"MIR",
    "user.botsUserError":false,
    "profile.locale":"fr-FR",
    "destinDate":null,
    "profile.timezoneOffset":-7200000,
    "tripType":null,
    "profile.firstName":"Ameur",
    "departAir":"CDG",
    "departDate":{  
       "date":1534582854109,
       "entityName":"DATE",
       "originalString":"08/18/2018"
    },
    "system.processedUserMessage":true
    },
    "currentDialogState":"done"

    Any idea please :( 

  • Asser
    Where is the user's data stored in the DB?15.0
    Topic posted August 1, 2018 by Asser Green Ribbon: 100+ Points, tagged Analytics, API, Facebook, Messaging, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Where is the user's data stored in the DB?
    Summary:
    I want to make a list of all users that have interacted with my bot, displaying their first name, last name etc.
    Content:
    I want to make a list of all users that have interacted with my bot, displaying their first name, last name etc. I want to get this data from the database.

    Info about the bot:
    My bot asks the user a few questions. After answering the questions, a custom field/property is set to true for that user.
     
    questionsend:
        component: "System.SetVariable"
        properties:
          variable: "questionsanswered"
          value: true
        transitions: {}
    save:
        component: "System.CopyVariables"
        properties:
          from: "questionsanswered"
          to: "user.questionsanswered"
        transitions: 
          return: "save"
    
    Now my question is: Where is all this data stored in the db?
     
    So far, I have found a conversation history in the BOTS schema, table BOTS_CONVERSATION_HISTORY_. 
    Here is the user's ID (under CHANNEL_USER_ID) but I can't find where it's linked to (no foreign key here, see attached image).
    I couldn't find any tables containing channel users, or all bot users in general (users interacting with bots, not users of the database).
    image1
     



     

    As I said, there's no foreign key or so that I could track it



    Where do I get the user's first name from the database? As in ${profile.firstName}. And where do I get the custom fields from? As in ${user.age}
        component: "System.CommonResponse"
        properties:
          metadata:
            responseItems:
            - type: "text"
              text: "Hey ${profile.firstName}!..."
    
  • Sunil Kumar
    How to pass authorization token to Rest Connector as header24.7
    Topic posted July 24, 2018 by Sunil KumarRed Ribbon: 250+ Points, tagged API, Bots, Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    How to pass authorization token to Rest Connector as header
    Content:

    Hi,

    Thank you community in advance, i am facing below issue followed documentation as well but no help.

    How to pass  AUTHORIZATION TOKEN as header to a Rest Connector (token got from calling another component) 

    1. I defined one Rest Connector (name - "UiPathAuthConnector") in MCS with Rest URL -->  "https/rest_url" (this is sample url just for ex)

    2. Now I created Api with 2 components

    • GetAuth Component (Post Call) -> In this component I am calling the connector & passing username & password in body(as it is post call) to get a token  
      var mobileSdk = conversation.mobileSdk;
       
      var body = {
      "tenancyName": "somevalue",
      "usernameOrEmailAddress": "somevalue",
      "password": "somevalue"
      }
       
       
      mobileSdk.connectors.post('UiPathAuthConnector', '/api/account/authenticate', body, { inType: 'json', versionToInvoke: '1.0' }).then(
      function (result) {
      //code to get the parse result & get authorization token (let it be authToken)
      }
    • GetRelease Component (Get Call) -> In this component i need to pass the authorization token (authToken got from previous step) as authorization header,
    I have tried following approach but getting error
    NOTE : I am able to do this using postman
     
    var headers = { "Authorization": `Bearer ${authToken}` };
    var mobileSdk = conversation.mobileSdk;
     
    mobileSdk.connectors.get('UiPathAuthConnector', '/odata/Releases', null, { inType: 'json', versionToInvoke: '1.0', externalAuthorization: `Bearer ${authToken}`}, { headers: headers }).then(
    function (result) {
    // after result code goes here
    }
     
     

    As you can see i have tried externalAuthorization(following -- https://docs.oracle.com/en/cloud/paas/mobile-cloud/mcsua/calling-apis-custom-code.html#GUID-5AC36DD5-1976-41A0-AEAF-DF32F60494D3 ) but still getting 401 authentication error.

    Please any help will be very useful

    Thanks in advance

     

  • Asser
    How to access an API without credentials?25.0
    Topic posted July 10, 2018 by Asser Green Ribbon: 100+ Points, tagged API, Bots, Facebook, OMCE, Tip in Application Development > Digital Assistant and Mobile public
    Title:
    How to access an API without credentials?
    Content:

    On OMCe I have made a backend, added an API, and set the endpoints. I have set the "Login Required" switch to "off" (see image api_1.png). I assume that with this it should not ask for Authorization headers, but it returns a 401 unauthorized response (see image api_2.png).

    When I add Authorization header and Oracle-Mobile-Backend-ID to the GET request, it works fine (see image api_3.png).

    Is it possible to make a simple GET request to the API without having to provide the credentials? OR, can I add the access token and backend ID as a query param?

    Image:
    Document:
    api_2.PNG (38KB)
    Document:
    api_3.PNG (39KB)
  • Asser
    Where do I find more info on the error logs?25.0
    Topic posted July 3, 2018 by Asser Green Ribbon: 100+ Points, tagged API, Bots, OMCE, Tip in Application Development > Digital Assistant and Mobile public
    Title:
    Where do I find more info on the error logs?
    Content:

    I have tried to make a backend/API on OMCe and put these custom components there, following som tutorials.
    Apparently I have some errors somewhere in the code according to the error message.
    However, I cannot find where the error is. I've looked on the suggested sections but the message is the same.
    For example, I see "The API invocation ended. We couldn't start a custom code container because of an uncaught exception. This typically happens because there's an error in the custom API implementation. To find the error, go to the Logs tab on the mobile backend's Diagnostics page. The Message Detail dialog box for the log message displays the module and line number where the error occurs. Fix the error and try again.", but when I go to Backend -> Diagnostics -> Logs tab, instead of a line number I find this exact message (see attachment).

    Is there any way I could get more details about the error? As it is very hard to fix it when I don't know where the error occurs.

    Image:
  • Grant Ronald
    Why QnA and How QnA15.0
    Topic posted July 2, 2018 by Grant RonaldSilver Medal: 2,000+ Points, tagged Bots, Conversational AI, Mobile, OMCE, Tip, Virtual Assistant in Application Development > Digital Assistant and Mobile public
    Title:
    Why QnA and How QnA
    Summary:
    You might find the new QnA features in Oracle Intelligent Bots as a welcome addition to your chatbot armory
    Content:

    One of the primary benefits of a chatbot is dealing with the "low-fidelity" interactions from your customers leaving your call center to deal with issues that need the human touch.  Frequently asked questions, by their very nature, are common questions that are simply looking for an answer.  "What are your opening times", "Can I overpay on my mortgage", "Do you serve gluten free pizzas".  The FAQs (or QnAs) often already exist, if you know where to find them, so why not bring them into your bot?

    You might therefore find the new QnA features in Oracle Intelligent Bots as a welcome addition to your chatbot armory.  This allow you to simply upload your existing QnA into a bot and any user input will automatically be searched within this document.  If the input matches a QnA the user will be presented with a carousel of related articles allowing them to view or browse related topics.

    https://youtu.be/LsAy1Qq5RRg - an introduction to QnA in Intelligent Bots

    https://youtu.be/L8dOznua_qg - how QnA works in Intelligent Bots.

    Would appreciate any feedback if this format of learning helps, and if so, other topics you would like covered.

    Video:
  • Vidhya Valantina Venkatesh
    OIC - OMCE Integration : No active Integrations found : Even...35.0
    Topic posted June 15, 2018 by Vidhya Valantina VenkateshSilver Medal: 2,000+ Points, tagged OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    OIC - OMCE Integration : No active Integrations found : Even though there are two integrations that are active in OIC
    Summary:
    OIC - OMCE Integration : No active Integrations found Error, when trying to create ICS Connector
    Content:

    While i am trying to integrate MCS with ICS using MCS out of box ICSConnector,as part configuring ICSConnector when testing i get this error.But actually in ICS i do have two  basic integration which uses SOAP Adapter as source and ACTIVATED.

    Any idea what could be the issue:

  • Vidhya Valantina Venkatesh
    Enable Single Sign-On from MCS to Oracle ERP Cloud via Azure...65.0
    Topic posted June 13, 2018 by Vidhya Valantina VenkateshSilver Medal: 2,000+ Points, tagged Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Enable Single Sign-On from MCS to Oracle ERP Cloud via Azure AD
    Summary:
    How to connect from MCS to Azure AD and perform SSO seamlessly from the mobile application in Oracle JET to Oracle ERP Cloud which is configured for SSO in Azure AD ?
    Content:

    Currently our client is using Azure AD for Single Sign-On for their cloud applications. We are to create a mobile application and use MCS as the MBaaS to connect to the ERP Cloud. We need some pointers on how to connect MCS to Azure AD to perform SSO?