
CHAPTER 18
Intelligent Assistant
Summary 18-25
// Action template for scheduling lunch in Dates app
lunch_act := {
isa: 'meal_act,
usualTime:"12:00 pm",
lexicon: ["lunch"],
…}
// Action template for scheduling dinner in Dates app
dinner_act := {
isa: 'meal_act,
usualTime:"7:00 pm",
lexicon: ["dinner"],
…}
Special Events 18
birthday := {
isa: 'special_event_act,
Lexicon: ["birthday","bday","b-day"],
…}
anniversary := {
isa: 'special_event_act,
Lexicon: ["anniversary"],
…}
holiday := {
isa: 'special_event_act,
Lexicon: ["holiday"],
…}
Developer-Supplied Action Templates 18
You must supply the action template specified by the value of your task template’s
primary_act slot.
You must supply any additional templates specified by the
signature slot of the
task template.
Commentaires sur ces manuels