How can i do mapping stories inetent with slot like *

rasa-nlu
rasa-core
(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'
(Ella Rohm-Ensing) #2

For this, you’ll want the PhoneNo slot to be of type unfeaturized – then it won’t influence the dialog flow (and you don’t have to include it in your stories!). More information about slot filling can be found here.

(yuchichang) #3

thank you~