RASA ALLWAY PREDICT NEXT ACTION IS FALLBACK ACTION

I have data like it . and after train . when i chat, bot allway return defaullt_fallback data.zip (2.6 KB)

I’m using Rasa 1.1.6

Please help me

Hi @dungpv,

It’s probably because of your stories. The first time you say hi, it has a story for that (in your case, utter_xin_chao) but the second time you say hi, it expects goi_bot and so the story doesn’t match. So, what you can do is remove it from story 1 like:

## story1
* xin_chao
   - utter_xin_chao
* goi_bot
   - utter_goi_bot
* bot_ngu
   - utter_bot_ngu

## becomes
* goi_bot
   - utter_goi_bot
* bot_ngu
   - utter_bot_ngu

Hope that helps.

thanks you !.

but when i typing following scenario like this

user: hi

bot: xin chao

user: bye

bot: fallback (correct must be ‘bye’)

How should config policy to bot can answer such

I’ll assume that bot_ngu is for bye so what you need is to make stories like this:

## bot_ngu
* bot_ngu
   - utter_bot_ngu

## goi_bot
* goi_bot
   - utter_goi_bot

## tam_biet
* tam_biet
   - utter_tam_biet

## xin_chao
* xin_chao
   - utter_xin_chao

Oh. i cant’ change this my story .

because these stories are entered by users therefore. i only want change policy

You should input more stories then. Having more stories will ensure that you’ll end up with your desired results.

The problem arises here because there isn’t enough data. With enough data, the problem should be solved.