Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Don Querrer
    Call a custom component asynchronously from oBotML to...
    Topic posted October 16, 2018 by Don QuerrerGreen Ribbon: 100+ Points, tagged OMCE, Sync, Virtual Assistant 
    92 Views, 2 Comments
    Title:
    Call a custom component asynchronously from oBotML to prevent time-out
    Summary:
    Call a custom component asynchronously from oBotML to prevent time-out
    Content:
    Hello Gurus,
    I am currently working with Oracle MCE Bot service where I am calling a rest api via custom component.
    The problem is that the rest api I am calling sometimes responds more than a minute which made the chatbot to time-out.
     
    With that, my question is ---- Is there a way to call a custom component asynchronously from oBotML to prevent time-out?
     
    Thanks!

    Comment

     

    • Ameur Baccoucha

      i think it s not a good UX to display a message to the user after one minute so it will better to send some message meanwhile you call the rest api 
      Like "juste minute ", " we are preaparing the answer for you" .... 
      with this you can have a nice UX and you can keep your bot alive.
      you can do it using keepTurn 

      • Don Querrer

        Looks like when we provide a wait time response after a certain seconds while the rest api is still processing, the custom component terminates.