# Bot does not recognize intent when using botfront widget

**URL:** <https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782>\
**Category:** Rasa Open Source\
**Created:** [December 7, 2020, 11:44am UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782 "2020-12-07T11:44:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![saniko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saniko/32/11132_2.png) [@saniko](https://forum.rasa.com/u/saniko)\
**Post date:** [December 7, 2020, 11:44am UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/1 "2020-12-07T11:44:36Z")

</div>

Hello, I’m using the default configuration from rasa 2.0 init command. I have configured a rule to welcome my users, using the frontbot web chat plugin:

- rule: welcome user conversation\_start: true  
steps:
  - intent: get\_started
  - action: utter\_welcome

In config.yml:

policies:

- name: MemoizationPolicy
- name: TEDPolicy max\_history: 5 epochs: 100
- name: RulePolicy

This is the default story I’m using:

- story: sad path 1 steps:
  - intent: greet
  - action: utter\_greet
  - intent: mood\_unhappy
  - action: action\_joke
  - action: utter\_did\_that\_help
  - intent: affirm
  - action: utter\_happy

Once I run in the browser, I see the welcome message, then I respond with “hi”, In debug mode I see that the " - intent: greet" is running but then I get the: rasa.core.policies.rule\_policy - There is no applicable rule. So action\_joke never fires.

If I run rasa shell in the command line, all works fine.

Saw this bug, maybe it relates:

> [@Contradicting rules or stories found](http://forum.rasa.com/t/contradicting-rules-or-stories-found/36563/31):
>
> Hi @ngtiendong, welcome to the forum slight_smile When you say “I have the same issue”, do you mean that you are also setting initial\_value of some slot in your domain while also using conversation\_start: true for some of your rules? If yes, then [the fixing PR](https://github.com/RasaHQ/rasa/pull/7235) should help for the time being. If what you mean is that you’re just getting the same error as @noman, then could you, please, share your rules and stories (at least the ones mentioned in the error message), and possibly also your doma…

Thanks

---

<div class="post-metadata">

**Author:** ![SamS](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sams/32/3497_2.png) [@SamS](https://forum.rasa.com/u/SamS)\
**Post date:** [December 7, 2020, 11:56am UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/2 "2020-12-07T11:56:00Z")

</div>

Hey @saniko, I’ve got a few questions just so I understand you fully:

> Once I run in the browser, I see the welcome message

What interface do you mean by “in the browser”? Is this in Rasa X or in some 3rd-party interface (you mention you use a plugin…). Secondly, what do you mean by “welcome message”? Do you mean the response defined for `utter_welcome`?

> " - intent: greet" is running but then I get the: rasa.core.policies.rule\_policy - There is no applicable rule. So action\_joke never fires.

Sorry, here you lost me. What is the exact sequence of intents and responses here? From your story I can’t easily see how `action_joke` relates to the `greet` intent…

---

<div class="post-metadata">

**Author:** ![saniko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saniko/32/11132_2.png) [@saniko](https://forum.rasa.com/u/saniko)\
**Post date:** [December 7, 2020, 12:39pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/3 "2020-12-07T12:39:02Z")

</div>

Well… I don’t know what to say, all is working now, I have removed the \* name: RulePolicy from policies.

Can you please say why it may cause issues?

---

<div class="post-metadata">

**Author:** ![SamS](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sams/32/3497_2.png) [@SamS](https://forum.rasa.com/u/SamS)\
**Post date:** [December 7, 2020, 1:43pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/4 "2020-12-07T13:43:19Z")

</div>

Well, it’s good that everything’s working now!

However, I still don’t fully understand the context: There was an issue related to RulePolicy that would only surface in some browser interface but not in `rasa shell`, right? What interface are we talking about? My guess is that it must have been something with the interface breaking things, but I also want to make sure that it isn’t some bug inside Rasa that could remain unfixed. As for your fix, you say you removed `* name: RulePolicy` from the config. What is the meaning of the `*` here? And after removing that, do you still have RulePolicy in your config, or did you remove it altogether? Because if you have some rules, you will surely need RulePolicy…

---

<div class="post-metadata">

**Author:** ![saniko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saniko/32/11132_2.png) [@saniko](https://forum.rasa.com/u/saniko)\
**Post date:** [December 7, 2020, 2:40pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/5 "2020-12-07T14:40:51Z")

</div>

I’m using the botfront webchat widget:

> **[GitHub - botfront/rasa-webchat: A feature-rich chat widget for Rasa and Botfront](https://github.com/botfront/rasa-webchat)**
>
> A feature-rich chat widget for Rasa and Botfront. Contribute to botfront/rasa-webchat development by creating an account on GitHub.

I have configured the widget property for activating the initial message to the user, initPayload: “/get\_started” and configured the related rule under rules.yml file:

- rule: welcome user conversation\_start: true # this rule only applies at the beginning of a conversation steps:
  - intent: get\_started
  - action: utter\_welcome

For some reason, the bot got stuck after the initial greeting until I removed the RulePolicy

policies:

- name: MemoizationPolicy
- name: TEDPolicy max\_history: 5 epochs: 100
- name: RulePolicy \<\<---- this was removed

as for the “\*” that was just copy/paste.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![b-quachtran](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@b-quachtran](https://forum.rasa.com/u/b-quachtran)\
**Post date:** [December 7, 2020, 5:11pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/6 "2020-12-07T17:11:53Z")

</div>

Hi @saniko, could you share the full traceback when you ran Rasa in debug mode and saw the `rasa.core.policies.rule_policy - There is no applicable rule` message?

---

<div class="post-metadata">

**Author:** ![saniko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saniko/32/11132_2.png) [@saniko](https://forum.rasa.com/u/saniko)\
**Post date:** [December 7, 2020, 6:15pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/7 "2020-12-07T18:15:30Z")

</div>

I don’t see this message: rasa.core.policies.rule\_policy - There is no applicable rule

---

<div class="post-metadata">

**Author:** ![b-quachtran](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@b-quachtran](https://forum.rasa.com/u/b-quachtran)\
**Post date:** [December 7, 2020, 8:57pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/8 "2020-12-07T20:57:45Z")

</div>

@saniko I saw that you mentioned this log message in the original post. What happens when you train with the RulePolicy configured and test using Botfront?

---

<div class="post-metadata">

**Author:** ![saniko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saniko/32/11132_2.png) [@saniko](https://forum.rasa.com/u/saniko)\
**Post date:** [December 8, 2020, 8:47am UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/9 "2020-12-08T08:47:59Z")

</div>

Hi Ben, I have tested this again with the RulePolicy, and it seems to work fine now, I know it sounded crazy but it didn’t yesterday 🙂 and I did get the rasa.core.policies.rule\_policy - There is no applicable rule message in the terminal.

I will continue developing this bot and if I will see it again, I will report.

---

<div class="post-metadata">

**Author:** ![antoniojpprado](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/antoniojpprado/32/15029_2.png) [@antoniojpprado](https://forum.rasa.com/u/antoniojpprado)\
**Post date:** [May 21, 2021, 2:24pm UTC](https://forum.rasa.com/t/bot-does-not-recognize-intent-when-using-botfront-widget/37782/10 "2021-05-21T14:24:14Z")

</div>

Olá!

Está tendo sucesso com a utilização do Botfront ?
