diff --git a/rasa/core/nlg/response.py b/rasa/core/nlg/response.py index 05b2fe1f2df7..756b243602d8 100644 --- a/rasa/core/nlg/response.py +++ b/rasa/core/nlg/response.py @@ -73,10 +73,9 @@ async def generate( """Generate a response for the requested utter action.""" filled_slots = tracker.current_slot_values() stack_context = DialogueStack.from_tracker(tracker).current_context() - resp = self.generate_from_slots( + return self.generate_from_slots( utter_action, filled_slots, stack_context, output_channel, **kwargs ) - return resp def generate_from_slots( self, @@ -112,6 +111,7 @@ def _fill_response( method = response.get(METADATA, {}).get( TEMPLATE_ENGINE_CONFIG_KEY, DEFAULT_TEMPLATE_ENGINE ) + keys_to_interpolate = [ "text", "image",