AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

calling difficult services with similar rules
 
 

consider the following examples: The input can be of this form
What is the subscription cost?
What is the yearly subscription cost?
What is the monthly subscription cost?
What is the weekly subscription cost?

Based on all the above input sentences, separate services are called to get the answers, but for all inputs it matches only the first rule, can you guide how to write this pattern?

 

 
  [ # 1 ]

u: ( what be the _{ [weekly monthly yearly]} subscription cost)

_0 will be null or one of those values

 

 
  [ # 2 ]

or more simply
u: ( what be the _{ weekly monthly yearly} subscription cost)

 

 
  [ # 3 ]

Or more verbosely:
u: ( what be the subscription cost)
u: ( what be the weekly subscription cost)
u: ( what be the monthly subscription cost)
u: ( what be the yearly subscription cost)

 

 
  [ # 4 ]

thanks Bruce

 

 
  login or register to react