Posts

Posts

  • Filip Huysmans
    Where to store env info for a chatbotAnswered35.0
    Topic posted September 18, 2018 by Filip HuysmansRed Ribbon: 250+ Points, tagged Bots, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Where to store env info for a chatbot
    Summary:
    What is the best place to store environment information for a chatbot
    Content:

    Hello everyone,

    for our chatbot we need to store some dates and some keywords, which should be accessible to the custom components in MCS.

    We thought of storing a json file in the storage of MCS and then get access to it.  Is this a correct approach?  If so, which API should we use to get the content of the json file?  
    The idea was to be able to make changes to this file, without the need to redeploy the CCs in MCS.

     

    Thx in advance.

     

    Filip Huysmans

    Version:
    18.2.5
  • Abhishek Singh
    Failing to create connector to call CX Cloud REST api in MCS85.0
    Topic posted August 30, 2018 by Abhishek SinghRed Ribbon: 250+ Points, tagged Bots, Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Failing to create connector to call CX Cloud REST api in MCS
    Content:

    Hi ,

    I have to call cx cloud rest api having uri path  /ccadmin/v1/products , this api needs access_token which we get by calling /ccadmin/v1/login. I have tried creating connector for the products api but failing in it. I have tested other connector like openweathermap and other publicly available rest api where i am successful.

    Through cURL or node code i am able to call these apis, but i am looking for connector thing so that instead of writing node code in my custom component, i can simply call the connector in custom component.

    Here is the cURL thing

    curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Bearer app_secret_key" -d "grant_type=client_credentials" https://xyzyyyy.com/ccadmin/v1/login

      it returns access_token, pass this access_token to next api call

    curl -X GET -H "Authorization: Bearer access_token" https://xyzyyyy.com/ccadmin/v1/products

    My try:

    I have tried creating two connector one for each, but for /login i could not succeed, I had put all parameter in header. For /products it works well when i supply access_token manually to connector header parameter. But how can i create connector so that it fetches access_token from /login by itself

    Code Snippet:
  • Martin Jarvis
    Nominations are open for the 2018 Oracle Innovation Awards!5.0
    Topic posted June 6, 2018 by Martin JarvisSilver Medal: 2,000+ Points, tagged Bots, Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Nominations are open for the 2018 Oracle Innovation Awards!
    Summary:
    Your chance to be featured at Oracle OpenWorld and receive free admission.
    Content:

    Please visit https://www.oracle.com/corporate/awards/nominations/cloud-platform.html to find out more and submit your nominations.

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

  • Ameur Baccoucha
    Instant App Error35.0
    Topic posted June 6, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, tagged Bots, Conversational AI, Messaging, Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Instant App Error
    Summary:
    When i try to call my instant app in the chatbot i receive a error message which is "javaException:Schema specific part is opaque."
    Content:

    this is my YAML code :

    #########################

    startInterview:
        component: "System.SetVariable"
        properties:
          variable: "interviewInfo"
          value: "${iResult.value.entityMatches['NUMBER'][0]}"
      interactive:
        component: "System.Interactive"
        properties:
          sourceVariableList: "interviewInfo"
          variable: "outputMessage"
          id: "InstantAPP"
          prompt: "can you please authenticate"
        transitions: {}
      askInterviewInfo:
        component: "System.Text"
        properties:
          variable: "interviewInfo"
          prompt: "Please provide your interview informations"
        transitions: {}

    ########################

  • Geetha Devi
    how to print the values form custom component as a link in...9
    Topic posted October 18, 2019 by Geetha DeviBlue Ribbon: 750+ Points, tagged API, Bots, Conversational AI, Messaging, Mobile, OMCE, Slack, Virtual Assistant, VPA, WeChat in Application Development > Digital Assistant and Mobile public
    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: