Finally i tried to use the same patterns as @koaning in this video Conversational AI with Rasa: Custom Forms - YouTube
i used an action to ask for the slot and i am able to wait for the user input but the form validation and the action that i have defined in the storie are not runned.
Here is the rule:
- rule: Activate form
steps:
- intent: localisation
- action: loc_form
- active_loop: loc_form
- rule: submit open loc form
condition:
- active_loop: loc_form
steps:
- action: loc_form
- active_loop: null
- action: action_loc_searching
the storie :
- story: get location hapy path form
steps:
- intent: localisation
- action: loc_form
- active_loop: loc_form
- active_loop: null
- action: action_loc_searching
the domain : slot definition and form
slots:
location:
type: any
mappings:
- type: from_text
intent: localisation
not_intent: [chitchat,greet,goodbye,affirm,deny,mood_great,mood_unhappy,bot_challenge]
conditions:
- active_loop: loc_form
requested_slot: location
forms:
loc_form:
ignored_intents: [chitchat,greet,goodbye,affirm,deny,mood_great,mood_unhappy,bot_challenge]
required_slots:
- location
@koaning can you help please