If you want to be absolutely sure that the bot recognises all the ID’s, yes. However, I’ve found that in a similar case in our bot, the Core model generalizes pretty well with around 7 or 8 unique examples.
edit: To add to this response. Since you have a set number of login codes, you might want to add a lookup table in your data.md file that contains all possible numbers. This trains the bot to only see these combinations as viable userID’s. it looks like this:
Sorry, I want ask again,
I have intent info_package and info_bill that access slot{“userId”:“1111”},
I want to create a stories when the user asks info_package then enter useId 1111 --> slot{“userId”:“1111”} ,
can I access previous slot for next intent -->info_bill
I made a story like this, but it didn’t work
Generated Story Paket 3
info_paket
utter_verifikasinointernet
enter_data{“userId”: “1111”} OR enter_data{“userId”: “2222”} OR enter_data{“userId”: “3333”} OR enter_data{“userId”: “4444”} OR enter_data{“userId”: “5555”} OR enter_data{“userId”: “666666”}
I set ‘Action_check_tagihan’ to tracker.get_slot, so like:
userId = tracker.get_slot('userId')
c.execute("SELECT * FROM customer WHERE userId="+userId+"")
result= c.fetchone()
userId = result['userId']
userName = result['userName']
userPackage = result['userPaket']
userBill = result['userBill']
response = """{} paket anda saat ini {}""".format(userName, userPackage) #this for package
#response = """{} paket anda saat ini {}""".format(userName, userPackage) #this for bill
dispatcher.utter_message(response)
return [SlotSet("userId",userId)]
This stories works:
Generated Story Tagihan
info_tagihan
utter_verifikasinointernet
enter_data{“userId”: “1111”} OR enter_data{“userId”: “2222”} OR enter_data{“userId”: “3333”} OR enter_data{“userId”: “4444”} OR enter_data{“userId”: “5555”} OR enter_data{“userId”: “666666”}
action_check_tagihan
Generated Story Tagihan
info_tagihan{“userId”: “1111”} OR enter_data{“userId”: “2222”} OR enter_data{“userId”: “3333”} OR enter_data{“userId”: “4444”} OR enter_data{“userId”: “5555”} OR enter_data{“userId”: “666666”}
action_check_package
Generated Story Paket
info_paket
utter_verifikasinointernet
enter_data{“userId”: “1111”} OR enter_data{“userId”: “2222”} OR enter_data{“userId”: “3333”} OR enter_data{“userId”: “4444”} OR enter_data{“userId”: “5555”} OR enter_data{“userId”: “666666”}
action_check_customer
but its didn’t work for
info_paket
utter_verifikasinointernet
enter_data{“userId”: “1111”} OR enter_data{“userId”: “2222”} OR enter_data{“userId”: “3333”} OR enter_data{“userId”: “4444”} OR enter_data{“userId”: “5555”} OR enter_data{“userId”: “666666”}
action_check_customer
info_tagihan
action_check_tagihan
thankyou
utter_thankyou
action_slot_reset
I want the user only enter_data user_id once, so if user has enter_data user_id the user can access all the next_action without enter_data user_id again