Skip to content

Commit

Permalink
Merge pull request #7722 from RasaHQ/external_message_autofill_fix
Browse files Browse the repository at this point in the history
External Message Entity Auto-Filling Fix
  • Loading branch information
b-quachtran authored Jan 14, 2021
2 parents 2240f86 + ac801fb commit 70e652a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/7722.bugfix.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 3 additions & 1 deletion rasa/core/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
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)
Expand Down

0 comments on commit 70e652a

Please sign in to comment.