question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

External events and reminders should trigger intents instead of actions

See original GitHub issue

Description of Problem: Reminders and external events always trigger actions, which contradicts the logic that actions should be unambiguously predictable from the dialog history and present intent. For example, in the use case where a reminder is used to have the bot initiate chitchat, this makes stories unlearnable.

Overview of the Solution: External events and reminders should trigger intents, not actions, since intents are the things that are out of our control and actions should be deterministic. Now that we have a mapping policy, this has no drawbacks.

For some applications and backwards compatibility, triggering actions should still be possible, so both options have to be available.

Examples (if relevant): If we want to set a reminder to have the bot initiate chitchat, we would now trigger the intent, say, EXT_remind_share_me, which is linked to the action utter_share_me via the MappingPolicy. This results in stories of the form

* EXT_remind_share
  - utter_share_me
* general_confirm
...

which can be learned and are readable.

Definition of Done:

  • Tests are added
  • Feature described in the docs
  • Feature mentioned in the changelog

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
akeladcommented, Nov 12, 2019

@JEM-Mosig my initial thought is can we call the WorldMessaged something more intuitive? E.g. ExternalEvent or something - not sure if that’s the right one either, but WorldMessaged sounds a bit weird to me

0reactions
wochingecommented, Dec 9, 2019

Summary of call

  • No external event class
  • Endpoint POST "/conversations/<conversation_id>/trigger/<intent>"
  • is_external metadata for these events (Rasa X UI can hide them then)

@tmbo We would create a new endpoint to trigger intents. We could also

  • use the rest inputchannel, but it would be weird to send the output of the actions to a different user and to set the is_external metadata
  • use the appendEvents endpoint, but that doesn’t trigger prediction .

Is that ok?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reaching Out to the User - Rasa
External Events and Reminders don't work in request-response channels like ... The reminder name will be used later as an intent to trigger...
Read more >
Intent - Android Developers
Broadcast Action: External media is present, and being disk-checked The path to the mount point for the checking media is contained in the...
Read more >
Unable to receive android.intent.action.EVENT_REMINDER ...
EVENT_REMINDER" work by specifying DataAuthority and DataScheme in your intent filter along with your intent action.You need to specify DataAuthority as ...
Read more >
Skill Events in Alexa Skills - Amazon Developer
You must set up your skill to prompt the customer to grant the appropriate permissions. · Your skill manifest must include an events...
Read more >
Events: The Essentials - AppSheet Help
Events generated due to an app action or as a result of data change due to an API call will fire without any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found