From 5f06e4a9a9a2cfbfeb5ea75a5e820651bdbf4a2b Mon Sep 17 00:00:00 2001 From: b-quachtran Date: Wed, 13 Jan 2021 13:49:36 -0800 Subject: [PATCH 1/3] Updated tracker update function call to enable external-message slot autofilling --- rasa/core/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasa/core/processor.py b/rasa/core/processor.py index 72ba3fd074a8..243f7828733a 100644 --- a/rasa/core/processor.py +++ b/rasa/core/processor.py @@ -405,7 +405,7 @@ async def trigger_external_user_uttered( f"Invalid entity specification: {entities}. Assuming no entities." ) entity_list = [] - tracker.update(UserUttered.create_external(intent_name, entity_list)) + tracker.update(UserUttered.create_external(intent_name, entity_list), self.domain) await self._predict_and_execute_next_action(output_channel, tracker) # save tracker state to continue conversation from this state self._save_tracker(tracker) From 0dfe6d56014d212c78e06a514900e9d321ff26f6 Mon Sep 17 00:00:00 2001 From: b-quachtran Date: Wed, 13 Jan 2021 14:04:59 -0800 Subject: [PATCH 2/3] Code linting --- rasa/core/processor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rasa/core/processor.py b/rasa/core/processor.py index 243f7828733a..2cd6d0f14c8c 100644 --- a/rasa/core/processor.py +++ b/rasa/core/processor.py @@ -405,7 +405,9 @@ async def trigger_external_user_uttered( f"Invalid entity specification: {entities}. Assuming no entities." ) entity_list = [] - tracker.update(UserUttered.create_external(intent_name, entity_list), self.domain) + tracker.update( + UserUttered.create_external(intent_name, entity_list), self.domain + ) await self._predict_and_execute_next_action(output_channel, tracker) # save tracker state to continue conversation from this state self._save_tracker(tracker) From ac801fbffbfbea39a6101fb0144c78c266cbcf6b Mon Sep 17 00:00:00 2001 From: b-quachtran Date: Wed, 13 Jan 2021 15:23:25 -0800 Subject: [PATCH 3/3] Added changelog --- changelog/7722.bugfix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/7722.bugfix.md diff --git a/changelog/7722.bugfix.md b/changelog/7722.bugfix.md new file mode 100644 index 000000000000..73ca0f2ba008 --- /dev/null +++ b/changelog/7722.bugfix.md @@ -0,0 +1 @@ +Fix a bug where, if a user injects an intent using the HTTP API, slot auto-filling is not performed on the entities provided. \ No newline at end of file