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

Slots allows Alan AI to identify and retrieve important facts from the user’s speech. By having this data, the AI agent can respond to the user’s request appropriately. For example, when building a flight booking AI agent, it needs to capture the departure and destination, departure date, number of passengers and so on.

Alan AI allows using the following slot types: