in functions/source/bot_fulfillment/bot_fulfillment.py [0:0]
def validate_sales_team_size_office_slots(content, is_valid, slots, year):
if slots['year'] is not None and slots['orders_revenue'] is None and slots['revenue_type'] is None:
is_valid = False
content = "I couldn't understand what you mean. Type \"Help\" to know about the areas that I can converse on."
elif slots['year'] is not None and int(slots['year'].split('-')[0]) != int(year):
is_valid = False
slots['current_year'] = year
content = "Oops! I have only current year data with me. Please ask for a metric on current year."
is_valid = False
content = "I am having trouble understanding what you mean. I have data only on <b>size or count</b> of sales team by each office.."
elif slots['team_size'] is not None and slots['team_size'] not in team_size:
is_valid = False
content = "Oops! I can't answer that. At present, I have data only on <b>size or count</b> of sales team by each office."
elif slots['product_salesteams'] is None:
is_valid = False
content = "I am having trouble understanding what you mean. I have data only on size or count of <b>sales team by sales offices</b>."
elif slots['product_salesteams'] is not None and slots['product_salesteams'] not in product_sales_list:
is_valid = False
content = "Oops! I can't answer that. At present, I have data only on size or count of <b>sales team by sales offices</b>."
return content, is_valid