def create_weather_intent()

in source/services/lex-bot/weather_forecast/intent.py [0:0]


def create_weather_intent(bot_id, locale_id):
    bot_language = os.environ.get("botLanguage")
    # create intent
    intent_id = create_intent(bot_language, bot_id, locale_id)
    # create slot
    city_slot_id = create_city_slot("AMAZON.City", "city", bot_language, bot_id, locale_id, intent_id)
    # update the intent for prioritizing slots in the intent
    update_weather_intent(bot_language, intent_id, city_slot_id, bot_id, locale_id)