# Rest responses are different from "shell"

**URL:** <https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187>\
**Category:** Rasa Open Source\
**Created:** [August 10, 2019, 9:47pm UTC](https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187 "2019-08-10T21:47:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmlapteacru](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dmlapteacru](https://forum.rasa.com/u/dmlapteacru)\
**Post date:** [August 10, 2019, 9:47pm UTC](https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187/1 "2019-08-10T21:47:10Z")

</div>

I am using the same conversation scenario in “rasa shell” and “rest” requests, but the responses are different.

**Shell:**

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/bc5bf7d72388de029d11ffafc1028c047df9fdb6.png)

**Rest:**

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/5836724e873613dc03f174f91af99bbbe32cbd53.png)

Help please. Where should I look? What to check? Any thoughts?

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [August 12, 2019, 9:49am UTC](https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187/2 "2019-08-12T09:49:29Z")

</div>

hi @dmlapteacru ! hmm that does sound strange. Can you please run rasa with `--debug` switched on? hopefully that tells us what’s happening.

are you definitely having the exact same conversation (same messages in same order) in both cases?

---

<div class="post-metadata">

**Author:** ![dmlapteacru](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dmlapteacru](https://forum.rasa.com/u/dmlapteacru)\
**Post date:** [August 12, 2019, 7:11pm UTC](https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187/3 "2019-08-12T19:11:38Z")

</div>

@amn41 Thanks for responding, I have increased the epochs in KerasPolicy and changed the intents name to the unique ones like uuid (cause the only who needs to trigger them its me, not the user) and now there are the same results.

But I am running in a issue where I get the Fallback policy response, even when the confidence is 1.0 and filling the entity.

Message:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c9ce94d82f6c6b92470036ac42f5e901bc810826.png)

Debug:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f6471f76173f3542fa519c248de52b4061e3b26c.png)

Settings: ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f59475394957224d23ee7bf728911829cbcaa38c.png)

Any help on this please?

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [August 14, 2019, 5:43am UTC](https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187/4 "2019-08-14T05:43:12Z")

</div>

the debug log mentions that the keras policy predicted an `action_listen` right after a user message, which would mean that nothiing happens. To prevent that, the fallback action kicks in. So the problem is that the Keras policy is predicting `action_listen` with high confidence. Can you think of anything in your stories that might cause it to predict that?

---

<div class="post-metadata">

**Author:** ![dmlapteacru](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dmlapteacru](https://forum.rasa.com/u/dmlapteacru)\
**Post date:** [August 14, 2019, 12:55pm UTC](https://forum.rasa.com/t/rest-responses-are-different-from-shell/14187/5 "2019-08-14T12:55:30Z")

</div>

@amn41 There is no data in that intent. It is just ##intent:save\_token, I use it to save token for user, so I can use it for backend requests. Would be great you to look into what I have done, I would describe the purpose of the bot and I would listen the better approaches from you than I used 🙂 But I know you have a lot of work…You guys are doing a great job.
