background image
C H A P T E R 1 8
Intelligent Assistant
18-24
Summary
// Action template for creating To Do items
remind_act := {
lexicon: ["remember", "remind", "remind me",
"to do", "todo", "don't forget to",
"don't let me forget to"],
...}
// Action template for sending electronic mail
mail_act := {
lexicon: ["mail", "send", "email"],
...}
// Action template for scheduling meetings
// and events in the Dates application
schedule_act := {
lexicon: ["schedule"],
...}
// Action template for scheduling meetings
// and events in the Dates application
meet_act := {
lexicon: ["meet", "meet me", "see", "talk to"],
...}
// Action template for scheduling meals in Dates app
meal_act := {...}
Meals
18
// Action template for scheduling breakfast in Dates app
breakfast_act := {
isa: 'meal_act,
usualTime:"7:00 am",
lexicon: ["breakfast"],
...}
// Action template for scheduling brunch in Dates app
brunch_act := {
isa: 'meal_act,
usualTime:"10:00 am",
lexicon: ["brunch"],
...}
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна