stanford-oval / sempre

OBSOLETE. The Old Almond parser
Other
0 stars 1 forks source link

IFTTT and command chains #18

Closed gcampax closed 8 years ago

gcampax commented 8 years ago

IFTTT: if Trigger then Action Eg: "when humidity is more than 70 % set thermostat to 18 C"

(Strictly speaking also if Trigger then Query, but I can't find a good use case for that, except time-based)

Command chains: Query then Action Eg: "play .... from youtube on my tv" @ youtube.search(..., , , videoid, , , ) => @tv.play_youtube(video_id);

(the matching of argument would be resolved by codegen / client side, so you don't have to worry about it, unless you want to) (actually now that I think about it would be relatively clean to do the argument matching in sempre with a new SemanticFn that generates all meaningful pairs; we should talk about it)

gcampax commented 8 years ago

This is in master and production now. Let's close the issue