Method and system for providing a secure automation assistant

By detecting user input on the client device and prompting the user to agree to data transmission, the problem of dynamic switching between cloud and local execution of the automated assistant is solved, thereby achieving user data security and optimized response content.

CN116648745BActive Publication Date: 2026-11-27GOOGLE LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180088109.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-12
Filing Date
2021-12-10
Publication Date
2026-11-27
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

Existing automated assistants cannot effectively switch dynamically between using cloud-based counterparts and local execution on client devices when processing user input, resulting in reduced user data security or suboptimal response content.

Method used

By detecting user input on the client device, the type of assistant command is determined, and the user is prompted for consent before transmitting the request to the server or third-party application. Only necessary data is transmitted upon obtaining consent, or alternative fulfillment is performed locally.

Benefits of technology

It improves the privacy and security of user data, ensures that data is transmitted only with the user's consent, reduces reliance on manual user settings, and improves the quality and efficiency of response content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116648745B_ABST
    Figure CN116648745B_ABST
Patent Text Reader

Abstract

Implementations described herein relate to: receiving user input directed to an automated assistant; processing the user input to determine whether data from a server and / or third-party application is needed to perform a particular fulfillment of an assistant command included in the user input; and generating a prompt requesting user consent to transmit a request to the server and / or third-party application to obtain the data needed to perform the particular fulfillment. In implementations where the user consents, the data can be obtained and utilized to perform the particular fulfillment. In implementations where the user does not consent, client data can be generated locally at the client device and used to perform an alternative fulfillment of the assistant command. In various implementations, the request transmitted to the server and / or third-party application can be modified based on environmental noise captured at the time the user input is received.
Need to check novelty before this filing date? Find Prior Art

Description

Background Technology

[0001] Humans can engage in human-computer dialogue using interactive software applications referred to herein as “automated assistants” (also known as “chatbots,” “interactive personal assistants,” “intelligent personal assistants,” “personal voice assistants,” “conversational agents,” etc.). For example, a person (who may be referred to as a “user” when interacting with an automated assistant) can provide input (e.g., commands, queries, and / or requests) to the automated assistant, which can cause the automated assistant to generate and provide response outputs, control one or more Internet of Things (IoT) devices, and / or perform one or more other functions (e.g., assistant actions). Such input provided by the user can be, for example: spoken natural language input (i.e., spoken words), which in some cases can be converted into text (or other semantic representations) and then further processed; and / or typed natural language input.

[0002] In some cases, an automated assistant can include: an automated assistant client executed locally by the client device and directly participated in by the user; and a cloud-based counterparty that leverages virtually unlimited cloud resources to help the automated assistant client respond to user input. For example, the automated assistant client can provide the cloud-based counterparty with audio data of the user's spoken words (or a text-based version thereof), and optional data indicating the user's identity (e.g., credentials). The cloud-based counterparty can perform various processes on the input to return the results to the automated assistant client, which can then provide the corresponding output to the user. In other cases, the automated assistant can be executed exclusively locally by the client device and directly participated in by the user to reduce latency and / or protect the privacy of user data.

[0003] Many automation assistants either utilize virtually unlimited cloud resources to help the assistant client respond to user input, or they execute locally on a client device with direct user interaction to respond to user input. In other words, many automation assistants cannot dynamically switch between utilizing a cloud-based counterpart and executing locally on a client device based on user input and / or the environmental conditions associated with that input.

[0004] For example, suppose a user provides the spoken phrase "how is my XYZ stock doing today?" as input to a given automated assistant. Further suppose the given automated assistant utilizes virtually unlimited cloud resources to help respond to the spoken phrase. In this example, the given automated assistant could respond to the user with the desired content (e.g., real-time updates on "XYZ stock"), but the security of user data may be compromised because the audio data capturing the spoken phrase, data identifying the user, assistant commands associated with the spoken phrase, and / or other data can be transferred from the given client device capturing the spoken phrase to a server or third-party application to obtain the desired content in response to the spoken phrase. As a result, after the data is transferred to the server or third-party application, the user may not be able to take one or more measures to ensure that the transferred data is secure at the server or third-party application. Instead, suppose the given automated assistant executes locally on the user's given client device to respond to the spoken phrase. In this example, the security of user data can be protected, but the given automated assistant may only use content locally accessible on the given client device to obtain the desired content in response to the spoken phrase (e.g., only the "XYZ stock" ticker). As a result, the expected content in response to spoken utterance may be suboptimal (e.g., outdated) or nonexistent. However, if an automated assistant can dynamically switch between utilizing a cloud-based counterpart and executing locally by the client device based on user input and / or the environmental conditions associated with that input, it may be able to provide the best expected content in response to user input while protecting the security of user data. Summary of the Invention

[0005] The embodiments disclosed herein relate to providing a secure automation assistant that prompts a user to consent to the transmission of a request to a server and / or third-party application when data from a server and / or a third-party application is needed to perform a specific performance of an assistant command. The assistant command may be included in user input (e.g., verbal input and / or typed input) detected at the client device. In some embodiments, user input may be processed to determine a given category associated with the assistant command, and the user may be prompted to consent to the transmission request only in response to determining that the given category associated with the assistant command corresponds to one or more specific categories. In response to determining that the user consents to the transmission request in response to the prompt, the request may be transmitted to the server and / or third-party application to obtain the data required to perform a specific performance of the assistant command. In response to determining that the user does not consent to the transmission request in response to the prompt, data may be obtained on the device to perform an alternative performance of the assistant command. In various embodiments, when the user does consent to the transmission of the request to the server and / or third-party application, the request may be transmitted along with an indication that data received from the client device cannot (e.g., non-transitory) be stored. In other words, the server and / or third-party application may use the data included in the request to generate response content for the request, but the data included in the request should be discarded after the response content is generated.

[0006] For example, suppose a user provides the spoken phrase "can you recommend a lawyer for bankruptcies" to an automated assistant. The automated assistant (e.g., an automated assistant client executing locally on the client device) can enable the use of one or more machine learning (ML) models (e.g., locally stored on the client device) to process the audio data capturing the spoken phrase. For example, the automated assistant client can process the audio data to determine if the spoken phrase includes an assistant command. For instance, the automated assistant client can use a locally stored automatic speech recognition (ASR) model to process the audio data to generate a recognition of the spoken phrase, and can use a natural language processing (NLP) model to process that recognition to generate the intent of the assistant command included in the spoken phrase and parameters of those intents, and / or can use other ML models to process the recognition. Furthermore, the automated assistant can process the output generated using one or more ML models to determine a given category associated with the assistant command. In this example, the given category associated with the assistant command could be a legal services category. Furthermore, the automated assistant can determine that the legal service category corresponds to one or more specific categories (e.g., using rules and / or ML models) to prompt the user's consent before transmitting any request to the server and / or third-party application to obtain response content for the verbal utterance. As a result, the automated assistant can prompt the user's consent to transmit a request to the server and / or third-party application to obtain a recommendation for a bankruptcy attorney. Assuming the user consents to transmit the request, the automated assistant can generate and transmit the request to perform the specific performance requested by the user—obtaining a recommendation for a bankruptcy attorney (and optionally, along with an indication that the request cannot be stored at the server and / or third-party application receiving the request). However, if the user does not consent to transmit the request, the automated assistant can obtain data local to the client device to perform alternative performance, such as providing any pre-cached content associated with the recommendation for a bankruptcy attorney, providing any contact entries for attorneys or law firms from the contact list, and / or providing any other data related to the assistant's command. Additionally or alternatively, if no content related to the assistant's command exists, the assistant's command may fail, and the automated assistant can cause a notification to be presented to the user that no performance can be performed without transmitting the request to the server and / or third-party application.

[0007] In some implementations, a given category associated with an assistant command can be one of several distinct categories. These distinct categories can be defined by a taxonomy at varying degrees of granularity. For example, the distinct categories could include search query categories, multimedia categories, IoT device categories, communication categories, task categories, and / or other categories. Furthermore, each of these distinct categories can include one or more subcategories (or subcategories). For example, a search query category could include an entity category corresponding to a search query associated with a person, place, and / or thing; a money category corresponding to a search query associated with stocks, bank account balances, and / or other monetary information; a weather category corresponding to a search query associated with an inquiry about the weather at a specific location; a restaurant category corresponding to a search query associated with a restaurant; and / or any other category associated with different types of search queries. Furthermore, each of these distinct categories (or subcategories) can include one or more categories (or further subcategories). For example, entity categories could include: state categories, city categories, business location categories, residential location categories, and / or other location-related categories, such as address categories; celebrity categories, contact entry categories, and / or other categories associated with individuals or personal information (e.g., email address categories, phone number categories, etc.), and so on. While the examples above describe categories of search queries, it should be understood that this is to illustrate different levels of granularity for a given category and is not intended to be restrictive. For example, a multimedia category could include a music category, which in turn includes genre categories, which in turn include corresponding categories for various music genres, and so on.

[0008] In some implementations, an automated assistant can determine a given category associated with an assistant command based on the output generated using one or more ML models. For example, when user input is spoken, an ASR model can be used to process audio capturing the user's spoken words to generate multiple speech hypotheses (e.g., terminology hypotheses and / or transcription hypotheses). Based on the corresponding values ​​(e.g., probability, log-likelihood, and / or other values) associated with each speech hypothesis, one or more speech hypotheses can be selected as the recognized text corresponding to the spoken words. Furthermore, an NLP model can be used to process the recognized text to determine the user's intent when providing spoken words, determine parameters of that intent, and / or annotate the recognized text. The automated assistant can then determine a given category based on the user's intent, the parameters of that intent, and / or the annotations of the recognized text. As another example, when user input is typed input, an NLP model can be used to process the typed input to determine the user's intent when providing spoken words, determine parameters of that intent, and / or annotate the recognized text. Similarly, the automated assistant can determine a given category based on the user's intent and / or the annotations of the recognized text.

[0009] In some implementations, the automation assistant can use one or more rules to determine that a given category corresponds to one or more specific categories. These rules may include, for example, user-defined rules, default rules, and / or inferred rules. For instance, user-defined rules may be defined by the user previously (e.g., via the automation assistant application) and indicate that one or more assistant commands associated with a given category should cause the automation assistant to prompt the user for consent before transmitting any requests. User-defined rules may also indicate scenarios in which requests should not be prompted to the user or define the degree to which the user consents to transmitting requests (e.g., transmitting text data to a server and / or a third-party application, but not any audio data). Furthermore, for example, default rules may indicate that one or more assistant commands associated with a given category should cause the automation assistant to prompt the user for consent before transmitting any requests. These default rules may be associated with, for example, money-related categories, health-related categories, legal categories, and / or other categories. Additionally, for example, inferred rules may be inferred based on the use of the client device. These inferred rules may be associated with, for example, categories in which the user previously consented to transmitting requests from the client device (e.g., blanket consent or partial consent).

[0010] In some implementations, the automation assistant may cause prompts to be rendered visually and / or audibly on the client device. The prompt may request the user's consent to the transmission of a request to a server and / or a third-party application. In some versions of these implementations, the user may provide different levels of consent regarding the transmission of a request (and optional future requests) to a server and / or a third-party application. For example, the user may provide a package of consent for: transmitting a request to obtain data to perform a specific fulfillment of an assistant command (and optional future requests also of a given category), transmitting a request along with an indication that any data cannot be stored by the server and / or the third-party application, transmitting only text data without transmitting any audio data, not transmitting any request, and / or other levels. As described herein, the user may be prompted to provide consent regarding the transmission of a request to an automation assistant cloud (e.g., or any other first-party server), a local third-party application installed on the client device, a third-party application hosted by a third-party server, and / or any other server or third-party application. For example, the user may provide consent for data that can be transmitted to a local third-party application but not to a server-based instance of the third-party application. As another example, users can provide consent that data can be transferred to any first-party server but not to any third-party application and / or third-party server.

[0011] In additional or alternative implementations, and when the user input is verbal, the audio data capturing the verbal input can be processed to determine a given category associated with any ambient noise also captured in the audio data, and the user can be prompted to consent to the transmission request simply in response to determining that the given category associated with the ambient noise corresponds to one or more specific categories. The automated assistant can enable the use of one or more machine learning (ML) models to process the audio data capturing the spoken utterance to determine that the spoken utterance includes assistant commands (e.g., automatic speech recognition (ASR) models, natural language processing (NLP) models, and / or other ML models), as described above. An ambient noise model can be additionally or alternatively used to process the audio data, the ambient noise model being trained to determine a given category associated with ambient noise based on the output generated using the ambient noise model. The output of the ambient noise model can include, for example, multiple categories and corresponding values ​​associated with the multiple categories (e.g., probabilities, log-likelihoods, etc.).

[0012] In some implementations, a given category associated with ambient noise can be one of several distinct categories. Similar to the multiple categories associated with assistant commands, the multiple distinct categories associated with ambient noise can be defined by a taxonomy at varying degrees of granularity. For example, the multiple distinct categories associated with ambient noise could include conversation categories, commuting categories, multimedia categories, and / or other categories. Furthermore, the multiple distinct categories of ambient noise could include one or more categories (or subcategories) similar to the multiple distinct categories of assistant commands. For example, a conversation category could include (e.g., categories identified using a speech recognition model) multiple distinct user categories.

[0013] In some implementations, the automation assistant may use one or more rules to determine that a given category corresponds to one or more specific categories. These rules may include, for example, user-defined rules, default rules, and / or inferred rules similar to those described above. However, these rules are associated with limiting the transmission request based on ambient noise captured in the audio data that also captures the assistant's command. For example, suppose the spoken words “can you recommend a lawyer for bankruptcies” are directed at the automation assistant. Further suppose that the audio data capturing the spoken words is also based on capturing conversations between multiple other users within the ambient noise, using the output generated using an ambient noise model. In this example, the prompt may additionally or alternatively include an indication that the audio data captures conversations between multiple other users (and optionally identifies those other users).

[0014] By using the techniques described herein, one or more technical advantages can be achieved. For example, the techniques described herein enable automated assistants to limit when and / or what data generated locally on a client device is transmitted to a server and / or third-party applications, thereby improving the privacy and security of user data. For example, the techniques described herein can proactively prompt the user before transmitting specific data and can require a positive input in response to the prompt before the specific data is transmitted, or prevent the transmission of specific data if no positive input is received (e.g., instead of receiving it, a negative input). This ensures that specific data remains secure without relying on the user manually specifying whether the specific data should remain secure before issuing the assistant command.

[0015] As another example, the technology described in this paper enables automated assistants to selectively notify users when and / or what data will be transmitted from a client device in response to an assistant command provided by the user, and allows users to provide concise input (e.g., a verbal "yes" or "no," or clicking a graphical interface element) to indicate whether such data should be transmitted. This concise input can be more efficient than, for example, navigating the menus of an automated assistant app to manually identify data settings and specify which data settings might require multiple inputs. Furthermore, combining the automated assistant's request with prompts makes it easier for users to understand which type(s) of data their response to the prompt will apply, rather than manually defining rules associated with various categories, which can be cumbersome for users. Additionally, user responses to prompts can be used to indicate whether future user data (e.g., data belonging to the same one or more categories) should be transmitted. This can reduce or eliminate the need for users to provide future user input related to the transmission of future user data.

[0016] The above description is provided only as an overview of some of the embodiments disclosed herein. Those embodiments and other embodiments are described in more detail herein.

[0017] It should be recognized that all combinations of the foregoing and additional concepts described in more detail herein are contemplated as part of the subject matter disclosed herein. For example, all combinations of the claimed subject matter appearing at the end of this disclosure are considered part of the subject matter disclosed herein. Attached Figure Description

[0018] Figure 1 A block diagram depicts an example environment that illustrates various aspects of this disclosure and in which the implementations disclosed herein can be carried out.

[0019] Figure 2A flowchart illustrating example methods for determining, according to various implementations, whether to transmit a request to the server to obtain server data used in a specific execution of an assistant command.

[0020] Figure 3A and Figure 3B Various non-limiting examples are described, based on various implementations, of determining whether to transmit a request to the server to obtain server data used in a specific execution of an assistant command.

[0021] Figure 4 A flowchart illustrating an example method, according to various implementations, for determining whether to transmit a request to a third-party application to obtain third-party application data used in a specific execution of an assistant command.

[0022] Figure 5A and Figure 5B Various non-limiting examples are described regarding determining whether to transmit a request to a third-party application to obtain third-party application data used in a specific execution of an assistant command, according to various implementation methods.

[0023] Figure 6 The flowchart illustrates an example method, based on various implementations, for determining whether to transmit a request to a server or third-party application to obtain data used in a specific execution of an assistant command, based on ambient noise.

[0024] Figure 7A and Figure 7B Various non-limiting examples are described, based on various implementations, of determining whether to transmit a request to a server or third-party application to obtain data to be used in a specific execution of an assistant command, based on ambient noise.

[0025] Figure 8 Example architectures of computing devices according to various implementation methods are depicted. Detailed Implementation

[0026] Turn now Figure 1 A block diagram of an example environment is depicted, illustrating various aspects of this disclosure and in which the implementations disclosed herein can be carried out. The example environment includes a client device 110, one or more cloud-based automation assistant components 115, one or more first-party servers 191, and one or more third-party servers 192.

[0027] Client device 110 may execute automation assistant client 113. Automation assistant client 118 may be an application separate from the operating system of client device 110 (e.g., installed "on top of" the operating system) – or may alternatively be implemented directly by the operating system of client device 110. As further described below, automation assistant client 118 may optionally interact with one or more of cloud-based automation assistant components 115 in response to various requests provided by user interface component 112 of client device 110. Furthermore, and also as described below, other engines of client device 110 may optionally interact with one or more of cloud-based automation assistant components 115.

[0028] One or more cloud-based automation assistant components 115 may be implemented on one or more computing systems (e.g., servers collectively referred to as "cloud" or "remote" computing systems) communicatively coupled to client device 110 via one or more local area networks ("LANs", including Wi-Fi LANs, Bluetooth networks, near-field communication networks, mesh networks, etc.), wide area networks ("WANs", including the Internet, etc.) and / or other networks. The communication coupling between the cloud-based automation assistant component 115 and client device 110 is substantially... Figure 1 The 1991 directive. Furthermore, in some implementations, client device 110 may be communicatively coupled to other client devices (not depicted) via one or more networks (e.g., LANs and / or WANs).

[0029] One or more cloud-based automation assistant components 115 can also be communicatively coupled to one or more first-party servers 191 and / or one or more third-party servers via one or more networks (e.g., LAN, WAN, and / or other networks). The communicative coupling between the cloud-based automation assistant component 115 and the one or more first-party servers 191 is largely achieved by… Figure 1 The 1992 directive. Furthermore, the communication coupling between the cloud-based automation assistant component 115 and one or more third-party servers 192 is largely handled by… Figure 1 The 1993 directive. In some implementations, and although not in Figure 1 As described herein, however, client devices may additionally or alternatively be coupled to one or more first-party servers 191 and / or one or more third-party servers via one or more networks (e.g., LAN, WAN and / or other networks).

[0030] The automation assistant client 113, through its interaction with one or more cloud-based automation assistant components 115, can form what appears from the user's perspective to be a logical instance of automation assistant 120, which the user of client device 110 can utilize to participate in human-computer dialogue. For example, the instance of automation assistant 120 enclosed by the dotted line includes the automation assistant client 113 of client device 110 and one or more cloud-based automation assistant components 115. Therefore, it should be understood that each user interacting with the automation assistant client 113 executing on client device 110 can actually interact with his or her own logical instance of automation assistant 120 (or a logical instance of automation assistant 120 shared among family members or other user groups and / or shared among multiple automation assistant clients 113). Although in Figure 1 Only client device 110 is shown in the diagram, but it will be understood that one or more cloud-based automation assistant components 115 may additionally serve a number of additional client device groups.

[0031] As used herein, a first-party device or system (e.g., one or more first-party servers 191) refers to a system controlled by the same party that controls the automation assistant 120 mentioned herein. For example, one or more first-party servers 191 may refer to a system hosting search engine services, communication services (e.g., email, SMS messaging, etc.), navigation services, music services, document editing or sharing services, and / or other services controlled by the same party that controls the automation assistant 120 mentioned herein. In contrast, a third-party device or system (e.g., one or more third-party servers 192) refers to a system controlled by a different party than the party that controls the automation assistant 120 mentioned herein. For example, one or more third-party servers 192 may refer to a system hosting the same services, but those services are controlled by a different party than the party that controls the automation assistant 120 mentioned herein.

[0032] Client device 110 may include one or more of the following: desktop computing devices, laptop computing devices, tablet computing devices, mobile phone computing devices, computing devices of a user's vehicle (e.g., in-vehicle communication systems, in-vehicle entertainment systems, in-vehicle navigation systems), interactive stand-alone speakers (e.g., with or without a display), smart appliances (such as smart TVs or smart washing machines / dryers), wearable devices of the user including computing devices (e.g., a user's watch with a computing device, glasses of the user with a computing device, virtual or augmented reality computing devices), and / or any IoT device capable of receiving user input directed at automation assistant 120. Additional and / or alternative client devices may be provided.

[0033] In various embodiments, client device 110 may include one or more presence sensors 111 configured to provide signals indicating a detected presence—particularly a human presence—upon approval from the corresponding user. In some of those embodiments, automation assistant 120 may identify client device 110 (or another computing device associated with the user of client device 110) at least in part based on the presence of the user at client device 110 (or at another computing device associated with the user of client device 110) to satisfy a verbal utterance (or other input directed to automation assistant 120). The verbal utterance (or other input directed to automation assistant 120) may be satisfied by rendering response content (e.g., audibly and / or visually) at client device 110 and / or the other computing device associated with the user of client device 110, causing client device 110 and / or the other computing device associated with the user of client device 110 to be controlled, and / or causing client device 110 and / or the other computing device associated with the user of client device 110 to perform any other action to satisfy the verbal utterance (or other input directed to automation assistant 120). As described herein, the automation assistant 120 may use data determined by the presence sensor 111 to determine the location of the client device 110 (or other computing device) based on the user's vicinity or nearest proximity, and provide corresponding commands only to the client device (or those other computing devices). In some additional or alternative embodiments, the automation assistant 120 may use data determined by the presence sensor 111 to determine whether any user (any user or a specific user) is currently near the client device 110 (or other computing device), and may optionally suppress the provision of data to and / or from the client device 110 (or other computing device) based on the user's proximity to the client device 110 (or other computing device).

[0034] The presence sensor 111 can take various forms. For example, the client device 110 may be equipped with one or more digital cameras configured to capture and provide signals indicating movement detected in their field of view. Additionally or alternatively, the client device 110 may be equipped with other types of light-based presence sensors 111, such as passive infrared (“PIR”) sensors that measure infrared (“IR”) light radiated from objects within their field of view. Additionally or alternatively, the client device 110 may be equipped with presence sensors 111 that detect sound waves (or pressure waves), such as one or more microphones.

[0035] Additionally or alternatively, in some embodiments, the presence sensor 111 may be configured to detect other phenomena associated with human presence or device presence. For example, in some embodiments, the client device 110 may be equipped with the presence sensor 111, which detects various types of wireless signals (e.g., waves such as radio, ultrasound, electromagnetic, etc.) emitted by other computing devices (e.g., mobile devices, wearable computing devices, etc.) and / or other computing devices, such as those carried / operated by the user. For example, the client device 110 may be configured to emit waves imperceptible to humans, such as ultrasound or infrared waves, which can be detected by other computing devices (e.g., via an ultrasound / infrared receiver, such as an ultrasound-enabled microphone).

[0036] Additionally or alternatively, client device 110 may emit other types of waves imperceptible to humans, such as radio waves (e.g., Wi-Fi, Bluetooth, cellular, etc.) that can be detected by other computing devices carried / operated by the user (e.g., mobile devices, wearable computing devices, etc.) and used to determine the user's specific location. In some embodiments, GPS and / or Wi-Fi triangulation may be used, for example, to detect a person's location based on GPS and / or Wi-Fi signals to / from an assistant device. In other embodiments, client device 110 may use, alone or in combination, other wireless signal characteristics, such as time-of-flight, signal strength, etc., to determine the location of a specific person based on signals emitted by other computing devices carried / operated by the user.

[0037] Additionally or alternatively, in some embodiments, client device 110 may perform speech recognition to identify the user based on their voice. For example, some instances of automation assistant 120 may be configured to match speech with a user's profile, for example, for the purpose of granting / restricting access to various resources. In some embodiments, the speaker's movement may then be determined, for example, by the presence sensor 111 of client device 110 (and optionally a GPS sensor and / or accelerometer). In some embodiments, based on such detected movement, the user's location may be predicted, and this location may be assumed to be the user's location when, at least in part, the proximity of client device 110 and / or other computing devices to the user's location makes it possible to render any content at client device 110 and / or other computing devices. In some embodiments, it may be simply assumed that the user is in the location where he or she last interacted with automation assistant 120, especially if not much time has passed since the last interaction.

[0038] Client device 110 further includes a corresponding user interface component 112, which may include one or more user interface input devices (e.g., microphone, touchscreen, keyboard, and / or other input devices) and / or one or more user interface output devices (e.g., display, speaker, projector, and / or other output devices). Furthermore, client device 110 and / or any other computing device may include one or more memories for storing data and software applications, one or more processors for accessing data and executing applications, and other components facilitating communication over a network. Operations performed by client device 110, other computing devices, and / or by automation assistant 120 can be distributed across multiple computer systems. Automation assistant 120 can be implemented, for example, via a network (e.g., Figure 1 A network (199) is a computer program running on one or more computers in one or more locations that are coupled to each other.

[0039] As described above, in various embodiments, client device 110 can operate automation assistant client 113. In various embodiments, automation assistant client 113 may include a voice capture / automatic speech recognition (ASR) / natural language processing (NLP) / text-to-speech (TTS) module 114. In other embodiments, one or more aspects of the respective voice capture / ASR / NLP / TTS module 114 may be implemented separately from automation assistant client 113 (e.g., via one or more cloud-based automation assistant components 119).

[0040] The speech capture / ASR / NLP / TTS module 114 can be configured to perform one or more functions, including, for example: capturing a user's speech (e.g., speech capture via a corresponding microphone, which in some cases may include one or more presence sensors 105); converting the captured audio into recognized text and / or other representations or embeddings (ASR) using ASR models stored in the machine learning (ML) model database 113A; parsing and / or annotating the recognized text using natural language processing (NLP) models stored in the ML model database 113A; and / or converting text into speech using speech synthesis models stored in the ML model database 113A. Instances of these ML models may be stored locally at the client device 110 and / or may be generated by the client device 110 (e.g., via...). Figure 1Network access (199). In some implementations, because one or more assistant input devices 106 may be relatively limited in terms of computing resources (e.g., processor cycles, memory, battery, etc.), the corresponding speech capture / ASR / NLP / TTS module 114 local to the client device 110 may be configured to use a speech recognition model to convert a limited number of different spoken phrases into text (or other forms, such as lower-dimensional embeddings). Some voice input may be sent to one or more cloud-based automated assistant components 115, which may include a cloud-based ASR module 116, a cloud-based NLP module 117, and / or a cloud-based TTS module 118.

[0041] The cloud-based ASR module 116 can be configured to utilize virtually unlimited cloud resources to convert audio data captured by the speech capture / ASR / NLP / TTS module 114 into text using ASR models stored in the ML model database 113A (which can then be provided to the cloud-based NLP module 117). The cloud-based TTS module 118 can be configured to utilize virtually unlimited cloud resources to convert text data (e.g., text defined by the automation assistant 120) into computer-generated speech output using speech synthesis models stored in the ML model database 113A. In some implementations, the cloud-based TTS module 118 can provide the computer-generated speech output to the client device 110 and / or other computing devices for direct output, for example, using the speakers of the client device 110 and / or other computing devices. In other implementations, text data generated by the automation assistant 120 using a cloud-based TTS module 118 (e.g., client device notifications included in commands) can be provided to the speech capture / ASR / NLP / TTS module 114 of the client device 110 and / or other computing devices, which can then use a speech synthesis model stored in the ML model database 113A to locally convert the text data into computer-generated speech, and render the computer-generated speech via the speakers of the client device 110 and / or other computing devices.

[0042] The cloud-based NLP module 117 processes natural language input generated by a user via the user interface component 112 of the client device 110 and / or other computing devices, and can generate annotated output for use by one or more other components of the automation assistant 120. For example, the cloud-based NLP module 117 can process free-form natural language input (e.g., spoken and / or typed input) generated by a user via the user interface component 112 of the client device 110. The annotated output generated based on the processing of the free-form natural language input can include one or more annotations of the natural language input and one or more (e.g., all) terms of the optional natural language input. These annotations can include, for example, intents determined based on the processing of the natural language input, slot values ​​of parameters associated with the determined intent, tags corresponding to entities included in the natural language input, parts of speech, and / or other information included in the natural language input, and / or other annotations.

[0043] In some implementations, the cloud-based NLP module 117 is configured to identify and annotate various types of syntactic information in natural language input. For example, the cloud-based NLP module 117 may include part-of-speech taggers configured to annotate terms with their syntactic roles. In some implementations, the cloud-based NLP module 117 may additionally and / or alternatively include entity taggers (not depicted) configured to annotate entity references in one or more segments, such as references to people (including, for example, literary characters, celebrities, public figures, etc.), organizations, places (real and fictional), etc. In some implementations, data about entities may be stored in one or more databases, such as in a knowledge graph (not depicted). In some implementations, the knowledge graph may include nodes representing known entities (and in some cases, entity attributes), and edges connecting nodes and representing relationships between entities. The entity tagger of the cloud-based NLP module 117 can annotate entity references at a high-granularity level (e.g., to enable the identification of all references to entity categories such as people) and / or a low-granularity level (e.g., to enable the identification of all references to a specific entity such as a particular person). The entity tagger can rely on the content of the natural language input to parse specific entities and / or can optionally communicate with a knowledge graph or other entity database to parse specific entities.

[0044] In some implementations, the cloud-based NLP module 117 may additionally and / or alternatively include a coreference parser (not depicted) configured to group or “cluster” references to the same entity based on one or more contextual clues. For example, a coreference parser may be used to resolve the term “it” in the natural language input “lock it” to “front door lock” based on a reference to “front door lock” in a client device notification rendered immediately prior to receiving the natural language input “lock it”.

[0045] In some implementations, one or more components of the cloud-based NLP module 117 may rely on annotations from one or more other components of the cloud-based NLP module 117. For example, in some implementations, a named entity tagger may rely on annotations from a coreference parser and / or a dependency parser to annotate all references to a particular entity. Furthermore, for example, in some implementations, a coreference parser may rely on annotations from a dependency parser to cluster references to the same entity. In some implementations, when processing a particular natural language input, one or more components of the cloud-based NLP module 117 may use relevant data beyond the particular natural language input to determine one or more annotations—such as a notification rendered by the automation assistant 120 at the client device 110 immediately prior to the natural language input on which the received notification is based.

[0046] While specific functionality has been described regarding the execution of one or more of the cloud-based components 115 (e.g., cloud-based ASR module 115, cloud-based NLP module 117, and cloud-based TTS module 118), it should be understood that this is for illustrative purposes and not intended to be limiting. For example, in various implementations, the voice capture / ASR / NLP / TTS module 114 may perform the same or similar functionality locally at the client device 110 (module 114 may perform the same functionality on the device) without interacting with the cloud-based automation assistant component 115.

[0047] In various implementations, the client device 110 may also include various engines. For example, and as... Figure 1 As depicted, client device 110 may also include a category engine 130, an execution engine 140, a rule engine 150, a pre-caching engine 160, and an environment sensing engine 170. In some embodiments, these various engines may be executed specifically on client device 110. In additional or alternative embodiments, one or more of these various engines may be executed remotely from client device 110 (e.g., as part of cloud-based automation assistant component 115).

[0048] Category engine 130 can process user input directed to automation assistant 120 to determine a given category associated with an assistant command included in the user input. The given category associated with the assistant command can be one of several distinct categories. These distinct categories can be defined by a taxonomy at different levels of granularity. For example, the distinct categories could include search query categories, multimedia categories, IoT device categories, communication categories, task categories, and / or other categories. Furthermore, each of these distinct categories can include one or more categories (or subcategories). For example, a search query category could include an entity category corresponding to a search query associated with people, places, and / or things; a money category corresponding to a search query associated with stocks, bank account balances, and / or other monetary information; a weather category corresponding to a search query associated with an inquiry about the weather at a specific location; a restaurant category corresponding to a search query associated with restaurants; and / or any other category associated with different types of search queries. Furthermore, each of these distinct categories (or subcategories) can include one or more categories (or further subcategories). For example, entity categories may include: state categories, city categories, business location categories, residential location categories, and / or other location-related categories, such as address categories; celebrity categories, contact entry categories, and / or other categories associated with individuals or personal information (e.g., email address categories, phone number categories, etc.), and so on. While the examples above describe categories for search queries, it should be understood that this is intended to illustrate different levels of granularity for a given category and is not intended to be restrictive. For example, a multimedia category may include a music category, which further includes genre categories, which in turn include corresponding categories for various music genres, and so on.

[0049] In some implementations, category engine 130 may enable the use of one or more ML models stored in ML model database 113A to process user input to determine a given category associated with an assistant command included in the user input. For example, in an implementation where the user input is spoken utterance directed to automation assistant 120, category engine 130 may enable speech capture / ASR / NLP / TSS module 114 to use an ASR model to process audio data corresponding to the spoken utterance to generate multiple speech hypotheses for the spoken utterance, and may select a given speech hypothesis as the recognized text corresponding to the spoken utterance. Furthermore, category engine 130 may enable speech capture / ASR / NLP / TSS module 114 to use one or more NLP models to process the recognized text to annotate the recognized text corresponding to the spoken utterance. Category engine 130 may determine a given category associated with an assistant command based on the annotations of the recognized text. For example, suppose the user provides the spoken utterance “How is my XYZ stock performing today?” The annotation for the spoken utterance may correspond to, for example, “money,” “stock,” “search query,” and / or other annotations. Based on these annotations, category engine 130 can determine that spoken utterances correspond to a search query category, a money information category, a stock category, and / or another given category. As another example, in an implementation where the user input is typed input directed to the automation assistant 120, category engine 130 can cause the speech capture / ASR / NLP / TSS module 114 to use one or more NLP models to process the text corresponding to the typed input to annotate the text, and category engine 130 can determine a given category associated with an assistant command based on the annotations.

[0050] Fulfillment engine 140 can generate fulfillment data used to execute the various assistant commands described herein. The fulfillment data obtained by fulfillment engine 140 can take various forms. For example, suppose a user provides the spoken words “Where were the outdoor shots of 'The Shining' filmed?”. Further suppose that an ASR model stored in ML model database 113A can be used to process the audio data capturing the spoken words to generate recognized text, and an NLP model stored in ML model database 113A can be used to process the recognized text to determine the user's intent and any slot values ​​of the parameters associated with that intent. In this example, the user's intent in providing the spoken words can be determined as a search query intent with the slot value “Where were the outdoor shots of 'The Shining' filmed?” with the query parameter. The intent and the slot values ​​of the query parameters can be provided to fulfillment engine 130, and fulfillment engine 130 can generate fulfillment data for the search query. The fulfillment data generated based on the search query can include data indicating the search query, such as the text of the query, a dimensionality-reduced embedding representing the search query, and / or other data. Furthermore, the automation assistant 120 can cause execution data to be transmitted to a search engine (e.g., executed at one or more of first-party servers 191 and / or one or more of third-party servers 192) to obtain response content to be presented to the user in response to a search query. For example, the response content may include GPS coordinates or other more specific information, such as "Oregon, Mount Hood, Forest Boundary Lodge". While the above examples are provided as assistant commands for search queries, it should be understood that this is for illustrative purposes and not intended to be limiting. Other assistant commands, for example, may include ordering goods / services, starting a timer, setting a reminder, initiating a phone call, playing media, sending a message, etc.

[0051] In some implementations, the fulfillment engine 140 may determine the type of fulfillment data required to perform a specific fulfillment of an assistant command based on the assistant command and / or a given category associated with the assistant command. The type of fulfillment data may include, for example, client device data generated by client device 110 (e.g., by automation assistant 120), third-party application data generated by one or more third-party applications accessible to client device 110, server data generated by one or more of first-party servers 191 or third-party servers 192, and / or other types of fulfillment data. Continuing the example above, and as described above, fulfillment data generated based on the search query “Where were the outdoor shots of 'The Shining' filmed?” may be transmitted to a search engine (e.g., executed at one or more of first-party servers 191 and / or third-party servers 192) to obtain response content to be presented to the user in response to the search query. In this example, the fulfillment required to perform the specific fulfillment to obtain the response content may be server data, since the search engine used to obtain the response content is executed by one or more servers (e.g., one or more of first-party servers 191 and / or third-party servers 192).

[0052] In additional or alternative implementations, the fulfillment engine 140 may determine the type of fulfillment data required to perform a specific fulfillment of an assistant command based on one or more context signals associated with the client device 110. One or more context signals may include, for example, the capabilities of a given server (e.g., one or more of first-party servers 191 and / or third-party servers) and / or a given application (e.g., one or more first-party applications and / or third-party applications) accessible at the client device 110, whether the given application (e.g., one or more first-party applications and / or third-party applications) is running in the foreground or background of the client device 110, and / or other context signals associated with the client device 110. The automation assistant 120 may determine the capabilities of a given server and / or a given application based on: indications from the given server and / or the given application that it provides capabilities to the automation assistant 120 (e.g., by issuing one or more assistant commands that the given server and / or the given application can fulfill to the automation assistant 120), the content currently displayed in the foreground of the given application on the client device 110, the expected entity type of the given server and / or the given application matching the entity type included in the given assistant command, and / or other signals.

[0053] The types of fulfillment data may include, for example, client device data generated by client device 110 (e.g., by automation assistant 120), third-party application data generated by one or more third-party applications accessible to client device 110, server data generated by one or more of first-party servers 191 or third-party servers 192, and / or other types of fulfillment data. Continuing the example above, and as described above, fulfillment data generated based on the search query “Where were the outdoor shots of 'The Shining' filmed?” can be transmitted to a search engine (e.g., executed at one or more of first-party servers 191 and / or third-party servers 192) to obtain response content to be presented to the user in response to the search query. In this example, the fulfillment required to perform the specific fulfillment to obtain the response content can be server data, since the search engine used to obtain the response content is executed by one or more servers (e.g., one or more of first-party servers 191 and / or third-party servers 192).

[0054] Rule engine 150 can determine whether a given category corresponds to one or more specific categories. One or more specific categories may include subsets of multiple different categories and may be defined similarly at different levels of granularity. In some implementations, rule engine 150 may use one or more rules stored in rule database 150A to determine whether a given category corresponds to one or more specific categories. In these implementations, the one or more rules may include, for example, user-defined rules indicating that any assistant command associated with a given category corresponds to one or more specific categories (e.g., certain types of queries can always be fulfilled using certain types of fulfillment data, etc.), default rules indicating that any assistant command associated with a given category corresponds to one or more specific categories (e.g., money information query, medical query, event query, etc.), inference rules indicating that a previous assistant command associated with a given category corresponds to one or more specific categories, and / or other rules. In additional or alternative implementations, rule engine 150 may use one or more ML models stored in ML model database 113A to determine whether a given category corresponds to one or more specific categories. In these implementations, one or more ML models may be trained to generate semantic embeddings (or any other lower-dimensional representations) for a given category based on instructions for processing the given category. A semantic embedding can be compared in the embedding space with a previously generated embedding for one or more specific categories, and if the semantic embedding is within a threshold distance of the corresponding one of the previously generated embeddings, then the given category can be considered to correspond to one or more specific categories.

[0055] In some implementations, in response to determining that a given category corresponds to one or more specific categories, the automation assistant 120 may generate a prompt requesting the user's consent to transmit a request including performance data based on the type of performance data required to execute a specific performance of the assistant command. For example, if server data from a server (e.g., one or more of first-party server 191 and / or third-party server 192) is required to perform a specific performance, and the given category corresponds to one or more specific categories, the automation assistant 120 may generate a prompt requesting the user's consent to transmit a request to obtain server data for performing the specific performance. As another example, if third-party application data from a third-party application accessible at client device 110 (e.g., installed on client device 110 or accessible by client device 110 via network 199) is required to perform a specific performance, and the given category corresponds to one or more specific categories, then the automation assistant 120 may generate a prompt requesting the user's consent to transmit a request to obtain third-party application data for performing the specific performance. Furthermore, the automation assistant 120 may cause the prompt to be presented to the user via one or more user interface components 112 of client device 110 (e.g., audibly and / or visually). However, in response to determining that a given category does not correspond to one or more specific categories, the automation assistant 120 can transmit performance data to obtain response content without prompting the user.

[0056] For example, suppose a user provides the verbal statement "How is my XYZ stock today?", and category engine 130 determines that the verbal statement corresponds to the money information category. Further suppose that fulfillment engine 140 determines that, in order to obtain a response to the verbal statement (e.g., a stock update regarding the user's XYZ stock), automation assistant 120 needs to transmit a request to a given third-party server associated with the user's financial institution. Additionally, suppose that rules engine 150 determines that the money information category corresponds to one or more specific categories based on rules (or default rules) previously defined by the user indicating that any search query related to money information corresponds to one or more specific categories. Therefore, automation assistant 120 may generate a prompt requesting the user's consent to transmit the request to the given third-party server associated with the user's financial institution. In response to receiving consent for the transmission request from the user on client device 110, automation assistant 120 may cause the request to be transmitted. When transmitting the request, automation assistant 120 may optionally include an indication that the request itself and / or other data transmitted along with the request (e.g., captured audio data of the verbal statement) cannot be remotely stored by the given third-party server associated with the user's financial institution (e.g., non-temporarily). Therefore, the automation assistant 120 can ensure that the user's specific data on the client device 110 is secure and private, because the user is aware of any data being transmitted from the client device 110 and because any transmitted data will not persist anywhere other than on the client device 110.

[0057] In contrast, suppose a user disagrees with a transmission request in response to a prompt provided by the automation assistant 120 for presentation to the user. In this example, the automation assistant 120 can generate client-side data locally at the client device as an alternative fulfillment of the assistant command. For example, the pre-caching engine 160 may have previously cached content for fulfilling the assistant command. However, this pre-cached content for fulfilling the assistant command may not correspond to the content required for a specific fulfillment of the assistant command. Instead, the automation assistant 120 can use this pre-cached content as an alternative fulfillment of the assistant command. Continuing the example above, the pre-caching engine 160 may have previously cached content associated with the stock code of XYZ stock or the historical trend of XYZ stock. Therefore, if the user disagrees with transmitting a request to a given third-party server associated with the user's financial institution for real-time updates, the automation assistant 120 can cause this pre-cached content, local to the client device 110, to be provided to the user of the client device 110.

[0058] The pre-caching engine 160 can periodically send requests to various servers and / or third-party applications to obtain pre-cached content. In some implementations, the pre-caching engine 160 can obtain pre-cached content for a threshold number of frequent assistant commands provided by the user and / or other users of the client device. For example, if a user frequently requests stock updates, the pre-caching engine 160 can obtain pre-cached content for stock updates (e.g., stock codes, historical trends, future forecasts, etc.). The pre-cached content may have been previously obtained by the automation assistant 120 in the following ways: by storing content previously obtained in response to the most recent instance of an assistant command (where the user previously agreed to the transmission request), by requesting a specific content item at a specific time of day (e.g., pre-caching information about a user's specific stock or other specific stocks each morning (e.g., based on popularity), and / or other means. As another example, if the user frequently provides smart device control commands, the pre-caching engine 160 may obtain pre-cached content to control one or more smart devices associated with the user of client device 110. By providing pre-cached content, the user of client device 110 is still provided with some response content, although it may not be the specific fulfillment initially expected by the user of client device 110.

[0059] In additional or alternative implementations, the automation assistant 120 may generate a prompt requesting the user's consent to the transmission of data, including fulfillment requests, based on features of the user input, and may provide the prompt to the user. In these implementations, the automation assistant 120 may generate the prompt based on features of the user input even if a given category of the assistant command included in the user input does not correspond to one or more specific categories as described herein. Features of the user input may include, for example, correspondence values ​​associated with each speech hypothesis generated using an ASR model (e.g., via speech capture / ASR / NLP / TTS module 114 and / or ASR module 116) when the user input is spoken, the audio level of the spoken utterance when the user input is spoken, and / or other features of the user input. For example, if the automation assistant 120 lacks confidence in the recognized text predicted to correspond to spoken utterance (e.g., determined based on correspondence values ​​of multiple speech hypotheses), the automation assistant 120 may generate a prompt requesting the user to verify that the spoken utterance points to the automation assistant 120. This also provides the user with an opportunity to correct any ASR errors. As another example, if the automation assistant 120 determines that the audio level of the spoken words detected at the client device 110 fails to meet a threshold noise level, then the automation assistant 120 can generate a prompt requesting the user to verify that the spoken words refer to the automation assistant 120. In other words, the automation assistant 120 can analyze the characteristics of the user input to determine whether the user input is unintentional and / or misunderstood, and optionally also include an indication of this in the prompt while requesting the user's consent to the transmission request.

[0060] In various implementations, such as when a user inputs spoken words corresponding to the user of client device 110, the environmental sensing engine 170 can use one or more environmental noise models stored in the ML model database 113A to process the audio data capturing the spoken words to determine whether the audio data also captures environmental noise corresponding to a given category. The given category of environmental noise can also be one of several different categories defined at different levels of granularity. For example, the several different categories of environmental noise can include conversation categories, commuting categories, multimedia categories, and / or other categories. Furthermore, the several different categories of environmental noise can include one or more categories (or subcategories) similar to several different categories of assistant commands. For example, a conversation category can include (e.g., identified using a speech recognition model) categories of several different users.

[0061] Specifically, the audio sensing engine 170 can use an ambient noise model to process audio data corresponding to spoken utterances to generate outputs associated with one or more acoustic properties of the environment of the client device 110 (e.g., ambient noise levels, classifications of ambient noise detected in the environment, and / or other acoustic properties of the environment). The ambient noise model can be trained based on multiple training instances, each including training instance inputs and training instance outputs. The training instance inputs may each include audio data capturing spoken utterances, and the corresponding training instance outputs may include ground truth labels corresponding to the ambient noise levels captured in the audio data and / or the types of noise also captured in the audio data (e.g., people talking (and optionally the identities of these people), vehicle movement, television programs or movies playing in the background, and / or other types of noise).

[0062] In some implementations, the output generated across the ambient noise model may be a value corresponding to the noise level (e.g., decibel level) of the user's environment when the spoken words were received and / or one or more labels corresponding to the type of noise detected in the user's environment when the spoken words were received. For example, if the audio data corresponds to audio data captured when a user of client device 110 commutes to and from work by bus, then the output generated across the acoustic model based on processing the audio data may be a "commuter" and / or "bus" label based on noise generated by the bus, and / or a decibel level detected based on bus movement (e.g., 90 dB, etc.). In additional or alternative implementations, the output generated across the ambient noise model may be one or more labels corresponding to the type of noise detected in the user's environment when the spoken words were received, and a corresponding metric (e.g., binary value, probability, log-likelihood, and / or other metric) associated with each of the one or more labels. For example, if the audio data corresponds to audio data captured when a user on client device 110 commutes to and from work by bus, then the output generated based on the cross-acoustic model that processes the audio data could be an associated "bus" label with a probability of 0.6 and an associated "car" label with a probability of 0.4, or an associated "bus" label with a value of 1.0 and an associated "car" label with a value of 0.0.

[0063] In some versions of these implementations, the automation assistant 120 may generate a prompt that identifies any ambient noise detected in the audio data and requests the user of client device 110 to consent to transmitting the request to a third-party application and / or server in the same or similar manner as described above to obtain response content. Based on further user input received in response to the prompt, the automation assistant 112 may or may not transmit the request to the third-party application and / or server. In some additional or alternative versions of those implementations, when transmitting the request to obtain response content in response to spoken words, the automation assistant 120 may include an indication that any audio data transmitted along with the request cannot be stored (e.g., non-transitory) by the third-party application and / or server that receives and processes the request. Therefore, the automation assistant 120 can ensure that the user's specific data on client device 110 is secure and private because the user is aware of any data being transmitted from client device 110 (even if unintentionally captured in the audio data) and because any transmitted data will not persist anywhere other than on client device 110.

[0064] Although Figure 1 This description pertains to a single client device with a single user, but it should be understood that this is for illustrative purposes and not intended to be limiting. For example, one or more additional client devices for the user may also implement the techniques described herein. These additional client devices may communicate with client device 110 (e.g., via network 199). As another example, a given client device may be used by multiple users in a shared setup (e.g., user group, family).

[0065] By using the techniques described herein, one or more technical advantages can be achieved. For example, the techniques described herein enable automated assistants to limit when and / or what data generated locally on a client device is transmitted to a server and / or third-party applications, thereby improving the security and privacy of user data. For example, the techniques described herein can proactively prompt the user before transmitting specific data and can require a positive input in response to the prompt before the specific data is transmitted, or can prevent the transmission of specific data if a positive input is not received (e.g., instead of receiving it, a negative input). This ensures that specific data remains secure without relying on the user manually specifying whether the specific data should remain secure before issuing the assistant command.

[0066] As another example, the technology described herein enables automated assistants to selectively notify users when and / or what data will be transmitted from a client device in response to an assistant command provided by the user, and allows users to provide concise input (e.g., a verbal "yes" or "no," or clicking a graphical interface element) to indicate whether such data should be transmitted. This concise input can be more efficient than, for example, navigating the menus of an automated assistant app to manually identify data settings and specify which data settings might require multiple inputs. Furthermore, combining the automated assistant's request with prompts makes it easier for users to understand which type(s) of data their response to the prompt will apply, rather than manually defining rules associated with various categories, which can be cumbersome for users. Additionally, user responses to prompts can be used to indicate whether future user data (e.g., data of the same one or more categories) should be transmitted. This can reduce or eliminate the need for users to provide future user input related to the transmission of future user data.

[0067] Turn now Figure 2 This describes a flowchart of an example method 200 for determining whether to transmit a request to a server to obtain server data used in a specific execution of an assistant command. For convenience, the operation of method 200 is described with reference to a system performing the operation. This system of method 200 includes one or more processors and / or other components of a computing device (e.g., Figure 1 Client device 110 Figure 3A and Figure 3B Client device 310, Figure 5A and Figure 5B Client device 410, Figure 7A and Figure 7B Client devices 710 and / or Figure 8 (Computing device 810, one or more servers and / or other computing devices). Furthermore, although the operations of method 200 are shown in a specific order, this does not imply limitation. One or more operations may be reordered, omitted, and / or added.

[0068] At box 252, the system receives user input directed to the automation assistant via the user's client device. The user input may include assistant commands to be executed by the automation assistant. In some embodiments, the user input may be verbal input captured in audio data generated by the client device's microphone, while in additional or alternative embodiments, the user input may be typed input detected via the client device's input device.

[0069] At box 254, the system processes user input locally at the client device to determine a given category associated with the assistant command included in the user input. This given category is one of several distinct categories. The given category of the assistant command can be defined at different levels of granularity (e.g., regarding...). Figure 1 (As described in category engine 130). In some implementations, such as when the user input is spoken utterance, the system can use an on-device ASR model to process the audio data of the captured spoken utterance to generate recognized text. Additionally, the system can use an NLP model to process the recognized text to generate annotations for the recognized text, and the system can determine a given category based on the annotations. In additional or alternative implementations, such as when the user input is typed input...

[0070] At box 256, the system determines whether server data is needed to perform a specific execution of an assistant command. In other words, the system determines whether data needs to be sent to the server (e.g., ...). Figure 1 The system transmits a request to one or more of the first-party server 191 and / or third-party server 192 to obtain the response content of the assistant command included in the user input. The system may determine whether the request needs to be transmitted to the server based on, for example, the type of performance data indicating that server data is needed to perform the specific performance of the assistant command, the capabilities of various servers, and / or other criteria. If, at the iteration of box 256, the system determines that server data is not needed to perform the specific performance of the assistant command, the system proceeds to box 258. At box 258, the system causes the client device to generate and utilize data to perform the specific performance of the assistant command. For example, if the user input includes an assistant command to set a timer, set an alert, and / or any other assistant command that can be executed locally on the client device, then the system may generate and utilize client data to perform the specific performance of setting a timer, setting an alert, etc. As another example, if the user input includes an assistant command pointing to a third-party application, then the system may utilize the data described herein. Figure 4 The described technique is used to obtain data from third-party applications. When additional user input directed to the automation assistant is received via the user's client device, the system returns to box 252 and executes subsequent iterations of method 200.

[0071] If, at the iteration in box 256, the system determines that server data is needed to perform a specific fulfillment of an assistant command, the system proceeds to box 260. For example, if user input includes performing a search query, an assistant command to control an IoT device, and / or any other assistant command in which server data from a first-party server and / or a third-party server is needed to perform a specific fulfillment, the system proceeds to box 260. At box 260, the system determines whether a given category corresponds to one or more specific categories. The system may use one or more rules (e.g., regarding...) Figure 1The rules engine described in 150 determines whether a given category corresponds to one or more specific categories.

[0072] If, at the iteration of box 260, the system determines that a given category does not correspond to one or more specific categories, the system proceeds to box 270. Box 270 is described below. If, at the iteration of box 260, the system determines that a given category does indeed correspond to one or more specific categories, the system proceeds to box 262. At box 262, the system generates a prompt requesting the user's consent to transmit a request to the server to obtain server data necessary to perform a specific service. At box 264, the system causes the prompt to be provided to the user via the client device. For example, suppose the user input includes a command to perform a search query on the server to find an assistant for divorce lawyers, and suppose the search query related to obtaining legal services corresponds to one or more specific categories. In this example, the system could generate a prompt instructing the automated assistant that a request needs to be transmitted to the server to perform a specific service (e.g., obtaining search results for divorce lawyers) and requesting the user's consent to transmit the search query to the server.

[0073] At box 266, the system determines whether additional user input agreeing to transmit a request to the server to obtain server data has been received. If, at the iteration of box 266, the system determines that no additional user input has been received or that additional input disagreeing with the transmission request has been received, the system proceeds to box 268. For example, if the system determines that the user has provided additional user input disagreeing with the transmission (e.g., closing the prompt or responding negatively to the prompt), or if the system determines that the user ignored the prompt, the system may prevent the transmission request to the server. In some implementations, the system may monitor additional user input only for a threshold duration that would cause the prompt to be provided to the user.

[0074] At box 268, the system causes the client device to generate and utilize client data to perform alternative fulfillment of an assistant command. In some implementations, such as when pre-cached content is available for the assistant command, the client data obtained to perform alternative fulfillment may include obtaining the pre-cached content (e.g., regarding...). Figure 1 (As described in pre-caching engine 160). In other embodiments, the system may search the client device for any other data that can be used to execute any alternative fulfillment of the assistant command. In some embodiments, the system may make it so that the instruction to fulfill the command cannot be executed without server data. When additional user input for the automation assistant is received via the user's client device, the system returns to box 252 and executes subsequent iterations of method 200.

[0075] If, at the iteration in box 266, the system determines that additional user input is agreed to the transmission request, the system proceeds to box 270. At box 270, the system generates a request to be transmitted to the server to obtain server data. At box 272, the system causes the request to be transmitted to the server to obtain server data. At box 274, the system causes the client device to use the received server data to perform a specific execution of the assistant command. In other words, if the user agrees to the system transmitting the request to the server to obtain server data, the system can execute the specific execution of the assistant command as usual. In some implementations, when generating the request to be transmitted to the server, the system may include an indication that any client data transmitted from the client device to the server should not be stored or persisted at the server. In some implementations, the user's consent to the transmission request can be used to update one or more rules. For example, if a user agrees to transmit a search query for finding a divorce lawyer to the server, the system may not prompt the user to agree to transmit search queries related to obtaining legal services in the future.

[0076] Turn now Figure 3A and Figure 3B This describes various non-limiting examples of determining whether to transmit a request to the server to obtain server data used in a specific execution of an assistant command. In client device 310 (e.g., Figure 1 An automation assistant executing locally at an instance of client device 110 can perform one or more of the operations described herein, such as Figure 2 Method 200 operation. Although in Figure 3A and Figure 3B The client device 310 depicted is a stand-alone interactive speaker with a microphone and a speaker, but it should be understood that this is for illustrative purposes and not intended to be limiting. For example, the client device 310 may additionally or alternatively be as follows: Figure 5A and Figure 5B The mobile devices described in the document, such as Figure 7A and Figure 7B The description includes stand-alone interactive speakers with displays, in-vehicle client devices or systems, desktop computers, laptop computers, and / or any other client devices.

[0077] For details, please refer to the following: Figure 3ASuppose user 301 provides the spoken words 352A directed to the automated assistant: “Assistant, how is my XYZ stock doing today?” The audio data of the spoken words can be detected by the microphone of client device 310 and can be processed using an on-device ASR model to generate recognized text corresponding to the spoken words 352A. In some implementations, in response to determining that the automated assistant has been invoked (e.g., by a specific word or phrase (e.g., “Assistant,” “Hey, Assistant,” etc.), by pressing a hardware or software button, and / or by other means), the audio data can be processed using an on-device ASR model. Furthermore, an on-device NLP model can be used to process the recognized text corresponding to the spoken words 352A to generate annotations for the recognized text and / or determine the intent of user 301 in providing the spoken words 352A. For example, further suppose the automated assistant determines the intent of a stock inquiry based on the output generated using an NLP model, determines the current value of the XYZ stock slot value and the stock price parameter, and determines whether the given category of the assistant's command, including the spoken utterance, is a general search query category, or more specifically, a money information category. In this example, the automated assistant may determine that server data is needed to perform a specific fulfillment in response to the stock inquiry by providing a stock update to user 301, because the automated assistant must transmit a request to the server to obtain the response content for the spoken utterance 352A and obtain the current stock price of the XYZ stock (e.g., to determine the current value of the user's XYZ stock).

[0078] Furthermore, it is assumed that the automated assistant determines that the category of money information associated with the assistant command included in spoken utterance 352A corresponds to one or more specific categories of consent that triggered the automated assistant to request the transmission of the request from user 301 to the server. In some implementations, the automated assistant may determine that the category of money information corresponds to one or more specific categories based on one or more rules. One or more rules may include, for example, user-defined rules, default rules, inferred rules, and / or other rules. For example, user 301 may have previously defined a rule instructing user 301 to provide consent to transmit the request from client device 310 when an assistant command associated with obtaining money information is identified. As another example, a default rule may instruct user 301 to provide consent to transmit the request from client device 310 when an assistant command associated with obtaining money information is identified. As yet another example, an inferred rule may be inferred that user 301 should be prompted to provide consent to transmit the request from client device 310 when an assistant command associated with obtaining money information is identified based on user 301's previous restriction of access to money information (e.g., password-protected information, previously canceled other requests for obtaining money information, etc.). While this document describes specific rules, it should be understood that this is for illustrative purposes and not intended to be limiting. In additional or alternative implementations, ML models can be used to process an indication of a given category to determine if it corresponds to one or more specific categories (e.g., regarding...). Figure 1 (As described in category engine 130).

[0079] In response to determining that a given category corresponds to one or more specific categories, the automation assistant may generate a prompt 354A2, "I can better answer your question by talking with a cloud service, is that okay?", and cause the prompt to be presented to user 301 via the speaker of client device 310. It is worth noting that prompt 354A2 requests user 301's consent to transmit a request to the server to obtain response content for the execution of a specific performance regarding XYZ stock. In some implementations, additional information 354A1 may be provided to user 301 along with prompt 354A2. Figure 3AAs described herein, the additional information 354A1 may include an indication of a given category that triggers prompt 354A2, such as “This is the first time you have asked me a question related to your stocks.” Accordingly, the automation assistant may notify the user 301 that data needs to be transmitted from the client device 310 to perform a specific fulfillment of an assistant command, and may request the user 301’s consent to transmit the data from the client device 310.

[0080] Further assuming user 301 provides the additional verbal statement 356A "Yes" to consent to transmitting a request to the server to receive response content. In this example, the automation assistant can generate a request for server data, as instructed by 358A1, transmit the request for server data to the server, as instructed by 358A2, and receive server data to perform a specific fulfillment of the assistant's command, as instructed by 358A3. The automation assistant can then cause response content 358A4 "XYZ stock is up to $150 per share, which is a 2.5% increase" and response content 385A5 "Your XYZ stock now totals $900" to be presented to user 301 via the speaker of client device 310. In some implementations, and even if user 301 requests transmission to the server, the request may be transmitted along with an indication that the request (and any data transmitted with the request, such as audio data of captured spoken words 352A) cannot (e.g., not temporarily) be stored at the server. In these and other ways, if user 301 indicates that desired data is to be transmitted from device 301 by including an indication that the data cannot be persistently present anywhere other than the client device 310 itself, the automated assistant can perform a specific fulfillment of the assistant command while also ensuring that user 301's data is secure and private. In some implementations, if user 301 subsequently provides another spoken word including an assistant command determined to belong to the money information category, the automated assistant may not prompt user 301 for consent because user 301 previously consented to transmit the request to the server. In other words, the automated assistant can generate an inference rule based on user 301's consent to transmit the request, i.e., that an assistant command associated with the money information category can be transmitted to the server without prompting user 301 for consent.

[0081] In contrast, and see details. Figure 3BFurthermore, it is assumed that the user provides additional verbal utterance 356B "No" indicating disagreement with transmitting a request to the server for a response. In this example, the automated assistant can obtain device data as instructed by 358B1 to perform an alternative fulfillment of the assistant's instructions. Device data may include, for example, pre-cached content associated with a category of money information (e.g., using...). Figure 1 The response content 358B2, “The ticker symbol for XYZ stock on the New York Stock Exchange is, ironically, XYZ,” can be provided to user 301 via the speaker of client device 310. This response content 358B2 can be considered an alternative fulfillment of the assistant command, as it is not the content expected by user 301, but it is still related to the assistant command (e.g., information about XYZ stock). In some implementations, if user 301 subsequently provides another verbal statement including an assistant command determined to belong to the money information category, the automated assistant may not prompt user 301 for consent because user 301 previously disagreed with transmitting the request to the server. In other words, the automated assistant can generate an inference rule based on user 301's disagreement with transmitting the request, namely, that an assistant command associated with the money information category cannot be transmitted to the server. Therefore, an automation assistant can prompt the user with a 301 consent or request additional device data to provide a response to subsequent verbal statements.

[0082] Although this article describes sending a single request to a server to obtain server data in order to perform a specific fulfillment. Figure 3A and Figure 3BHowever, it should be understood that this is for illustrative purposes only and not intended to be limiting. For example, to perform specific fulfillment of data, it may be necessary to transmit multiple requests to various servers and / or third-party applications. For instance, a first request might be transmitted to a third-party application accessible to client device 310 to identify the user's monetary information regarding XYZ stock, and a second request might be transmitted to a third-party server to determine the current stock price of XYZ stock. In this example, the user may be prompted to consent to the transmission of requests to each server and / or third-party application required to obtain the response content. Therefore, when specific data generated locally on client device 310 may be transmitted from client device 310, user 301 may be notified, and user 301 may be given an opportunity to prevent the transmission of that specific data from client device 310. Furthermore, even if user 301 does consent to the transmission of specific data from client device 310, that specific data may be transmitted along with an indication that that specific data cannot be stored anywhere it is transmitted.

[0083] Furthermore, although regarding the user's 301 clause simply providing consent (e.g., Figure 3A Verbal expressions in 356A “yes” and refusal to agree (e.g., Figure 3B The spoken word 356B "no" is used to describe Figure 3A and Figure 3B However, it should be understood that this is for illustrative purposes and not intended to be restrictive. For example, user 301 could further define the scope of the extended consent. For example, suppose in Figure 3A In the example, the verbal consent given is "Yes, always transmit requests for stock inquiries to the server." In this case, user 301 has already given blanket consent to transmitting requests for stock inquiries, and may not be prompted for further consent in the future (unless otherwise instructed by user 301). Furthermore, for example, suppose in... Figure 3A In the example, the verbal consent given is "Yes, but just for this stock." In this case, user 301 has already given a blanket consent to the request to transmit a stock inquiry regarding XYZ stock (but not other stocks), and in the future, user 301 may be prompted to give consent for stock inquiries about XYZ stock, but will be prompted to give consent for other stocks. Therefore, not only can user 301 give or refuse consent, but user 301 can also give various degrees of consent.

[0084] Turn now Figure 4The diagram depicts a flowchart of an example method 400 for determining whether to transmit a request to a third-party application to obtain third-party application data to be used in the execution of a specific fulfillment of an assistant command. For convenience, the operation of method 400 is described with reference to a system performing the operation. The system of method 400 includes one or more processors and / or computing devices (e.g., Figure 1 Client device 110 Figure 3A and Figure 3B Client devices 310, 5A and Figure 5B Client device 410, Figure 7A and Figure 7B Client devices 710 and / or Figure 8 Other components of the computing device 810, one or more servers and / or other computing devices. Furthermore, although the operations of method 400 are shown in a specific order, this does not imply limitation. One or more operations may be reordered, omitted, and / or added.

[0085] At box 452, the system receives user input directed to the automation assistant via the user's client device, the user input including assistant commands. In some embodiments, the user input may be verbal input captured in audio data generated by the microphone of the client device, while in additional or alternative embodiments, the user input may be typed input detected via the input device of the client device.

[0086] At box 454, the system determines whether third-party application data is needed to perform a specific fulfillment of the assistant command. In other words, the system determines whether a request needs to be transmitted to a third-party application (e.g., accessible by the client device) to obtain response content for the assistant command included in user input. The system may determine whether a request needs to be transmitted to a third-party application based on, for example, the type of fulfillment data indicating that third-party application data is needed to perform a specific fulfillment of the assistant command, the capabilities of various third-party applications accessible by the client device, one or more context signals associated with the third-party application executing on the client device, and / or other criteria. In some implementations, the system may determine whether third-party application data is needed to perform a specific fulfillment of the assistant command simply in response to determining that a given category of the assistant command corresponds to one or more specific categories.

[0087] If, at the iteration in box 454, the system determines that no third-party application data is needed to perform the specific execution of the assistant command, the system proceeds to box 456. At box 456, the system causes the client device to generate and utilize data to perform the specific execution of the assistant command. For example, if the user input includes assistant commands such as setting a timer, setting an alert, and / or any other assistant commands that can be executed locally on the client device, then the system can generate and utilize client data to perform the specific execution of setting a timer, setting an alert, etc. As another example, if the user input includes assistant commands pointing to a server, the system can utilize the data described herein. Figure 2 The described technique is used to obtain server data. When additional user input directed to the automation assistant is received via the user's client device, the system returns to box 452 and executes subsequent iterations of method 400.

[0088] If, at the iteration in box 454, the system determines that third-party application data is needed to perform a specific fulfillment of the assistant command, the system proceeds to box 458. At box 458, the system generates a prompt requesting the user's consent to transmit a request to the server to obtain server data. At box 460, the system causes the prompt to be provided to the user via the client device. For example, suppose the user input includes an assistant command to inquire about a bank account balance, and suppose a banking application installed on the user's client device can provide a response to the user's inquiry. In this example, the system could generate a prompt indicating that the automated assistant needs to transmit a request to the banking application to perform a specific fulfillment (e.g., obtain a response to the inquiry) and requesting the user's consent to transmit a search query to the banking account application.

[0089] At box 462, the system determines whether additional user input agreeing to transmit a request to a third-party application to obtain third-party application data has been received. If, at the iteration of box 462, the system determines that no additional user input has been received or that additional input disagreeing with the transmission request has been received, the system proceeds to box 464. At box 464, the system causes the client device to generate and use the client data to perform an alternative execution of the assistant command. When additional user input pointing to the automation assistant is received via the user's client device, the system returns to box 452 and executes a subsequent iteration of method 400. If, at the iteration of box 462, the system determines that additional user input agreeing to the transmission request has been received, the system proceeds to box 466. At box 466, the system generates a request to transmit to the third-party application to obtain third-party application data. At box 468, the system causes the request to be transmitted to the third-party application to obtain third-party application data. At box 470, the system causes the client device to use the received third-party application data to perform a specific execution of the assistant command. Figure 2 Boxes 266 to 274 are in the same or similar manner, but regarding third-party applications and third-party application data execution. Figure 4 The frames are 462 to 470.

[0090] Although this article describes how to send requests to third-party applications in response to user input, including assistant commands, to obtain data from third-party applications. Figure 4 However, it should be understood that this is for illustrative purposes and not intended to be limiting. For example, regarding... Figure 4 The described technique can be used in scenarios where an assistant command instructs a third-party application to perform an action in response to the assistant command. For example, in an implementation that uses a third-party navigation application (and / or a corresponding third-party server) to provide directions to a specific address, the user may be prompted to agree to transmit a request including the address before transmitting any requests to the third-party navigation application (and / or the corresponding third-party server).

[0091] Turn now Figure 5A and Figure 5B This describes various non-limiting examples of determining whether to transmit a request to a third-party application to obtain third-party application data used in a specific execution of an assistant command. In client device 510 (e.g., Figure 1 An automation assistant executing locally at an instance of client device 110 can perform one or more of the operations described herein, such as Figure 4 Method 400 operation. Although in Figure 5A and Figure 5B The client device 510 depicted is a mobile device, but it should be understood that this is for illustrative purposes and not intended to be limiting. For example, the client device 510 may additionally or alternatively be, as... Figure 3A and Figure 3B The independent interactive speaker described in the text, such as Figure 7A and Figure 7B The description includes stand-alone interactive speakers with displays, in-vehicle client devices or systems, desktop computers, laptop computers, and / or any other client devices.

[0092] Figure 5A and Figure 5B The client device 510 depicted may include various user interface components, including, for example, a microphone for generating audio data based on spoken words and / or other audible input, a speaker for audibly rendering synthesized speech and / or other audible output, and a display 590 for receiving touch input and / or visually rendering transcription and / or other visual output. Furthermore, the display 590 of the client device 510 includes components that can be accessed by a user (e.g., Figure 3A and Figure 3BThe user 301 interacts with the client device 510 to cause it to perform one or more actions through various system interface elements 591, 592, and 593 (e.g., hardware and / or software interface elements). The display 590 of the client device 510 enables the user to interact with the content rendered on the display 590 via touch input (e.g., by pointing user input at the display 590 or a portion thereof) and / or via verbal input (e.g., by selecting microphone interface element 594—or simply by speaking without having to select microphone interface element 594 at the client device 510 (i.e., the automation assistant can monitor one or more terms or phrases, gestures, gaze, mouth movements, lip movements, and / or other conditions used to activate verbal input)).

[0093] For example, and specifically refer to Figure 5A Suppose that a user of client device 510 is interacting with a restaurant reservation application (e.g., a third-party application accessible to client device 510) as indicated by 511A. Further assume the user is viewing restaurants, such as a hypothetical café as indicated by 520 and a sample restaurant as indicated by 530. Further assume the user of client device 510 provides the verbal phrase "Find a bankruptcy lawyer" while viewing the restaurant. In this example, the automation assistant can determine whether the verbal phrase includes an assistant command directed to the automation assistant or whether the verbal phrase is directed to the restaurant reservation application. In some implementations, the automation assistant can determine the capabilities of the third-party applications to determine whether the verbal phrase is directed to the automation assistant or to one or more third-party applications. For example, various third-party applications can publish a list of corresponding capabilities to the automation assistant, and the automation assistant can maintain a list of corresponding capabilities for various third-party applications. The automation assistant can analyze the content currently displayed in the foreground of a given third-party application on client device 510 to determine the capabilities of the given third-party application. The automation assistant can determine whether an assistant command includes an expected assistant command that can be handled by one or more third-party applications, and so on.

[0094] For example, Figure 5A Search field 515A, as depicted, is a search field associated with an automated assistant performing the search, while search field 550A is a search field associated with a restaurant reservation app, used to perform searches for restaurants, cuisine types, and / or other content accessible through the restaurant reservation app. Figure 5AIn the example, and as stated above, the spoken words could be "Find a bankruptcy lawyer." Based on processing the spoken words, the automated assistant can determine that the spoken words include an assistant command directed to the automated assistant. For example, based on the fact that the spoken words correspond to a search query in the legal services category, based on the fact that a restaurant reservation app cannot handle search queries included in the legal services category or are not expected to belong to the legal services category, and / or any other technology described herein, the automated assistant can determine that the spoken words are directed to the automated assistant, not a third-party app. In response to determining that the spoken words are directed to the automated assistant, search field 515A may optionally include a transcription of the spoken words.

[0095] Furthermore, assuming the legal service category of the assistant's command corresponds to one or more specific categories, the automated assistant can generate and present a prompt 560A requesting the user's consent to transmit the request to a server (or a third-party application associated with obtaining legal services) such as "You asked me to find a lawyer, can I use a cloud service to provide the best results?" to the user (e.g., as...). Figure 3A and Figure 3B Described audibly and / or as Figure 5A (Visually as depicted in the text). Furthermore, one or more corresponding selectable elements can be visually rendered along with prompt 560A. For example, the first selectable element 560A1 "Yes" can be rendered along with prompt 560A, and when selected, it causes the automation assistant to generate a request to be transmitted to the server to obtain server data as a response to the spoken words. Similarly, the second selectable element 560A2 "No" can also be rendered along with prompt 560A, and when selected, it causes the automation assistant to generate device data as a response to the spoken words. The user can also disable prompt 560A by interacting with element 595 without responding.

[0096] In contrast, and see details. Figure 5BLet's assume the spoken phrase is simply "Find Bankruptcy". Based on processing the spoken phrase, the automated assistant can determine that the spoken phrase includes an assistant command pointing to a third-party application. For example, based on the spoken phrase being a search query that includes the obvious entity "Bankruptcy", based on the restaurant reservation application's ability to handle search queries that include entities, and / or any other technology described herein, the automated assistant can determine that the spoken phrase points to the automated assistant, not a third-party application. Therefore, the automated assistant can cause the restaurant reservation application to present search results 540 indicating the existence of a local fictitious bar called "Bankruptcy Bar". In response to determining that the spoken phrase points to a third-party application rather than the automated assistant, search field 550A may optionally include a transcription of the spoken phrase.

[0097] Although the spoken words are not directed at the automated assistant, the assistant can still generate and present prompts to the user to further fulfill the spoken words. For example, the automated assistant could generate prompt 560B, “Would you like me to give you directions to Bankruptcy Bar?” to present to the user (e.g., as...). Figure 3A and Figure 3B Described audibly and / or as Figure 5A (Visually depicted in the image), the prompt provides navigation directions to be presented to the user by selecting one or more corresponding graphic elements 560B1 and / or 560B2. It is worth noting that when obtaining search results 540, the automated assistant may still include instructions that any audio data capturing spoken words cannot be remotely stored by the restaurant reservation application (e.g., non-temporarily) to ensure the security of any user data transmitted from the client device 510.

[0098] Furthermore, although regarding users simply giving or refusing consent (e.g., via...) Figure 5A The corresponding graphic elements 560A1 and 560A2 and / or Figure 5B The corresponding graphic elements 560B1 and 560B2 in the text are used to describe this. Figure 5A and Figure 5B However, it should be understood that this is for illustrative purposes and not intended to be limiting. For example, users can further define the scope of consent extension via other corresponding graphical elements not depicted and / or via other user input. For instance, one or more additional corresponding graphical elements associated with various levels of consent can be presented to the user. Thus, users can not only provide or refuse consent to a specific request, but they can also provide various levels of consent, which can be used to determine whether and / or when to prompt the user when future assistant commands of the same category are identified.

[0099] Turn now Figure 6 The diagram depicts a flowchart of an example method 600 that uses ambient noise to determine whether to transmit a request to a server or third-party application to obtain data used in a specific execution of an assistant command. For convenience, the operation of method 600 is described with reference to a system performing the operation. This system of method 600 includes one or more processors and / or computing devices (e.g., Figure 1 Client device 110 Figure 3A and Figure 3B Client device 310, Figure 5A and Figure 5B Client device 410, Figure 7A and Figure 7B Client devices 710 and / or Figure 8 Other components of the computing device 810, one or more servers, and / or other computing devices. Furthermore, although the operations of method 600 are shown in a specific order, this does not imply limitation. One or more operations may be reordered, omitted, and / or added.

[0100] At box 652, the system receives audio data via one or more microphones on the user's client device, which captures spoken utterances directed at the automated assistant. At box 654, the system processes the audio data using an on-device ASR model locally stored on the client device to identify assistant commands included in the spoken utterances. In some implementations, the system may identify assistant commands directly based on the output generated using the on-device ASR model. In other implementations, the system may use an on-device NLP model to process the output generated using the on-device ASR model to generate one or more annotations, and the system may identify assistant commands based on the annotations (and optionally, identify a given category associated with the assistant command based on the annotations).

[0101] At box 656, the system uses an on-device ambient noise model locally stored on the client device to process the audio data to determine a given category associated with ambient noise captured in the audio data. This given category is one of several distinct categories defined at various levels of granularity. The on-device ambient noise model can be trained to classify ambient noise captured in audio data that includes spoken utterances. For example, ambient noise may correspond to a conversation category (e.g., other users talking in the background when a user provides spoken utterances), a multimedia category (e.g., music, television, and / or other media playing in the background), and / or other categories associated with ambient noise. In implementations where ambient noise is classified into conversation categories, one or more speech recognition models may be used to additionally or alternatively process the audio data to identify other users who are speaking, where speaker embeddings are available.

[0102] At box 658, the system determines whether a given category associated with ambient noise corresponds to one or more specific categories. In some implementations, the system may utilize one or more rules to determine whether a given category corresponds to one or more specific categories. The one or more rules may include, for example, user-defined rules, default rules, inferred rules, and / or other rules. For example, one or more of these rules may indicate that if the user's voice on the client device was captured in ambient noise when the assistant command was received (e.g., the user is in the client device's environment but is not the user providing the spoken words), then the audio data capturing that spoken words cannot be transmitted from the client device to any server or third-party application. As another example, one or more of these rules may indicate that if ambient noise captures music or other media when the assistant command is received (e.g., the user is in the client device's environment but is not the user providing the spoken words), then the audio data capturing that spoken words can always be transmitted from the client device to any server or third-party application.

[0103] If, at the iteration in box 658, the system determines that a given category does not correspond to one or more specific categories, the system proceeds to box 660. At box 660, the system causes the client device to obtain and utilize data from a server (e.g., hosting a third-party application) or a third-party application to perform specific fulfillment of an assistant command. For example, the system may also implement... Figure 2 Method 200 and / or Figure 4 One or more of the operations in method 400 are used to obtain server data or third-party application data to perform a specific fulfillment of an assistant command (and optionally obtain client data if it is determined that no request is transmitted to the server or third-party application). For example, if the system determines that a given category associated with ambient noise corresponds to one or more specific categories, the system can implement... Figure 2 Method 200 and / or Figure 4 Method 400 involves one or more operations to determine whether server data and / or third-party application data are needed to perform a specific task. If so, the system may include audio data and also capture indications of the ambient session. However, if the system determines that server data and / or third-party application data are not needed (e.g., the specific task can be performed locally via a client device), the user may not be prompted at all. When additional user input directed to the automation assistant is received via the user's client device, the system returns to box 652 and performs subsequent iterations of method 600.

[0104] If, at the iteration in box 658, the system determines that a given category does indeed correspond to one or more specific categories, the system proceeds to box 662. At box 662, the system generates a request to be transmitted to the server or third-party application to obtain data for performing a specific action of the assistant command. At box 664, the system causes the request to be transmitted to the server or third-party application to obtain data, along with an indication that any audio data transmitted to the server or third-party application cannot be stored by the server or third-party application (e.g., non-transitory). At box 666, the system causes the client device to use the received data to perform a specific action of the assistant command. This can be done in conjunction with... Figure 2 Perform in the same or similar manner as boxes 270 to 274 Figure 6 Boxes 662 to 666.

[0105] although Figure 6 The operation described in method 600 does include prompting the user, but it should be understood that this is for clarity and does not imply limitation. For example, Figure 6 The iteration of method 600 may include Figure 2 Method 200 and / or Figure 4 Method 400 iterates over various aspects. For example, the system can prompt the user to agree to transmit a request to a server or third-party application, and determine whether to transmit the request to the server or third-party application based on further user input received in response to the prompt.

[0106] Turn now Figure 7A and Figure 7B This describes various non-limiting examples of determining whether to transmit a request to a server or third-party application based on ambient noise to obtain data used in a specific execution of an assistant command. In client device 710 (e.g., Figure 1 An automation assistant executing locally at an instance of client device 110 can perform one or more of the operations described herein, such as Figure 6 The method of operation 600. Although in Figure 7A and Figure 7B The client device 710 depicted is a stand-alone interactive speaker with a display, but it should be understood that this is for illustrative purposes and not intended to be limiting. For example, the client device 710 may additionally or alternatively be as follows: Figure 3A and Figure 3B The independent interactive speaker described in the text, such as Figure 5A and Figure 5B The mobile devices, in-vehicle client devices or systems, desktop computers, laptop computers and / or any other client devices depicted herein.

[0107] For example, and specifically refer to Figure 7ASuppose that user 701, while in environment 700 surrounded by dashed lines, provides the spoken words 752A directed to the automated assistant: “Assistant, is slime a liquid or solid?” The audio data capturing the spoken words can be detected by the microphone of client device 710 and processed using an on-device ASR model to generate recognized text corresponding to the spoken words 752A. In some implementations, in response to determining that the automated assistant has been invoked (e.g., by a specific word or phrase (e.g., “Assistant,” “Hey Assistant,” etc.), by pressing a hardware or software button, and / or by other means), the audio data can be processed using an on-device ASR model. Furthermore, an on-device NLP model can be used to process the recognized text corresponding to the spoken words 752A to generate annotations for the recognized text and / or determine the intent of user 701 when providing the spoken words 752A. For example, further suppose the automated assistant determines the intent of the search query based on the output generated using an NLP model, determines the viscous trough value of the entity parameter and the liquid or solid state parameter, and determines that a given category of the assistant command included in the spoken utterance is a general search query category, or more specifically, a scientific category. In this example, the automated assistant may determine that server data is needed to perform a specific fulfillment that provides an answer to the search query to user 701, because the automated assistant must transmit a request to the server to obtain the response content for spoken utterance 752A.

[0108] Furthermore, it is assumed that the automated assistant determines that the scientific category associated with the assistant command included in spoken utterance 752A does not correspond to one or more specific categories that triggered the automated assistant to request consent from user 701 in a peer-to-peer transmission request to the server. However, as Figure 7A As depicted in environment 700, it is assumed that when spoken words 752A are received, the first additional user 702 and the second additional user 703 also have a conversation in environment 700 as indicated by 754A. In some embodiments, the automation assistant may additionally or alternatively process the audio data capturing spoken words 752A to determine a given category associated with ambient noise also captured in the audio data. For example, the automation assistant may use an ambient noise model to process the audio data capturing spoken words 752A to determine the conversation category based on the fact that the first additional user 702 and the second additional user 703 also have a conversation in environment 700 as indicated by 754A. Furthermore, in embodiments where speaker embedding is available for client device 710, the automation assistant may determine whether the first additional user 702 and the second additional user 703 correspond to users known to the automation assistant using a speech recognition model and speaker embedding (e.g., user 701's parents, user 701's siblings, etc.).

[0109] Furthermore, the automation assistant can determine that a session category corresponds to one or more specific categories based on one or more rules. These rules may include, for example, user-defined rules, default rules, inferred rules, and / or other rules. For instance, user 701 (or one of the attached users 702 or 703) may have previously defined a rule instructing that when audio data identifying a captured assistant command (which also captures the ambient session) makes one or more of users 701, 702, or 703 aware of when the ambient session is unintentionally captured in the audio data, user 701 should be prompted to provide consent for the request to be transmitted from client device 710. As another example, a default rule could instruct that any audio data capturing the ambient session should be transmitted along with an indication that the audio data capturing the ambient session should not be transmitted away from client device 710, or that only the text corresponding to the assistant command should be transmitted to the server and / or third-party application, without transmitting any audio data capturing spoken words 752A. As yet another example, one or more of the rules could instruct that any audio data transmitted from client device 710 should be filtered to remove any ambient noise before being transmitted from client device 710. While specific rules are described herein, it should be understood that they are for illustrative purposes and not intended to be limiting. In some implementations, if the identity of one of the additional users 702 or 703 is determined based on the processing of audio data using a speech recognition model and speaker embedding, the automated assistant may apply only these rules.

[0110] In response to determining that a given category corresponds to one or more specific categories, the automation assistant can generate a prompt (not depicted) "I captured some ambient conversation along with your utterance, is it okay if I still transmit the request?", and cause the prompt to be presented to user 301 via the speaker of client device 710 and / or the display 790 of client device 710. It is worth noting that even if the user consents to the transmission request, the request may be transmitted along with an indication that the audio data cannot persist anywhere outside of client device 710 (e.g., at a server or third-party application that generates the response content to the spoken utterance 752A). In these and other ways, the automation assistant can ensure not only the data of user 701 providing the spoken utterance 752A is secure, but also the data of additional users 702 and 703 that may be unintentionally captured by the microphone of client device 710.

[0111] In contrast, and see details. Figure 7B Furthermore, it is assumed that the user, while in environment 700 enclosed by dashed lines, provides the same spoken words 752A directed at the automated assistant, “Assistant, is slime a liquid or solid?”. However, in this example, it is assumed that the first additional user 702 and the second additional user 703 are not in this environment, such that session 754A is not captured in the audio data capturing spoken words 752A. In this example, ambient noise may not be captured in the audio data, and the automated assistant may perform actions according to this document (e.g., regarding…). Figure 2 Method 200 and / or Figure 4 Method 400) describes the techniques used to perform specific tasks. It is worth noting that the automated assistant can still use an ambient noise model to process audio data, but can determine whether the ambient noise corresponds to an empty category or another category based on other ambient noise present in the environment 700 when spoken words are received.

[0112] Figure 8 This is a block diagram of an example computing device 810 that can be optionally used to perform one or more aspects of the techniques described herein. In some implementations, one or more of a client device, a cloud-based automation assistant component, and / or other components may include one or more components of the example computing device 810.

[0113] Computing device 810 typically includes at least one processor 814 that communicates with a plurality of peripheral devices via a bus subsystem 812. These peripheral devices may include a storage subsystem 824 (which includes, for example, a memory subsystem 825 and a file storage subsystem 826), a user interface output device 820, a user interface input device 822, and a network interface subsystem 816. The input and output devices allow users to interact with computing device 810. The network interface subsystem 816 provides an interface to an external network and couples to corresponding interface devices in other computing devices.

[0114] User interface input device 822 may include a keyboard, pointing devices such as a mouse, trackball, touchpad, or graphics tablet, a scanner, a touchscreen integrated into a display, audio input devices such as a voice recognition system, a microphone, and / or other types of input devices. Generally, the term "input device" is used to encompass all possible types of devices and methods for inputting information into computing device 810 or a communication network.

[0115] User interface output device 820 may include a display subsystem, a printer, a fax machine, or a non-visual display such as an audio output device. The display subsystem may include a cathode ray tube (CRT), a flat panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem may also provide non-visual displays, such as via an audio output device. Generally, the term "output device" is used to encompass all possible types of devices and methods for outputting information from computing device 810 to a user or another machine or computing device.

[0116] Storage subsystem 824 stores the programming and data construction capabilities that provide some or all of the functionality of the modules described herein. For example, storage subsystem 824 may include selected aspects for performing the methods disclosed herein and for implementing... Figure 1 The logic of the various components described in the text.

[0117] These software modules are typically executed by processor 814 alone or in conjunction with other processors. The memory 825 used in storage subsystem 824 may include multiple memories, including main random access memory (RAM) 830 for storing instructions and data during program execution and read-only memory (ROM) 832 for storing fixed instructions. File storage subsystem 826 can provide permanent storage for program and data files and may include hard disk drives, floppy disk drives and associated removable media, CD-ROM drives, optical drives, or removable media cartridges. Modules implementing the functionality of a particular implementation may be stored by file storage subsystem 826 in storage subsystem 824 or in other machines accessible to processor 814.

[0118] The bus subsystem 812 provides a mechanism for allowing the various components and subsystems of the computing device 810 to communicate with each other as intended. Although the bus subsystem 812 is schematically shown as a single bus, alternative implementations of the bus subsystem 812 may use multiple buses.

[0119] The computing device 810 can be of various types, including workstations, servers, computing clusters, blade servers, server farms, or any other data processing system or computing device. Due to the constantly evolving nature of computers and networks, Figure 8 The description of the computing device 810 depicted herein is intended only as a specific example for illustrating some implementations. Many other configurations of the computing device 810 may have... Figure 8 The computing device depicted in the text has more or fewer components.

[0120] In cases where the systems described herein collect or otherwise monitor personal information about users, or may utilize personal and / or surveillance information, users may be given the opportunity to control whether a program or feature collects user information (e.g., information about a user's social networks, social behavior or activities, occupation, user preferences, or user's current geographic location), or to control whether and / or how content that may be more relevant to the user is received from a content server. Furthermore, specific data may be processed in one or more ways before it is stored or used to remove personally identifiable information. For example, a user's identity may be processed to the point that it is impossible to determine the user's personally identifiable information, or a user's geographic location may be generalized (e.g., down to the city, zip code, or state level) where geographic location information is available, making it impossible to determine the user's specific geographic location. Therefore, users can control how information about themselves is collected and / or used.

[0121] In some implementations, a method implemented by one or more processors is provided, the method comprising: receiving user input directed to an automation assistant via a user's client device, the user input including an assistant command; processing the user input locally at the user's client device to determine a given category associated with the assistant command, the given category being one of a plurality of distinct categories; determining, based on the assistant command, whether server data is required to perform a specific performance of the assistant command; and in response to determining that server data is required to perform the specific performance of the assistant command: determining whether the given category associated with the assistant command corresponds to one or more specific categories; and in response to determining that the given category associated with the assistant command corresponds to one or more of the specific categories: generating a prompt requesting the user's consent to transmit a request to a server based on the given category associated with the assistant command; causing the prompt to be provided to the user via the client device; receiving additional user input directed to the automation assistant via the user's client device, the additional user input responding to the prompt; and determining, based on the additional user input, whether to transmit a request to the server to perform the assistant command. The request to be transmitted to the server requests server data required to perform the specific performance of the assistant command.

[0122] These and other embodiments of the technology disclosed herein may optionally include one or more of the following features.

[0123] In some implementations, the method may further include: in response to determining that additional user input does not agree to transmit a request to the server to fulfill an assistant command; preventing the request from being transmitted to the server to fulfill the assistant command; and causing the client device to generate client data to attempt to perform a specific fulfillment of the assistant command.

[0124] In some versions of those implementations, the method may further include: determining whether a specific execution of an assistant command can be performed using client data; and in response to determining that a specific execution of an assistant command cannot be performed using client data: generating a notification indicating that a specific execution of an assistant command cannot be performed without server data; and causing the notification to be provided to a user via a client device.

[0125] In some further versions of those implementations, the method may further include utilizing client data to perform alternative fulfillment of the assistant command, wherein the alternative fulfillment of the assistant command is performed to attempt to perform a specific fulfillment of the assistant command.

[0126] In some additional or alternative versions of those further implementations, the method may further include: in response to determining that a specific execution of an assistant command can be performed using client data: performing a specific execution of an assistant command using client data.

[0127] In some implementations, the method may further include: in response to determining that additional user input consents to transmit a request to the server to fulfill an assistant command: causing the request to be transmitted to the server to obtain server data to fulfill the assistant command.

[0128] In some implementations, the method may further include: in response to determining that a given category associated with an assistant command does not correspond to one or more of a specific category: causing a request to be transmitted to a server to obtain server data to perform a specific fulfillment of the assistant command. In some versions of those implementations, determining that a given category associated with an assistant command does not correspond to one or more of a specific category may include determining that the user previously consented to transmitting a request associated with the given category to the server.

[0129] In some implementations, the method may further include determining whether any previous user input directed to the automation assistant includes a previous assistant command corresponding to a given category. Determining whether server data is needed to perform a specific fulfillment of an assistant command may be in response to determining that no previous user input directed to the automation assistant includes a previous assistant command corresponding to a given category.

[0130] In some implementations, the assistant command may be a third-party assistant command associated with a third party, and the server data may be third-party server data associated with a third party.

[0131] In some implementations, the assistant command may be a first-party assistant command associated with the first party, and the server data may be first-party server data associated with the first party.

[0132] In some implementations, making the prompt available to the user via a client device includes making the synthesized speech audio data including the prompt audibly rendered to the user via one or more speakers of the client device.

[0133] In some implementations, providing a prompt to a user via a client device includes making the prompt and one or more corresponding selectable elements visually rendered to the user via the display of the client device.

[0134] In some implementations, determining whether a given category associated with an assistant command corresponds to one or more of a particular category may include using one or more rules to determine whether a given category associated with an assistant command corresponds to one or more of a particular category. In some versions of those implementations, the one or more rules may include one or more of the following: one or more user-defined rules indicating that any assistant command associated with a given category corresponds to one or more of a particular category; one or more default rules indicating that any assistant command associated with a given category corresponds to one or more of a particular category; or one or more inferred rules indicating that a previous assistant command associated with a given category corresponds to one or more of a particular category.

[0135] In some implementations, processing user input locally on the user's client device to determine a given category associated with an assistant command may include using an on-device assistant command classification model stored locally on the assistant device to process the user input to determine a given category from a plurality of different categories.

[0136] In some implementations, a method implemented by one or more processors is provided, the method comprising: receiving user input directed to an automation assistant via a user's client device, the user input including an assistant command; determining whether third-party application data is required to perform a specific action of the assistant command, the third-party application data being associated with a third-party application accessible by the client device; and in response to determining that third-party application data is required to perform the specific action of the assistant command: generating a prompt requesting the user's consent to transmit a request to the third-party application; causing the prompt to be provided to the user via the client device; receiving additional user input directed to the automation assistant via the user's client device, the additional user input responding to the prompt; and determining, based on the additional user input, whether to transmit a request to the third-party application to request the third-party application data. The request to be transmitted to the third-party application requests the third-party application data required to perform the specific action of the assistant command.

[0137] These and other embodiments of the technology disclosed herein may optionally include one or more of the following features.

[0138] In some implementations, determining whether third-party application data is required to perform a specific execution of an assistant command may include: determining one or more capabilities based on an indication from the third-party application to the client device that the third-party application provides one or more capabilities of the third-party application; and determining one or more of the capabilities that require third-party application data to perform the specific execution of the assistant command.

[0139] In some implementations, the third-party application may run in the foreground of the client device, and determining whether third-party application data is required to perform a specific execution of an assistant command may include: determining one or more capabilities of the third-party application based on what is currently displayed by the third-party application in the foreground of the client device; and determining one or more of the capabilities that require third-party application data to perform a specific execution of an assistant command.

[0140] In some implementations, determining whether third-party application data is required to perform a specific fulfillment of an assistant command may include: processing user input locally at the client device to determine a given category associated with the assistant command, which is one of several different categories; and determining, based on the given category associated with the assistant command, that a specific fulfillment of the assistant command requires third-party application data to perform the assistant command.

[0141] In some implementations, a method implemented by one or more processors is provided, the method comprising: receiving audio data via one or more microphones of a user's client device, the audio data capturing spoken utterance directed at an automated assistant; processing the audio data using an on-device speech recognition (ASR) model locally stored on the client device to determine an assistant command included in the spoken utterance; processing the audio data using an on-device ambient noise model locally stored on the client device to determine a given category associated with ambient noise captured in the audio data, the given category being one of a plurality of distinct categories; determining whether the given category associated with the ambient noise captured in the audio data corresponds to one or more specific categories; and in response to determining that the given category associated with the ambient noise captured in the audio data corresponds to one or more specific categories: generating a request to be transmitted to a server or a third-party application; receiving data via the user's client device to perform a specific performance of the assistant command; and causing the client device to use the data to perform the specific performance of the assistant command. The request to be transmitted to the server or third-party application requests data required to perform the specific performance of the assistant command. Further, the request includes an indication that the server or third-party application cannot store the audio data capturing the spoken utterance including the assistant command.

[0142] Furthermore, some embodiments include one or more processors (e.g., a central processing unit (CPU), a graphics processing unit (GPU), and / or a tensor processing unit (TPU)) of one or more computing devices, wherein the one or more processors are operable to execute instructions stored in associated memory, and wherein the instructions are configured to cause any of the methods described above to be performed. Some embodiments also include one or more non-transitory computer-readable storage media storing computer instructions executable by one or more processors to perform any of the methods described above. Some embodiments also include a computer program product comprising instructions executable by one or more processors to perform any of the methods described above.

Claims

1. A method implemented by one or more processors, the method comprising: The user receives user input directed to the automation assistant via the user's client device; the user input includes assistant commands. The user input is processed locally at the user's client device to determine a given category associated with the assistant command, the given category being one of several different categories; Based on the assistant command, determine whether server data is needed to execute a specific fulfillment of the assistant command; as well as In response to determining that server data is needed to execute the specific fulfillment of the assistant command: Determine whether the given category associated with the assistant command corresponds to one or more specific categories; In response to determining that the given category associated with the assistant command corresponds to one or more of the specific categories: A prompt is generated based on the given category associated with the assistant command, requesting the user's consent to transmit a request to the server, wherein the request to be transmitted to the server requests the server data required to perform the specific act of the assistant command; This causes the prompt to be provided to the user via the client device; Additional user input directed to the automation assistant is received via the user's client device, the additional user input being in response to the prompt; and Based on the additional user input, determine whether to transmit the request to the server to fulfill the assistant command; and In response to determining that the additional user input does not agree to transmit the request to the server to fulfill the assistant command: Prevent the request from being transmitted to the server to execute the assistant command; and This causes the client device to generate client data in order to attempt to execute the specific fulfillment of the assistant command.

2. The method according to claim 1, further comprising: Determine whether the client data can be used to execute the specific fulfillment of the assistant command; as well as In response to determining that the specific execution of the assistant command cannot be performed using the client data: Generate a notification indicating that the specific execution of the assistant command cannot be performed without the server data; as well as This allows the notification to be provided to the user via the client device.

3. The method according to claim 2, further comprising: The client data is used to perform an alternative fulfillment of the assistant command, wherein the alternative fulfillment of the assistant command is performed to attempt to perform the specific fulfillment of the assistant command.

4. The method of claim 2, further comprising: In response to determining that a specific fulfillment of the assistant command can be executed using the client data: The client data is used to execute the specific fulfillment of the assistant command.

5. The method of claim 1, further comprising: In response to determining that the additional user input agrees to transmit the request to the server to fulfill the assistant command: This causes the request to be transmitted to the server to obtain the server data in order to fulfill the assistant command.

6. The method of claim 1, further comprising: In response to determining that the given category associated with the assistant command does not correspond to one or more of the specific categories: This causes the request to be transmitted to the server to obtain the server data in order to execute the specific fulfillment of the assistant command.

7. The method according to claim 6, wherein, Determining that the given category associated with the assistant command does not correspond to one or more of the specific categories includes: It is determined that the user previously agreed to transmit a request associated with the given category to the server.

8. The method of claim 1, further comprising: Determine whether any previous user input directed to the automation assistant includes a previous assistant command corresponding to the given category; Specifically, determining whether the server data is needed to execute the specific fulfillment of the assistant command is in response to determining that there is no previous user input directed to the automation assistant, including a previous assistant command corresponding to the given category.

9. The method according to claim 1, wherein, The assistant command is a third-party assistant command associated with a third party, and the server data is third-party server data associated with the third party.

10. The method according to claim 1, wherein, The assistant command is a first-party assistant command associated with the first party, and the server data is first-party server data associated with the first party.

11. The method according to claim 1, wherein, The process of providing the prompt to the user via the client device includes: This causes the synthesized speech audio data, including the prompt, to be audibly rendered and presented to the user via one or more speakers of the client device.

12. The method according to claim 1, wherein, The process of providing the prompt to the user via the client device includes: This causes the prompt and one or more corresponding selectable elements to be visually rendered and presented to the user via the display of the client device.

13. The method according to claim 1, wherein, Determining whether the given category associated with the assistant command corresponds to one or more of the specific categories includes: One or more rules are used to determine whether the given category associated with the assistant command corresponds to one or more of the specific categories.

14. The method according to claim 13, wherein, The one or more rules include one or more of the following: One or more user-defined rules, wherein any assistant command associated with the given category corresponds to one or more of the specific category; One or more default rules, which indicate that any assistant command associated with the given category corresponds to one or more of the specific category; or One or more inference rules, which indicate that a previous assistant command associated with the given category corresponds to one or more of the specific category.

15. The method according to any one of claims 1-14, wherein, Processing the user input locally at the user's client device to determine the given category associated with the assistant command includes: The user input is processed using an on-device assistant command classification model stored locally on the assistant device to determine the given category from among the multiple different categories.

16. A method implemented by one or more processors, the method comprising: The user receives user input directed to the automation assistant via the user's client device; the user input includes assistant commands. Determining whether third-party application data is needed to perform a specific execution of the assistant command, wherein the third-party application data is associated with a third-party application accessible by the client device, wherein determining whether the third-party application data is needed to perform the specific execution of the assistant command includes: The one or more capabilities are determined based on an indication from the third-party application to the client device that the third-party application provides one or more capabilities of the third-party application; and Determine that one or more of the capabilities of the third-party application are required to perform the specific fulfillment of the assistant command; and In response to determining that the third-party application data is required to execute the specific fulfillment of the assistant command: Generate a prompt requesting the user's consent to transmit a request to the third-party application, wherein the request to be transmitted to the third-party application requests the third-party application data required to perform the specific execution of the assistant command; This causes the prompt to be provided to the user via the client device; Additional user input directed to the automation assistant is received via the user's client device, the additional user input being in response to the prompt; and The decision to transmit the request to the third-party application to request data is based on the additional user input.

17. The method according to claim 16, wherein, The third-party application runs in the foreground of the client device, and wherein determining the one or more capabilities based on an indication from the third-party application to the client device includes: One or more capabilities of the third-party application are determined based on the content currently displayed in the foreground of the client device by the third-party application.

18. A method implemented by one or more processors, the method comprising: Audio data is received via one or more microphones on the user's client device, the audio data capturing spoken words directed at the automated assistant; The audio data is processed using an on-device speech recognition (ASR) model stored locally on the client device to determine assistant commands included in the spoken utterance; The audio data is processed using an on-device ambient noise model stored locally on the client device to determine a given category associated with ambient noise captured in the audio data, the given category being one of several different categories, and the ambient noise being noise in the user's environment other than the spoken words directed at the automated assistant; Determine whether the given category associated with the ambient noise captured in the audio data corresponds to one or more specific categories; as well as In response to determining that the given category associated with the ambient noise captured in the audio data corresponds to one or more specific categories: Generate a request to be transmitted to a server or third-party application. The request to be transmitted to the server or the third-party application requests data required for the specific execution of the assistant command, and The request includes an indication that the audio data containing the spoken words of the assistant command cannot be captured by the server or the third-party application storage. Receive the data via the user's client device to execute the specific fulfillment of the assistant command; and This enables the client device to use the data to perform the specific execution of the assistant command.

19. A system for providing an automated safety assistant, comprising: At least one processor; as well as A memory for storing instructions, which, when executed, cause the at least one processor to perform the method according to any one of claims 1 to 18.

20. A non-transitory computer-readable storage medium storing instructions, which, when executed, cause at least one processor to perform the method according to any one of claims 1 to 18.

Citation Information

Patent Citations

  • Method and system for providing user notification when personal information is used in voice control device

    US20200387629A1