alexa_skill.intents package

Submodules

alexa_skill.intents.base module

class alexa_skill.intents.base.BaseIntents

Bases: object

Base class for creating any Intent which will be used in processor

mapper

Dictionary which map alexa intent name with intent method name.

:rtype dict

static response(*args, **kwargs)

Creates alexa json response body.

Reference:
https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#response-format

alexa_skill.intents.buildins module

class alexa_skill.intents.buildins.BuildInIntents(help_message, not_handled_message, stop_message='stop', cancel_message='cancel')

Bases: alexa_skill.intents.base.BaseIntents

Buildin intents class which is handling all standard intents which are sent from Alexa.

cancel()

Handles build-in Alexa cancel intent. This method should end user session if no transactional action is made, otherwise it should end action.

Returns:[Alexa voice message string, should end session bool]
Return type:list
help()

Handles build-in Alexa help intent.

Returns:[Alexa voice message string, should end session bool]
Return type:list
mapper
not_handled()

Returns not handled message.

Returns:[Alexa voice message string, should end session bool]
stop()

Handles build-in Alexa stop intent.

Returns:[Alexa voice message string, should end session bool]
Return type:list

Module contents