# Make the bot predict exact action

**URL:** <https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925>\
**Category:** Rasa Open Source\
**Created:** [November 24, 2018, 7:41pm UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925 "2018-11-24T19:41:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noarah](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@Noarah](https://forum.rasa.com/u/Noarah)\
**Post date:** [November 24, 2018, 7:41pm UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/1 "2018-11-24T19:41:35Z")

</div>

I use both rasa nlu & core to build my bot but the issue is the bot predict wrong custom action

my domain:

intents: -inform

entities:

- news

slots: news: type: text

actions:

- action\_tech
- action\_sports
- action\_general
- action\_business
- action\_sci

the context is like that when the user say " tell me news about technology" the action should be action\_tech but predict another action

the entity and the value of the input is technology

what should I do for training ? any advises?

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [November 27, 2018, 8:06am UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/2 "2018-11-27T08:06:10Z")

</div>

Hi @Noarah! What stories and NLU examples do you train on?

It’s important that like the one you have in mind is in the training data. So for example, an intent `ask_technology` followed by `action_tech`. You should aim to have a number of examples in your NLU training data for the intent `ask_technology`.

---

<div class="post-metadata">

**Author:** ![Noarah](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@Noarah](https://forum.rasa.com/u/Noarah)\
**Post date:** [November 27, 2018, 8:28am UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/3 "2018-11-27T08:28:36Z")

</div>

Hi @ricwo thanks for reply. I make another topic that have my stories example [Improve my custom actions prediction](http://forum.rasa.com/t/improve-my-custom-actions-prediction/2969?u=noarah)

For nlu data I use intent called inform\_news and slot “news” with value Technology Ex: tell me news about [Technology] ( news )

---

<div class="post-metadata">

**Author:** ![Noarah](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@Noarah](https://forum.rasa.com/u/Noarah)\
**Post date:** [November 27, 2018, 8:33am UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/4 "2018-11-27T08:33:58Z")

</div>

Should I make several intents for Technology, business,… etc ?

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [November 27, 2018, 9:24am UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/5 "2018-11-27T09:24:14Z")

</div>

Hi @Noarah you need several examples for the intent `inform_news` - aim for something like a dozen or even more. A few of these examples should contain the value `technology` value for the entity `news`

---

<div class="post-metadata">

**Author:** ![Noarah](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@Noarah](https://forum.rasa.com/u/Noarah)\
**Post date:** [November 27, 2018, 9:42am UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/6 "2018-11-27T09:42:52Z")

</div>

I have maybe 25 examples with values Technology, business, general, science and sports. So I’ll add more examples. I thought the issue is with my stories but I’ll reconsider adding nlu data and try.

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [November 27, 2018, 9:59am UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/7 "2018-11-27T09:59:11Z")

</div>

Yes there could also an issue with your stories. it might be helpful in the beginning to train on shorter stories and work your way up to complicated ones like the one you posted. If you want your bot to go to action tech at the beginning just try training on shorter stories

---

<div class="post-metadata">

**Author:** ![Noarah](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@Noarah](https://forum.rasa.com/u/Noarah)\
**Post date:** [November 27, 2018, 10:56pm UTC](https://forum.rasa.com/t/make-the-bot-predict-exact-action/2925/8 "2018-11-27T22:56:54Z")

</div>

I slove it by changing my news api request url to pass a slot and make just one action like weather bot tutorial
