You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

digital assistant System.DetectLanguage

edited Jul 22, 2019 2:00PM in Digital Assistant & Mobile 1 comment

Summary

the built-in component System.DetectLanguage doesn't work

Content

I tried to use ( System.DetectLanguage )  component but it doesn't work at all and it always goes to systemDefaultErrorHandler wherever I put it, it stops my chatbot and because of that, I couldn't run the Configure the dialog flow for multi-language for QNA.

Code Snippet

#metadata: information about the flow
#  platformVersion: the version of the bots platform that this flow was written to work with 
metadata:
  platformVersion: "1.0"
main: true
name: PizzaKing

context:

  variables:
  
    iResult: "nlpresult"
    
    pizzaSize: "PizzaSize"
    
    pizzaTopping: "PizzaTopping"
    
    deliveryTime: "TIME"
    
    pizzaOrderMsg: "string"
    
    translated: "string"
    autoTranslate: "boolean"


states:


  setAutoTranslate:
      component: "System.SetVariable"
     

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!