Dialog flow default fall back

204 views Asked by At

Hello So I am creating a chat bot with two language, A is supported and B is not supported(I used A and B so it will be easier to read) and the issues is I want to have default fall back for both but when I type random word for B it always call the default fallback of A. I also tried create a normal intent and name it fallback for B and add some phrase and it work but when I type random word for A it call the fallback of B. Is there any work around for the issues? Would appreciate any answer :)

1

There are 1 answers

6
jacobytes On BEST ANSWER

I'm afraid there won't be a good work around for this as Dialogflow works with one NLP model per language. By trying to fit two languages into one model, you are creating a difficult scenario. The fallback intents are meant as a safety net in case of unrecognized input for the language of the NLP model, your second languages will always end up in the fallback intent as it is unrecognized input for the first language.

Yes you could create a custom fallback intent by entering words manually, but this isn't a valid solution since you cant fit every word of a language into an intent. So you will end up with certain words of the second language going into the custom fallback and some not.

In general it isn't recommended to fit two languages in a NLP model, so my recommendation would be to drop the unsupported language and wait for it to become supported, this will give you the best bot and experience.

If you would really need the second language, one thing you could try is add another supported language that you won't be using and train that on words of your unsupported language. Note: This NLP model will be very restricted in its features as it will only respond to the words you trained it to, build in entities won't work as your language is still unsupported, but it allows you to do some work with an unsupported language, but again, it will be very limited.