How to force an intent through custom action after getting an input from user?

I need to force the intents through custom actions as I have to get numeric values for various intents. The core is only predicting the intial intent where numeric value is entered. Is there any solution to my problem? @juste @akelad

1 Like

Hi @heyitsayush,

could you provide a brief example of your desired functionality such that I can recommend something?

Regards Julian

1 Like

I need to get different prices for towing, rental, labor etc. The problem is when user enters only a numeric value, the prediction for the intent goes wrong as it always predicts get_towing and slots get wrongly filled plus the story flow is broken. Here is a small part of my story. Hope you’re able to get my problem @JulianGerhard

  • get_towing{“towing”: “10”}
    • slot{“towing”: “10”}
    • utter_rental
  • get_rental{“rental”: “7”}
    • slot{“rental”: “7”}
    • utter_labor
  • get_labor{“labor”: “21”}
    • utter_taxrate
  • get_taxrate{“taxrate”: “12%”}
    • slot{“taxrate”: “12%”}

Hi @heyitsayush,

got it - can you show me your slot_mappings please?

Regards Julian

1 Like

Hi @JulianGerhard I haven’t used slot_mappings as I’m very new to rasa and its functionalities. I’ve been trying to overcome the problem through stories and training. Is there any way to find a solution other than slot_mappings because I haven’t been using form?

Regards

@heyitsayush actually i think it would be best for you to merge those intents into one. Then you won’t have any more intent confusion, and you can still fill the slots correctly.

1 Like

Hi @akelad. I think its the best option. I can fill the slots through actions. Thanks for your help :slight_smile: