concept routine in category alexa

This is an excerpt from Manning's book Voice Applications for Alexa and Google Assistant.
Assistant provides a handful of ways to proactively interact with users. With routine suggestions, developers can suggest that users add an action to a routine they are already using with Assistant, like waking up or leaving the house. (This would have been useful in the sleep-tracking skill we built chapters back.) Daily updates will do just what it sounds, which is send users a notification every day at a set time. Notifications, meanwhile, happen whenever there’s relevant information to send the user.
Assistant has a user-facing feature called routines. Users set this up to perform specific actions when they say a specific trigger to Assistant. Indeed, as shown in figure 11.1, these actions can span multiple applications. A user can say a phrase such as “Okay Google, good morning,” and Assistant will perform the actions that the user has specified within the Assistant app ahead of time. Perhaps the user wants Assistant to turn on the lights, say the weather, give a voice UI tip, and then play music.
Figure 11.1 A routine invokes multiple actions in multiple applications.
![]()
The developer doesn’t need to know what is happening within the routine. The developer just needs to provide an action that Assistant can trigger on its own. This means that the action needs to be what’s called a “one-shot” intent, or an intent that doesn’t need any extra information or interaction from the user.