Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let external events and reminders trigger intents #4964

Merged
merged 153 commits into from
Jan 22, 2020
Merged

Conversation

JEM-Mosig
Copy link
Contributor

@JEM-Mosig JEM-Mosig commented Dec 12, 2019

Proposed changes:

  • Fixes External events and reminders should trigger intents instead of actions #4464
  • Adds a new endpoint /conversations/<conversation_id>/inject-intent, which injects a user message with given intent and entities into the conversation
  • Old endpoint /conversations/<conversation_id>/execute now triggers deprecation warning
  • Reminders now inject intents instead of triggering actions
  • Injected intents have metadata "is_external": True

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)
  • decided if we go with "inject" or refactor otherwise
  • update Rasa-SDK for new Reminder* events

@JEM-Mosig JEM-Mosig added type:discussion 👨‍👧‍👦 Early stage of an idea or validation of thoughts. Should NOT be closed by PR. type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR labels Dec 12, 2019
@JEM-Mosig JEM-Mosig marked this pull request as ready for review December 12, 2019 16:21
@akelad akelad removed their request for review December 13, 2019 09:55
@JEM-Mosig
Copy link
Contributor Author

How do we synchronize the release of this feature in rasa with the corresponding changes in the Rasa-SDK and Rasa X?

Copy link
Contributor

@wochinge wochinge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more comments 🙈 Thanks for being so patient and working in all these things 🙏

docs/core/responses.rst Outdated Show resolved Hide resolved
rasa/core/events/__init__.py Outdated Show resolved Hide resolved
rasa/core/events/__init__.py Show resolved Hide resolved
rasa/core/events/__init__.py Outdated Show resolved Hide resolved
rasa/core/events/__init__.py Outdated Show resolved Hide resolved
rasa/core/processor.py Outdated Show resolved Hide resolved
rasa/server.py Show resolved Hide resolved
parser.parse("2018-09-03T11:41:10.128172"),
name="my_reminder",
kill_on_user_message=True,
)


def test_json_parse_reminder_cancelled():
# fmt: off
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know it prevents black from formatting it. You'd have to try out how the black formatting would look and if we actually need the fmt: off

tests/core/test_processor.py Outdated Show resolved Hide resolved
tests/core/test_processor.py Show resolved Hide resolved
Copy link
Contributor

@wochinge wochinge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hype! Amazing work @JEM-Mosig !

@JEM-Mosig
Copy link
Contributor Author

Hype! Amazing work @JEM-Mosig !

Yay!!! Thank you for your help! 🙏 And sorry for the many issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:discussion 👨‍👧‍👦 Early stage of an idea or validation of thoughts. Should NOT be closed by PR. type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External events and reminders should trigger intents instead of actions
6 participants