How can i do mapping stories inetent with slot like *

rasa-core
rasa-nlu
(yuchichang) #1

How can i do mapping stories inetent with slot like * (any slot value)

PhoneNo is a regex slot i want user say “My phone 123456 can not hear” be mapping sotry_22 but not only 123456 also 234567…

so how should i do in stories ( * is not work jsut i think like this )

## sotry_11
* HearProblem{"cantHearSlot":"cannotHear"}
 - utter_NeedPhoneNo
## sotry_22
* HearProblem{"cantHearSlot":"cannotHear","PhoneNo":"*"}
 - utter_HearProblem1
 - action_restart
 
------ 

utter_HearProblem1:
    - text:   'your phoneNo {PhoneNo} i will checking'
0 Likes