API Management

Get Involved. Join the Conversation.

Topic

    Geetha Devi
    How system.intent work based on user input in ODA?
    Topic posted October 29, 2019 by Geetha DeviBlue Ribbon: 750+ Points, tagged Analytics, API Catalog, API Platform, Apiary, APIs, Autonomous API Platform, Design, Gateways, Integration, Microservice, Security, Tip 
    6 Views
    Title:
    How system.intent work based on user input in ODA?
    Summary:
    system intent is not working based on the user input
    Content:

    System intent "TimeExpenseCount"  based on utterances.here user input  "jd" not in utterances but  it invoking the intent "TimeExpenseCount"

    below is  OBOTML

    states:
      intent:
        component: "System.Intent"
        properties:
          variable: "iResult"
          translate:
          daIntercept: "always"
        transitions:
          actions:       
            Wel: "welcome"
            TimeExpenseCount: "printdata"
           
            ViewTimeProjhours : "getTimePrjhrs"
            unresolvedIntent: "unresolved"
            ViewUserExpenses: "getExpense"
            VeiwTimeCard: "typeprompt"      
       
        
          
    ####################################################################################################################
    # Welcome intent - provide user selection
    ################################################################################################################ 
      welcome:
        component: "System.Text"
        properties:
          prompt: "Hi ${profile.firstName},\nHow can I help you ?"
          variable: "words"
        transitions: {}

    ####################################################################################################################
    # Time & Expense count ################################################################################################################
             
      getTimeExpenseCount:
        component: "getTimeExpenseCount"
        properties:
          timecardcount: "timecardcount"
          expcount: "expcount"
          person_id: "person_id"

      printdata:
        component: "System.List"
        properties:
          options: "Timecard details,Expense Items"
          prompt: "You have ${expcount} Expenses,${timecardcount} Saved Time Cards"
          variable: "choice"
          nlpResultVariable: "iresult"   
      Contimechoice:
        component: "System.ConditionEquals"
        properties:
          source: "${choice}"
          value: "Timecard details"
        transitions:
          actions:
            equal:  "getTime"
            notequal: "Contexpchoice"
            

     

     

     

     

    Image:
    Document: