How to make nlu to choose correct intent while two intents has same input types?

i have two intents

intent:item_pressure

intent:thr_length

when user enter 30 , it calling thr_length, but i want to call item_pressure. how can i fix this? i am calling actions from stories

  • item_pressure
    • action_checkpressure
  • thr_length
    • action_thrlength

How would a human know which one to choose based on those rules?

Looking at your example, do you need to have a separate entity for each one or can you use the same entity and just process it differently?

If you need separate slots filled with the same type of value, you could create a custom action to copy from a temporary slot over to the actual slot, and set up your story something like this:

# calculate_area_story
* calculate_area
  - utter_ask_width
* number_entered{"value":"123"}
  - action_copy_value_to_width
  - slot{"width":"123"}
  - utter_ask_height
* number_entered{"value":"456"}
  - action_copy_value_to_height
  - slot{"height":"456"}
  - action_calculate_area

“123” and “456” are just random values to indicate that the slot value changed.

thank you @samscudder. got idea with your answer.