RASA ALLWAY PREDICT NEXT ACTION IS FALLBACK ACTION - Rasa Open Source - Rasa Community Forum

RASA ALLWAY PREDICT NEXT ACTION IS FALLBACK ACTION

post by dungpv on Jul 16, 2019

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

post by lahsuk on Jul 17, 2019

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.

post by dungpv on Jul 17, 2019

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

post by lahsuk on Jul 17, 2019

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

post by dungpv on Jul 17, 2019

Oh. i cant’ change this my story.

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

post by lahsuk on Jul 17, 2019

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.