How do you break out of action_listen, when it comes to the external trigger?

Hello there,

I do have a custom action, which may (depending if certain conditions are met) set a reminder with certain cooldown (for example 60 seconds). This reminder is being called by an external service (https://myrasainstance/conversations/<converation_id>/trigger_intent with POST parameter {“name”: “EXTERNAL_reminder”}).

I am using a RulePolicy, so its set in rules.yml as following:

  • rule: react to reminder steps:
    • intent: EXTERNAL_reminder
    • action: action_quiz

When the conversation is like this, its working flawlessly:

  1. bot message
  2. user message
  3. bot message (ending with FollowupAction(“action_listen”)) + setting reminder as described above
  4. user message
  5. reminder is being called + the response is sent to user

However, the conversation flow might be following:

  1. bot message
  2. user message
  3. bot message (ending with FollowupAction(“action_listen”)) + setting reminder as described above
  4. reminder is being called, nothing is sent to user

In such scenario, the 4) reminder isnt actually triggering the action_quiz as it should, cause apparently the “action_listen” is predicted with 1.0 confidence. So its silently appended to the TrackerStore, but there is no response from bot, even tho it should remind the user as RulePolicy says (it works well in another scenarios, just this last one - without user input isnt working correctly.

Could you please guide me how to jump from the action_listen, or solve this?

Thanks a lot!

@usernamedidnotfi Hello and welcome to our community :bouquet:

Please ref this rasa GitHub repo : https://github.com/RasaHQ/rasa/tree/main/examples/reminderbot Hope this will help you.