def setup(hass, config):
    intents = config[DOMAIN].get(CONF_INTENTS, {})

    for name, intent in intents.items():
        if CONF_ACTION in intent:
            intent[CONF_ACTION] = script.Script(hass, intent[CONF_ACTION],
                                                "Alexa intent {}".format(name))

    _CONFIG.update(intents)

    hass.http.register_path('POST', API_ENDPOINT, _handle_alexa, True)

    return True
Activate Alexa component.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/alexa.py/setup