Actions in the Alexa Conversations Description Language (ACDL)

In Alexa Conversations Description Language (ACDL), an action represents some aspect of a skill's behavior, such as responding to a question by saying or displaying some information, a request to fulfill a task by invoking a back-end API, and so on.

You declare action signatures in ACDL, but you implement the actions themselves outside of ACDL, such as in AWS Lambda.

You use your declared actions in dialog samples to represent the invocation of the corresponding skill behavior.

Declaring an action

You declare the type signature of an action by using one of the following syntax patterns.

action ReturnType <action_name>()
action ReturnType <action_name>(Type arg)
action ReturnType <action_name>(Type arg1, Type arg2, ...)
action ReturnType <action_name>(Type arg = <default_value>, ...)

For details about using actions, see Using Actions in ACDL.