Rasa 1.8 Trouble requesting user for more information

I’m running Rasa 1.8. I have two stories whose purpose is to “save a waypoint”. Both stories take in a waypoint_name parameter. The first extracts the name from users initial request. The second asks the user for the name. The issue is that I never fall into the second story.

## save waypoint with name
* waypoint_save{"waypoint_name": "alpha"}
  - action_set_waypoint
* thanks
  - utter_you_are_welcome

## save waypoint then name
* waypoint_save
  - utter_waypoint_request_name
* inform{"waypoint_name": "alpha"}
  - action_set_waypoint
* thanks
  - utter_you_are_welcome

When I run the shell, the first story works but the second doesn’t. I expected the first line in my shell to follow the second story and request for a name:

Your input ->  save this place
Done with saving None
Your input ->  save this place as alpha
Done with saving alpha
Your input ->  thanks
You're welcome

My domain file has waypoint_name setup as type: text which I thought was the key to getting this to work but doesn’t.

My intents:

## intent:waypoint_save
- save this place as [alpha](waypoint_name)
- I would like to name this place [alpha](waypoint_name)
- Let's call this spot [alpha](waypoint_name)
- Let's name this location [alpha](waypoint_name)
- I'd like to call this place [alpha](waypoint_name)
- save this spot and call it [alpha](waypoint_name)
- save waypoint
- mark waypoint
- remember this place
- remember this spot
- mark this location
- save this place
- don't forget this spot
- don't forget where this place is

## intent:inform
- [alpha](waypoint_name)
- [bravo](waypoint_name)
- [charlie](waypoint_name)

My action.py:

 class ActionSetWaypoint(Action):

    def name(self) -> Text:
        return "action_set_waypoint"

    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
        waypoint_name = tracker.get_slot('waypoint_name')
        dispatcher.utter_message(text="Done with saving " + str(waypoint_name))
        return []

hi @nmill - can you please show the output of rasa shell --debug ? If you have the memoizationpolicy in your pipeline, this should absolutely work.

1 Like

Thanks amn41. It looks like I had to retrain rasa completely and not just the NLU because it now works.