Comments

  • 1-3 of 3
  • Laban Ndwaru

    Hi Bill,

    You may try to explore the OIC ATP adapter, create a connector on your custom component to OIC.

    Check this blog > https://blogs.oracle.com/integration/oic-integration-with-oracleatp

     

     

  • Laban Ndwaru

    Hi Kranthi,

    Consider reviewing your code, because error code;

    404- The server has not found anything matching the Request-URI

    400-  Bad request due to syntax error i presume.

    I suggest you go through the advanced bot training tutorials which well document the creation of a custom component.

    Laban.

  • Laban Ndwaru

    Hello Dejan,

    As Frank mentioned, you have two options, reset the iresult variable or set keepTurn: false,

    Here is a working code with where the iresult variable is reset.

    metadata:
      platformVersion: 1.0
    main: true
    name: "LNCommunityTest"
    context:
      variables:
        Options: "Options"
        iresult: "nlpresult"
    states:
      Intent:
        component: "System.Intent"
        properties:
          variable: "iresult"
        transitions:
          next: "start"
          actions:
            Start: "start"
            Stop: "stop"
            
     ###############################################
      start:
        component: "System.List"
        properties:
          options: "${Options.type.enumValues}"
          prompt: "Please choose an option?"
          variable: "Options"
        transitions:
          next: "conditionEquals"
      conditionEquals:
        component: "System.ConditionEquals"
        properties:
          source: "${Options.value}"
          value: "Option 2"
        transitions:
          actions:
            equal: "done"
            notequal: "stop"   
     

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

      done:
        component: "System.Output"
        properties:
          text: "You have chosen ${Options.value}."
        transitions:
          return: "iresult"
    ##############################################  


      stop:
        component: "System.Output"
        properties:
          text: "You have stopped the dialog flow."
        transitions:
          next: "iresultReset"

    #####Reset the iresult value #############
      iresultReset:
        component: "System.ResetVariables"
        properties:
          variableList: "iResult"
        transitions:
          next: "start"  
          
          
          
         More tips: try to avoid "transition: {}", instead have a next state.

    Laban.