Posts

Posts

  • Abhishek Singh
    I do not see QnA component in my Bot builder in MCS7
    Topic posted September 16, 2018 by Abhishek SinghRed Ribbon: 250+ Points, tagged Bots, Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    I do not see QnA component in my Bot builder in MCS
    Content:

    Hello,

    I have gone through videos of Grant and documentation of QnA https://docs.oracle.com/en/cloud/paas/mobile-autonomous-cloud/use-chatbot/q1.html#GUID-95176412-CBB4-49D5-80F5-6ABE6CFA9931

    But i am not seeing such thing to enable QnA component.

    Where can find it to enable and upload my csv qna file?

    Thanks,

    Abhishek

    Image:
  • Abhishek Singh
    postback action is not getting triggered on MessageModel...Answered7
    Topic posted September 9, 2018 by Abhishek SinghRed Ribbon: 250+ Points, tagged Bots, Mobile, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    postback action is not getting triggered on MessageModel cards
    Content:

    In my custom component, i am calling one rest api to fetch the data and then putting into cards with actions on each card (no global action) but i am clicking on any card, it is not triggering any action button and simply moving to next state. i.e. it is supposed to call my custom component where i am handling if postback/ textReceived things as it has been described in "cmmcards" sample by Frank, but in my case it is not getting called.

    Not able to figure out why it is not getting triggerd? I have integrated "cmmcardssample" by frank, which is working fine but not mine.

    Image:
    Code Snippet:
  • Abhishek Singh
    Image is not getting displayed in my chatbot while using...4
    Topic posted September 4, 2018 by Abhishek SinghRed Ribbon: 250+ Points, tagged Bots, Conversational AI, Messaging, Mobile, OMCE, Virtual Assistant in Application Development > Digital Assistant and Mobile public
    Title:
    Image is not getting displayed in my chatbot while using carbObject of MessageModel
    Summary:
    I am trying to show the product images in chatbot from CX cloud instance via messageModel.
    Content:

    I am passing all the paramters to the cardObject of messageModel inlcuding imageUrl. Other things are coming fine like Title, description, action(null).. but image is not displaying in responses from chatbot.

    I observed that when i am trying to browse the image in browser via the image url (copying from json response) it is throwing error as below

    {

    • "errorCode": "00001000",
    • "message": "The user is not authenticated.",
    • "status": "401"

    }

    In cardObject, i am providing the details  of product from CX Cloud  instance. Is it that to fetch the image, i have to provide further authentication, if so, how can we pass into cardObject or any way to get the image dispalyed in chatbot?

     

    Version:
    latest
    Image:
    Code Snippet:
  • 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:
  • Ameur Baccoucha
    Date in french format (dd / mm / yyyy)Answered4
    Topic posted August 24, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, tagged Bots, Conversational AI, OMCE in Application Development > Digital Assistant and Mobile public
    Title:
    Date in french format (dd / mm / yyyy)
    Summary:
    the bot can not understand the french format (dd / mm / yyyy) and transforms it into english format (mm / dd / yyyy).
    Content:

    exp1:
    entry : 10/12/2018 (dd / mm / yyyy)
    storage date: 12/10/2018 (mm / dd / yyyy)

    exp2:

    entry : 28/09/2018 (dd / mm / yyyy)
    storage date: Sep 20 2018 (different one)

  • 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