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

**URL:** <https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400>\
**Category:** Rasa Open Source\
**Created:** [October 4, 2019, 12:15pm UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400 "2019-10-04T12:15:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![heyitsayush](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@heyitsayush](https://forum.rasa.com/u/heyitsayush)\
**Post date:** [October 4, 2019, 12:15pm UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/1 "2019-10-04T12:15:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [October 4, 2019, 1:10pm UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/2 "2019-10-04T13:10:14Z")

</div>

Hi @heyitsayush,

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

Regards Julian

---

<div class="post-metadata">

**Author:** ![heyitsayush](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@heyitsayush](https://forum.rasa.com/u/heyitsayush)\
**Post date:** [October 4, 2019, 1:47pm UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/3 "2019-10-04T13:47:14Z")

</div>

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%”}

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [October 4, 2019, 1:48pm UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/4 "2019-10-04T13:48:37Z")

</div>

Hi @heyitsayush,

got it - can you show me your slot\_mappings please?

Regards Julian

---

<div class="post-metadata">

**Author:** ![heyitsayush](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@heyitsayush](https://forum.rasa.com/u/heyitsayush)\
**Post date:** [October 4, 2019, 1:58pm UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/5 "2019-10-04T13:58:55Z")

</div>

Hi @JulianGerhardI 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

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 9, 2019, 11:35am UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/6 "2019-10-09T11:35:28Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![heyitsayush](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@heyitsayush](https://forum.rasa.com/u/heyitsayush)\
**Post date:** [October 9, 2019, 11:43am UTC](https://forum.rasa.com/t/how-to-force-an-intent-through-custom-action-after-getting-an-input-from-user/18400/7 "2019-10-09T11:43:13Z")

</div>

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