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)
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)