As you write patterns for voice commands, you can add slots to them. Slots are essentially ‘variables’ in user’s utterances: they represent variable pieces of information you expect to occur in the user’s input.

Slots allows Alan to identify and retrieve important facts from the user’s speech. By having this data, the voice assistant can respond to the user’s request appropriately. For example, when building a weather voice assistant, you can capture the user’s location and date with slots so that the assistant can provide the correct forecast.

Alan allows using the following slot types:


A command pattern can have a maximum of 5 slots, both user-defined and predefined.