Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Ameur Baccoucha
    QnA componentAnswered
    Topic posted September 19, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, last edited September 25, 2018 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged Bots, Conversational AI, Messaging, Mobile, OMCE, Tip 
    253 Views, 10 Comments
    Title:
    QnA component
    Summary:
    i want to cretae a bot only using System.QnA component to make my bot reply to some question.
    Content:

    i want to build a sample of a Q&A bot. i created the bot and uploaded the csv file and every thing is ok but one i am using the bot tester i always get a response from the unresolved state. here my OBotML code: 

    metadata:
      platformVersion: 1.0
    main: true
    name: QnA_Bot
    context:
      variables:
    states:   
      qna:
        component: "System.QnA"
        transitions:
          actions:
            none: "unresolved"
          next: "qna"
      unresolved:
        component: "System.Output"
        properties:
          text: "Sorry, I did not find any match. Can you rephrase the question?"
        transitions:
          return: "unresolved"
      

    any idea please? 

    thank you 

    Ameur

    Best Comment

    Grant Ronald

    You need to go back and check the documentation  - the system.Intent should have actions which are the intents in resolves to - one of those actions should be QnA

    and its this that "navigates" to the qna state - the only reason you are navigating to the qna state is because the dialog flow is executing top to botton and qna is the next state regardless.

     

    Comment

     

    • Ameur Baccoucha

      i used the System.Intent component and i get same result sad

      metadata:
        platformVersion: 1.0
      main: true
      name: QnA_Bot
      context:
        variables:
          iResult: "nlpresult"
      states:
        intent:
          component: "System.Intent"
          properties:
            variable: "iResult"
            confidenceThreshold: 0.4
            qnaEnable: true
        qna:
          component: "System.QnA"
          transitions:
            actions:
              none: "unresolved"
        unresolved:
          component: "System.Output"
          properties:
            text: "Sorry, I did not find any match. Can you rephrase the question?"
          transitions:
            return: "unresolved"
        

    • Grant Ronald

      You need to go back and check the documentation  - the system.Intent should have actions which are the intents in resolves to - one of those actions should be QnA

      and its this that "navigates" to the qna state - the only reason you are navigating to the qna state is because the dialog flow is executing top to botton and qna is the next state regardless.

       

      • Ameur Baccoucha

        i added the transitions action to the system.Intent but always i am navigating to the unresolved state  
        what is the probleme ?

        metadata:
          platformVersion: 1.0
        main: true
        name: QnA_Bot
        context:
          variables:
            iResult: "nlpresult"
        states:
          intent:
            component: "System.Intent"
            properties:
              variable: "iResult"
              confidenceThreshold: 0.4
              qnaEnable: true
            transitions:
              actions:
                qna: "qna"
                unresolvedIntent: "unresolved"
          qna:
            component: "System.QnA"
            transitions:
              actions:
                none: "unresolved"
          unresolved:
            component: "System.Output"
            properties:
              text: "Sorry, I did not find any match. Can you rephrase the question?"
            transitions:
              return: "unresolved"
          

    • Grant Ronald

      Your QnA should also probably have

          transitions:
            actions:
              none: "unresolved"
            next: "intent"

      However the next thing to establish is whether you trained the bot?  What question are you inputing - does it appear in the QnA?  Do you have any intents?

      • subhajit saha

        hello Grant,

        I am getting same problem with my skill. please help me out 

        *********************************************************************************************

        states:
          intent:
            component: "System.Intent"
            properties:
              variable: "iResult"
              qnaEnable: true
              qnaUseResult: true
              ##qnaMinimumMatch: "50%,25%"
              optionsQnaLabel: "Check Our FAQ"
              optionsPrompt: "Hey. I was not sure"
              qnaSkipIfIntentFound: false
            transitions:
              actions:
                qna: "qna"
                unresolvedIntent: "unresolved"
          qna:
            component: "System.QnA"
            transitions:
              actions:
                none: "unresolved"
              next: "intent" 
              
          unresolved:
            component: "System.Output"
            properties:
              text: "Sorry, I did not find any match. Can you rephrase the question?"
            transitions:
               return: "unresolved"

        *****************************************************************************************************************************************

    • Ameur Baccoucha

      i added also the next transtion but nothing changed

      states:
        intent:
          component: "System.Intent"
          properties:
            variable: "iResult"
            confidenceThreshold: 0.4
            qnaEnable: true
          transitions:
            actions:
              qna: "qna"
              unresolvedIntent: "unresolved"
        qna:
          component: "System.QnA"
          transitions:
            actions:
              none: "unresolved"
            next: "qna" 

       and yes i did trained the bot and  i give like input a question that appear in the QnA.

      and i have no intent !!

       

    • Grant Ronald

      do you want to export and email me your bot? my firstname dot lastname at Oracle dot com

    • Grant Ronald

      fixed it and sent it back to you

      • Ameur Baccoucha

        i imported the bot that you send to me but it doesn't work 
        also i just copied your dialog flow in my my bot but i get "Oops I'm encountering a spot of trouble. Please try again later..." msg