input .als file

compiler console output

ASK JSON / Typescript interaction model

copy

reference

Indenting matters! Indent after declaring an intent or slot type to add information to those things.

 

declare a new intent, followed by utterances

INTENT intentName this is an utterance

add a slot to an utterance with {} define the type with +

INTENT getThings I would like {count} {thing} please + count as AMAZON.NUMBER + thing as MyThings

define a slot type with SLOTTYPE, followed by values. Separate synonyms with |

SLOTTYPE MyThings shoe | shoes | kicks hat | hats | fedora | fedorae pants | leg concealers

define alternation in utterances using | too, limit it using ()

INTENT greetings (hello | hi) there (bud|friend|guy|)

to simplify repetition, define a substitution with $

$people = bud|friend|guy|dude INTENT greetings (hello | hi) there ($people|) what's (up|happening) my ($people)