I am trying to implement a simple scenario where: - the bot asks the user for something - the bot waits for user to input free form text - user inputs free form text - bot gets free form text and prints message containing the free form text
config:
policies:
- name: FormPolicy
- name: MappingPolicy
- name: MemoizationPolicy max_history: 15
- name: KerasPolicy epochs: 100 max_history: 15
- name: FallbackPolicy
Story:
Main_Menu
- intent_service_menu{“service_menu”:“menu”}
- utter_services
- action_listen
- action_repeat
actions.py
class RepeatAction(Action): def name(self): return “action_repeat”
def run(self, dispatcher, tracker, domain):
msg = tracker.latest_message.get('text')
dispatcher.utter_message("Your input: "+msg)
return []
I want the user input here to be accepted as a free form text without the NLU trying to classify it into an intent and entity.
This doesn’t seem to work; the action_listen is skipped and bit executes action_repeat after utter_services. Even if action_listen is called, the bot does not wait for user input.
How do i make the bot execute action_listen and wait for free form user input?