Entity with examples

Hello, I want to know that is it necessary to have entity examples to fill the slot. Actually, I have two stories:

First story: In this, I am taking consumer number and mobile number.

Second story: In this, I am taking complaint number which can be any numeric.

My concern is that I am unable to differentiate between two stories every time. Sometimes, when I enter any consumer number, it is read by the second story i.e it is taking as complaint number instead of consumer number.

thanks

Hi You can use a regex check in your action before storing in to slot. ie. regex for phone no. If not validated u can send UserUtteranceReverted() and ask for the input again or You can change you design. If possible, make you complaint no alphanumeric.

In my opinion, it is really difficult to differentiate between two numeric entities.

Lets see if some one else can gives a better reply.

what about taking single intent and multiple entities.

I made an intent “num” in which i am taking numeric values. and i made stories accordingly, like:

story outstanding_amount

  • bill_query
    • action_outstanding_amount
    • slot{“requested_slot”: “bp_number”}
  • num
    • action_outstanding_amount
    • slot{“requested_slot”: “mob_number”}
  • num
    • action_outstanding_amount
    • utter_wait

story outstanding_amount_incorrectbp2

  • bill_query
    • action_outstanding_amount
    • slot{“requested_slot”: “bp_number”}
  • ambiguous
    • utter_ambiguous

story outstanding_amount_incorrectmob

  • bill_query
    • action_outstanding_amount
    • slot{“requested_slot”: “bp_number”}
  • num
    • action_outstanding_amount
    • slot{“requested_slot”: “mob_number”}
  • ambiguous
    • utter_ambiguous

Is this approach correct??