Intelligent automated assistant

An intelligent automated assistant in electronic devices uses natural language dialogs to unify and simplify the interaction with multiple applications and services, addressing the challenge of inconsistent interfaces and enhancing user experience for diverse user groups.

JP2024122975AInactive Publication Date: 2024-09-10APPLE INC

Patent Information

Application Number
JP2024078017
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2011-01-10
Filing Date
2024-05-13
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing electronic devices present users with numerous inconsistent interfaces that are difficult to navigate, leading to frustration and ineffective use, particularly for unskilled users such as those with disabilities, the elderly, or those who are busy or distracted.

Method used

An intelligent automated assistant integrated into electronic devices that uses natural language dialogs to facilitate user interaction, coordinate various software components, and invoke external services to provide a unified and intuitive interface, simplifying the use of multiple applications and services.

Benefits of technology

The intelligent automated assistant enhances user experience by simplifying the interaction with electronic devices and web-connected services, allowing users to access and utilize functionalities more effectively without the burden of learning multiple interfaces, and providing context-aware operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024122975000001
    Figure 2024122975000001
Patent Text Reader

Abstract

To facilitate user interaction with a device, and to help the user more effectively engage with local and / or remote services.SOLUTION: An intelligent automated assistant system 1002 engages with a user in an integrated conversational manner using natural language dialog, and invokes external services when appropriate to obtain information or perform various actions. The system can be implemented using any of a number of different platforms, such as the web, email, smartphone, and the like, or any combination thereof. In one embodiment, the system is based on sets of interrelated domains and tasks, and employs additional functionality powered by external services with which the system can interact.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to intelligent systems, and in particular to intelligent systems for a class of applications for intelligent automated assistants. [Background technology]

[0002] Today's electronic devices have access to an ever-increasing amount of different functions, services and information via the Internet and from other sources. The functionality of such devices is rapidly increasing as many consumer devices, smart phones, tablet computers, and the like, are able to execute software applications to perform various tasks and provide various information. Each application, function, website, or feature often has its own user interface and operating paradigm, many of which may be too much to learn or burdensome for users. Furthermore, for many users, it may be difficult to even find the functionality and / or information available on the electronic device or various websites. Thus, such users may become frustrated or overwhelmed by the amount, or simply be unable to use the available resources effectively.

[0003] In particular, less-skilled users, i.e., those with some disabilities, and / or those who are elderly, busy, distracted, and / or operating vehicles, may have difficulty effectively interfacing with electronic devices and / or using online services, and such users are likely to have difficulty, especially with respect to the large amount of different and inconsistent features, applications, and websites that may be available to them.

[0004] Thus, existing systems often present users with too many inconsistent interfaces that are difficult to use and navigate and often prevent users from using the technology effectively. Summary of the Invention

[0005] According to various embodiments of the present invention, an intelligent automated assistant is implemented in an electronic device to facilitate user interaction with the device and facilitate more effective use of local and / or remote services. In various embodiments, the intelligent automated assistant engages the user through integrated dialogue using natural language dialogs and invokes external services when appropriate to obtain information or perform various actions.

[0006] According to various embodiments of the present invention, an intelligent automated assistant integrates various functionalities provided by different software components (e.g., to support natural language recognition and dialog, multimodal input, personal information management, task flow management, and distributed service orchestration, etc.). Furthermore, to provide an intelligent interface and useful functionality to a user, the intelligent automated assistant of the present invention, in at least some embodiments, coordinates these components and services. The conversational interface and the ability to obtain information and perform subsequent tasks is achieved, in at least some embodiments, by coordination of various components, such as a language component, a dialog component, a task management component, an information management component, and / or multiple external services.

[0007] According to various embodiments of the present invention, an intelligent automated assistant system is configured, designed, and / or operable to provide a variety of different operations, functionalities, and / or features and / or combine multiple features, operations, and applications of the electronic device on which it is installed. In some embodiments, the intelligent automated assistant system of the present invention can perform any or all of the following: actively derive input from a user, interpret the user's intent, disambiguate between competing interpretations, request and receive clarification information as necessary, and perform (or initiate) an action based on the identified intent. The actions are performed, for example, by invoking and / or interfacing with any applications or services available on the electronic device, as well as services available over an electronic network such as the Internet. In various embodiments, the invocation of such external services is performed via an API or any other suitable mechanism. In this way, the intelligent automated assistant system of various embodiments of the present invention can unify, simplify, and improve a user's experience with many different applications and functions of the electronic device, as well as services available over the Internet. Thus, the user is relieved of the burden of learning the functionality available on the device and web-connected services, how to interface with such services to get what the user requests, and how to interpret the output received from such services. The assistant of the present invention can act as an intermediary between the user and such various services.

[0008] Furthermore, in various embodiments, the assistant of the present invention provides a conversational interface that users find more intuitive and less burdensome than traditional graphical user interfaces. The user can engage with the assistant in the form of a conversational dialog using any of many available input / output mechanisms, such as voice, graphical user interfaces (buttons and links), and text input. The system is implemented using any of many different platforms, such as device APIs, web and email, etc., or any combination thereof. Requests for additional input are presented to the user in the context of such a conversation. Short-term and long-term memory are used so that user input can be interpreted in the appropriate context, given previous events and communications in a given session, as well as historical and profile information about the user.

[0009] Additionally, in various embodiments, contextual information derived from user interactions with features, operations, or applications of the device is used to streamline the operation of other features, operations, or applications of the device or other devices. For example, an intelligent automated assistant can use the context of a phone call to streamline the initiation of a text message (e.g., to determine that a text message is being sent to the same person without the user having to explicitly specify the recipient of the text message). Thus, an intelligent automated assistant of the present invention can interpret a command such as "send him a text message," where "him" is interpreted according to contextual information derived from the current phone call and / or from any features, operations, or applications of the device. In various embodiments, the intelligent automated assistant takes into account various available contextual data to determine such information so that the user does not have to manually re-specify which phonebook contact to use, which contact data to use, and which phone number to use to contact, etc.

[0010] In various embodiments, the Assistant further takes the external event into account and responds accordingly, e.g., initiates an action, initiates communication with the user, provides an alert, and / or modifies a previously initiated action in light of the external event. If input is required from the user, the conversation interface is again used.

[0011] In one embodiment, the system employs additional functionality powered by external services with which the system can interact based on a set of interrelated domains and tasks. In various embodiments, these external services include web-enabled services and functionality associated with the hardware device itself. For example, in one embodiment where the intelligent automated assistant is implemented on a smartphone, personal digital assistant, tablet computer, or other device, the assistant controls many of the operations and functions of the device, for example to dial phone numbers, send text messages, set reminders, add events to a calendar, and so on.

[0012] In various embodiments, the system of the present invention is implemented to assist in any of a number of different domains. Examples include:

[0013] Local services (including location-specific and time-specific services such as restaurants, movies, ATMs, events and meeting places) Personal and social memory services (including action items, notes, calendar events and shared links) E-commerce (including online purchases of items such as books, DVDs and music) · Travel services (including flights, hotels and attractions) Those skilled in the art will appreciate that the above list of domains is merely exemplary, and further, the system of the present invention may be implemented with any combination of domains.

[0014] In various embodiments, the intelligent automated assistant system disclosed herein is configured or designed to include functionality to automate the application of data and services available over the Internet to discover, locate, and select products and services, and in particular to purchase, reserve, or order. In addition to automating the process of using these data and services, at least one embodiment of the intelligent automated assistant system disclosed herein allows for several data sources and services to be combined and used at once. For example, embodiments may combine information about a product from several review sites, check availability and price from multiple sellers, check location and time constraints, and help find a personalized solution to a user's problem. Additionally, at least one embodiment of an intelligent automated assistant system disclosed herein is configured or designed to include functionality to automate the use of data and services available via the Internet to discover, research, select, and particularly book or learn about things to do (including, but not limited to, movies, events, performances, exhibits, shows, and tourist attractions), places to go (travel destinations, hotels and other places to stay, landmarks and other points of interest), places to eat and drink (restaurants and bars, etc.), times and places to meet others, and any other sources of social interaction or entertainment that may be found on the Internet.Furthermore, at least one embodiment of the intelligent automated assistant system disclosed herein is configured or designed to include functionality that enables operation of applications and services via natural language dialogue provided by dedicated applications having graphical user interfaces including searching (including location-based searching), navigation (maps and directions), database lookup (such as finding a business or person by name or other characteristic), obtaining weather conditions and forecasts, checking the price of a market item or the status of a financial transaction, monitoring traffic or flight status, accessing and updating calendars and schedules, managing reminders, alerts, tasks and projects, communicating via email or other messaging platforms, and operating the device locally or remotely (e.g., making calls, controlling lights and temperature, controlling home security devices, playing music or videos). At least one embodiment of the intelligent automated assistant system disclosed herein is also configured or designed to include functionality that identifies, generates and / or provides personalized recommendations of activities, products, services, entertainment sources, time management, or any other type of recommendation service that would benefit from natural language interaction dialogue and automated access to data and services.

[0015] In various embodiments, the intelligent automated assistant of the present invention controls many features and operations of an electronic device. For example, the intelligent automated assistant can invoke services that interface with functionality and applications on the device via APIs or other means to perform functions and operations that would be initiated using a traditional user interface on the device. Such functions and operations include, for example, setting an alarm, making a call, sending a text or email message, and adding a calendar event. Such functions and operations are performed as add-on functions in the context of a conversational dialog between the user and the assistant. Such functions and operations are either specified by the user in the context of such a dialog or are automatically performed based on the context of the dialog. Thus, one skilled in the art will appreciate that the assistant is used as a control mechanism to initiate and control various operations of the electronic device, which may be used as an alternative mechanism to traditional mechanisms such as buttons or a graphical user interface. [Brief description of the drawings]

[0016] The accompanying drawings illustrate several embodiments of the invention and, together with the description, explain the principles of the invention according to the embodiments. It will be understood by those skilled in the art that the particular embodiments shown in the drawings are merely exemplary and are not intended to limit the scope of the invention. [Figure 1] FIG. 1 is a block diagram illustrating an example of an embodiment of an intelligent automated assistant system. [Diagram 2] FIG. 2 illustrates an example of an interaction between an intelligent automated assistant and a user in accordance with at least one embodiment. [Diagram 3] FIG. 3 is a block diagram illustrating a computing device suitable for implementing at least a portion of an intelligent automated assistant according to at least one embodiment. [Figure 4]FIG. 4 is a block diagram illustrating an architecture for implementing at least a portion of an intelligent automated assistant on a standalone computing system in accordance with at least one embodiment. [Diagram 5] FIG. 5 is a block diagram illustrating an architecture for implementing at least a portion of an intelligent automated assistant in a distributed computing network in accordance with at least one embodiment. [Figure 6] FIG. 6 is a block diagram illustrating the system architecture showing several different types of clients and modes of operation. [Figure 7] FIG. 7 is a block diagram illustrating a client and a server communicating with each other to implement the present invention according to one embodiment. [Figure 8] FIG. 8 is a block diagram illustrating a portion of an active ontology according to one embodiment. [Figure 9] FIG. 9 is a block diagram illustrating an example of another embodiment of an intelligent automated assistant. [Figure 10] FIG. 10 is a flow chart illustrating a method of operation of an active input derivation component according to one embodiment. [Figure 11] FIG. 11 is a flow chart illustrating an active typing derivation method according to one embodiment. [Figure 12] FIG. 12 is a screenshot showing parts of some steps of active typing derivation according to one embodiment. [Figure 13] FIG. 13 is a screenshot showing parts of some steps of active typing derivation according to one embodiment. [Figure 14] FIG. 14 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 15] FIG. 15 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 16]FIG. 16 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 17] FIG. 17 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 18] FIG. 18 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 19] FIG. 19 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 20] FIG. 20 is a screenshot showing portions of some steps of active typing derivation according to one embodiment. [Figure 21] FIG. 21 is a screenshot showing parts of some steps of active typing derivation according to one embodiment. [Figure 22] FIG. 22 is a flow chart illustrating an active input derivation method for voice input according to one embodiment. [Figure 23] FIG. 23 is a flow diagram illustrating an active input derivation method for GUI input according to one embodiment. [Figure 24] FIG. 24 is a flow diagram illustrating an active input derivation method at the level of a dialog flow according to one embodiment. [Diagram 25] FIG. 25 is a flow chart illustrating a method for active monitoring of relevant events according to one embodiment. [Figure 26] FIG. 26 is a flow chart illustrating a multi-modal active input derivation method according to one embodiment. [Figure 27] FIG. 27 is a collection of screenshots illustrating an example of various functions, operations, behaviors and / or other features provided by domain model components and service orchestration according to one embodiment. [Figure 28] FIG. 28 is a flow chart illustrating an example of a method for natural language processing according to an embodiment. [Figure 29] FIG. 29 is a screenshot illustrating natural language processing according to one embodiment. [Diagram 30] FIG. 30 is a screenshot illustrating an example of various functions, actions, behaviors and / or other features provided by a dialog flow processor component according to one embodiment. [Diagram 31] FIG. 31 is a screenshot illustrating an example of various functions, actions, behaviors and / or other features provided by a dialog flow processor component according to one embodiment. [Diagram 32] FIG. 32 is a flow chart illustrating a method of operation of a dialog flow processor component according to one embodiment. [Diagram 33] FIG. 33 is a flow chart illustrating an automatic call and response procedure according to one embodiment. [Diagram 34] FIG. 34 is a flowchart illustrating an example of a task flow of a conditional selection task according to one embodiment. [Diagram 35] FIG. 35 is a screenshot showing an example of the operation of a conditional selection task according to one embodiment. [Diagram 36] FIG. 36 is a screenshot showing an example of the operation of a conditional selection task according to one embodiment. [Figure 37] FIG. 37 is a flow diagram illustrating an example of a procedure for executing a service orchestration procedure according to an embodiment. [Figure 38] FIG. 38 is a flow diagram illustrating an example of a service invocation procedure according to one embodiment. [Figure 39] FIG. 39 is a flow chart illustrating an example of a multi-phase output procedure according to one embodiment. [Diagram 40] FIG. 40 is a screenshot showing an example of an output process according to one embodiment. [Diagram 41] FIG. 41 is a screenshot showing an example of an output process according to one embodiment. [Diagram 42]FIG. 42 is a flowchart showing an example of a multimodal output process according to an embodiment. [Figure 43A] FIG. 43A is a screenshot illustrating an example of using a short-term personal memory component to maintain dialog context while changing locations, according to one embodiment. [Figure 43B] FIG. 43B is a screenshot illustrating an example of using a short-term personal memory component to maintain dialog context while changing locations, according to one embodiment. [Figure 44A] FIG. 44A is a screenshot illustrating an example of using a long-term personal memory component according to one embodiment. [Figure 44B] FIG. 44B is a screenshot illustrating an example of using a long-term personal memory component according to one embodiment. [Figure 44C] FIG. 44C is a screenshot illustrating an example of using a long-term personal memory component according to one embodiment. [Diagram 45] FIG. 45 is a diagram showing an example of an abstract model of a conditional choice task. [Figure 46] FIG. 46 illustrates an example of a dialog flow model that facilitates user guidance in the search process. [Figure 47] FIG. 47 is a flow chart illustrating a method for conditional selection according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Various techniques are described in detail with reference to several example embodiments as illustrated in the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects and / or features described and referenced herein. However, it will be apparent to one of ordinary skill in the art that one or more aspects and / or features described and referenced herein may be practiced without some or all of the specific details. In other instances, well-known process steps and / or structures have not been described in detail so as not to obscure some of the aspects and / or features described or referenced herein.

[0018] One or more different inventions are described in this application. Also, for one or more inventions described herein, many embodiments are described in this patent application and are presented for illustrative purposes only. The described embodiments are not intended to be limiting in any way. The one or more inventions are broadly applicable to many embodiments as will be readily apparent from the disclosure. These embodiments are described in sufficient detail to enable one skilled in the art to practice the one or more inventions. It is understood that other embodiments may be utilized, and that structural, logical, software, electrical, and other changes may be made without departing from the scope of the one or more inventions. Thus, it will be appreciated by those skilled in the art that the one or more inventions may be implemented with various modifications and alterations. Certain features of the one or more inventions are described with reference to one or more specific embodiments or drawings that form a part of the invention. Specific embodiments of the one or more inventions are illustrated herein by way of example. However, it should be understood that such features are not limited to use in the one or more specific embodiments or drawings referenced in the description. The present invention is neither a list of features of one or more inventions that must be present in all embodiments, nor a literal description of all embodiments of the one or more inventions.

[0019] The section headings provided in this patent application and the title of this patent application are for convenience only and are not to be construed as limitations on the invention.

[0020] Devices that are in communication with each other need not be in continuous communication with each other unless otherwise specified. Further, devices that are in communication with each other may communicate directly or indirectly through one or more intermediaries.

[0021] A description of an embodiment including several components in communication with each other does not indicate that all such components are required. To the contrary, various optional components are described to illustrate various possible embodiments of one or more inventions.

[0022] Furthermore, although process steps, method steps, algorithms, or the like may be described in a sequential order, such processes, methods, and algorithms may be configured to operate in other orders. In other words, any order or sequence of steps described in this patent application does not inherently indicate a requirement that the steps be performed in that order. Steps of the described processes may in fact be performed in any order. Furthermore, some steps may be performed simultaneously, although they are not described or shown as occurring simultaneously (e.g., one step is described after another step). Furthermore, a process illustrated in a drawing does not indicate that the illustrated process is exclusive of other modifications and variations, nor does it indicate that the illustrated process or any of its steps are required for one or more inventions, nor does it indicate that the illustrated process is preferred.

[0023] Where a single device or article is described, it will be readily apparent that two or more devices / articles (whether they cooperate or not) may be used in place of the single device / article. Similarly, where two or more devices or articles are described (whether they cooperate or not), it will be readily apparent that the single device / article may be used in place of the two or more devices or articles.

[0024] The functionality and / or features of a device may be embodied by one or more other devices not explicitly described as having such functionality / features, and therefore other embodiments of one or more inventions need not include the device itself.

[0025] Techniques and features described or referenced herein may be described in the singular for ease of understanding. However, particular embodiments may include multiple iterations of a technique or multiple instantiations of a feature unless otherwise specified.

[0026] Although described within the scope of intelligent automated assistant technology, it is understood that various aspects and techniques described herein may be deployed and / or applied in other technical fields involving human and / or computerized interaction with software.

[0027] Other aspects relating to intelligent automated assistant technology (e.g., utilized by, provided by, and / or implemented in one or more of the intelligent automated assistant system embodiments described herein) are disclosed in one or more of the following references:

[0028] U.S. Provisional Patent Application No. 61 / 295,774, “Intelligent Automated Assistant,” filed January 18, 2010, attorney docket No. SIRIP003P, the contents of which are incorporated herein by reference. U.S. Patent Application No. 11 / 518,292, filed Sep. 8, 2006, entitled "Method And Apparatus for Building an Intelligent Automated Assistant," the contents of which are incorporated herein by reference. No. 61 / 186,414, entitled "System and Method for Semantic Auto-Completion," filed June 12, 2009, the contents of which are incorporated herein by reference.

[0029] Hardware Architecture In general, the intelligent automated assistant techniques disclosed herein are implemented in hardware or a combination of software and hardware. For example, they may be implemented in an operating system kernel, a separate user process, a library package tied to a network application, a specially built machine, or a network interface card. In a particular embodiment, the techniques disclosed herein are implemented in software, such as an operating system, or an application running on an operating system.

[0030] A software / hardware hybrid implementation of at least some of the embodiments of the intelligent automated assistants disclosed herein is implemented in a programmable machine that is selectively enabled or reconfigured by a computer program stored in memory. Such network devices have multiple network interfaces that are configured or designed to utilize various network communication protocols. The general architecture for some of these machines will be apparent from the description disclosed herein. According to certain embodiments, at least some of the features and / or functionality of the various embodiments of the intelligent automated assistants disclosed herein are implemented in one or more general-purpose network host machines, such as an end-user computer system, a computer, a network server or server system, a mobile computing device (e.g., a personal digital assistant, a mobile phone, a smartphone, a laptop or tablet computer, etc.), a consumer electronic device, a music player or any other suitable electronic device, a router or switch, or any combination thereof. In at least some embodiments, at least some of the features and / or functionality of the various embodiments of the intelligent automated assistants disclosed herein are implemented in one or more virtual computing environments (e.g., a network computing cloud, etc.).

[0031] 3, a block diagram illustrates a computing device 60 suitable for implementing at least a portion of the features and / or functionality of the intelligent automated assistant disclosed herein. The computing device 60 may be, for example, an end-user computer system, a network server or server system, a mobile computing device (e.g., a personal digital assistant, a mobile phone, a smart phone, a laptop or tablet computer, etc.), a consumer electronic device, a music player, or any other suitable electronic device, or any combination or portion thereof. The computing device 60 is configured to communicate with other computing devices, such as clients and / or servers, over a communications network, such as the Internet, using known protocols for such communications, whether wireless or wired.

[0032] In one embodiment, computing device 60 includes a central processing unit (CPU) 62, an interface 68, and a bus 67 (such as a Peripheral Component Interconnect (PCI) bus). When operating under the control of appropriate software or firmware, CPU 62 is responsible for implementing specific functions associated with the functionality of the computing device or machine for which it is specially configured. For example, in at least one embodiment, a user's personal digital assistant (PDA) may be configured or designed to function as an intelligent automated assistant system utilizing CPU 62, memory 61, 65, and interface 68. In at least one embodiment, CPU 62 is caused to perform one or more of the various intelligent automated assistant functions and / or operations under the control of software modules / components including, for example, an operating system and any suitable application software and drivers.

[0033] CPU 62 includes one or more processors 63, such as, for example, processors of the Motorola or Intel family of microprocessors or MIPS family of microprocessors. In some embodiments, processor 63 includes specially designed hardware for controlling the operation of computing device 60, such as, for example, application specific integrated circuits (ASICs), electrically erasable programmable read only memories (EEPROMs), and field programmable gate arrays (FPGAs). In one particular embodiment, memory 61 (non-volatile random access memory (RAM) and / or read only memory (ROM)) also forms part of CPU 62. However, there are many different ways in which memory can be coupled to the system. Memory block 61 is used for various purposes, such as, for example, caching and / or storing data, and programming instructions.

[0034] As used herein, the term "processor" is not limited solely to integrated circuits referred to in the art as processors, but broadly refers to microcontrollers, microcomputers, programmable logic controllers, application specific integrated circuits and any other programmable circuitry.

[0035] In one embodiment, the interfaces 68 are provided as interface cards (sometimes referred to as "line cards"). Generally, these interfaces control the sending and receiving of data packets over a computing network and possibly support other peripherals used with the computing device 60. The interfaces provided include Ethernet interfaces, Frame Relay interfaces, Cable interfaces, DSL interfaces, and Token Ring interfaces. Additionally, various interfaces are provided, such as Universal Serial Bus (USB), Serial, Ethernet, Firewire, PCI, Parallel, Radio Frequency (RF), Bluetooth™, Near Field Communication (e.g., using near field magnetic), 802.11 (WiFi), Frame Relay, TCP / IP, ISDN, Fast Ethernet interfaces, Gigabit Ethernet interfaces, Asynchronous Transfer Mode (ATM) interfaces, High Speed ​​Serial Interfaces (HSSI), Point Of Sale (POS) interfaces, and Fiber Distributed Data Interfaces (FDDI). Generally, such interfaces 68 include appropriate ports to communicate with the appropriate medium. In some examples, the interfaces further include an independent processor, and in some examples include volatile and / or non-volatile memory (eg, RAM).

[0036] Although the system shown in FIG. 3 illustrates one particular architecture of a computing device 60 for implementing the inventive techniques described herein, it is not the only device architecture in which at least a portion of the features and techniques described herein may be implemented. For example, an architecture having one or more processors 63 may be used, with such processors 63 residing in a single device or distributed across multiple devices. In one embodiment, a single processor 63 handles communication and routing calculations. In various embodiments, the features and / or functionality of various intelligent automated assistants are implemented in an intelligent automated assistant system that includes a client device (such as a smartphone or personal digital assistant running client software) and a server system (such as the server system described in more detail below).

[0037] Regardless of the network device configuration, the system of the present invention employs one or more memories or memory modules (e.g., memory block 65, etc.) configured to store data, program instructions for general network operation, and / or other information related to the functionality of the intelligent automated assistant technology described herein. The program instructions control the operation of, for example, an operating system and / or one or more applications. The one or more memories are further configured to store data structures, keyword classification information, advertising information, user click and impression information, and / or other specific non-program information described herein.

[0038] Because such information and program instructions are employed to implement the systems / methods described herein, at least some network device embodiments include a non-transitory machine-readable storage medium configured or designed to store, for example, program instructions and state information for performing various operations described herein. Examples of such non-transitory machine-readable storage media include, but are not limited to, magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROM disks, magneto-optical media such as floptical disks, and hardware devices that are specifically configured to store and execute program instructions, such as read-only memory elements (ROM), flash memory, memristor memory, and random access memory (RAM). Examples of program instructions include machine code, such as produced by a compiler, and files containing high-level code that are executed by a computer using an interpreter.

[0039] In one embodiment, the system of the present invention is implemented in a stand-alone computing system. Referring now to FIG. 4, a block diagram illustrating an architecture for implementing at least a portion of an intelligent automated assistant in a stand-alone computing system is shown, according to at least one embodiment. The computing device 60 includes a processor 63 that executes software for implementing the intelligent automated assistant 1002. The input device 1206 is any type of input device suitable for receiving user input, including, for example, a keyboard, a touch screen, a microphone (e.g., for voice input), a mouse, a touch pad, a track ball, a cross switch, a joystick, and / or any combination thereof. The output device 1207 is a screen, a speaker, a printer, and / or any combination thereof. The memory 1210 is a random access memory having a structure and architecture as known in the art for use by the processor 63 while executing the software. The storage device 1208 is any magnetic, optical, and / or electrical storage device that stores data in digital form, such as, for example, a flash memory, a magnetic hard drive, and / or a CD-ROM.

[0040] In another embodiment, the system of the present invention is implemented in a distributed computing network, e.g., having one or more clients and / or servers. Referring now to Figure 5, a block diagram illustrating an architecture for implementing at least a portion of an intelligent automated assistant in a distributed computing network in accordance with at least one embodiment is shown.

[0041] 5, one or more clients 1304 are provided. Each client 1304 executes software implementing a client-side portion of the present invention. In addition, one or more servers 1340 may be provided to service requests received from the clients 1304. The clients 1304 and servers 1340 communicate with each other via an electronic network 1361, such as the Internet. The network 1361 may be implemented using any known network protocol, including, for example, wired and / or wireless protocols.

[0042] Also, in one embodiment, server 1340 calls external services 1360 when it needs to obtain additional information or reference stored data related to a previous interaction with a particular user. Communication with external services 1360 occurs, for example, over network 1361. In various embodiments, external services 1360 include web-enabled services and / or functionality associated with or installed on the hardware device itself. For example, in one embodiment in which assistant 1002 is implemented on a smartphone or other electronic device, assistant 1002 can obtain information stored in a calendar application ("app"), contacts, and / or other sources.

[0043] In various embodiments, the assistant 1002 can control many features and operations of the electronic device on which it is installed. For example, the assistant 1002 invokes external services 1360 that interface with the device's functionality and applications via APIs or other means to perform functions and operations that would be initiated using a traditional user interface on the device. Such functions and operations include, for example, setting an alarm, making a call, sending a text or email message, and adding a calendar event. Such functions and operations are performed as add-on functions in the context of a conversational dialog between the user and the assistant 1002. Such functions and operations are either specified by the user in the context of such a dialog or are automatically performed based on the context of the dialog. Thus, the assistant 1002 is used as a control mechanism to initiate and control various operations of the electronic device, and is used as an alternative mechanism to traditional mechanisms such as buttons or a graphical user interface.

[0044] For example, the user provides input to the assistant 1002 such as "I need to wake tomorrow at 8am." Once the assistant 1002 determines the user's intent, using techniques described herein, the assistant 1002 invokes an external service 1340 to interface with the device's alarm clock function or application. The assistant 1002 sets the alarm on behalf of the user. In this manner, the user uses the assistant 1002 as an alternative mechanism to traditional mechanisms for setting an alarm or performing other functions of the device. If the user's request is unclear or requires further clarification, the assistant 1002 can use various techniques described herein, including active elicitation, paraphrasing, suggestion, and the like, to obtain the necessary information so that the appropriate service 1340 is invoked and the intended action is taken. In one embodiment, the assistant 1002 prompts the user for confirmation before invoking a service 1340 to perform a function. In one embodiment, the user can selectively disable the assistant's 1002's ability to invoke specific services 1340 or can disable all such service invocations as desired.

[0045] The system of the present invention may be implemented with many different clients 1304 and modes of operation. Referring now to FIG. 6, a block diagram illustrating a system architecture illustrating several different clients 1304 and modes of operation is shown. Those skilled in the art will appreciate that the various clients 1304 and modes of operation shown in FIG. 6 are merely exemplary, and that the system of the present invention may be implemented using clients 1304 and / or modes of operation other than those illustrated. Furthermore, a system may include any or all of such clients 1304 and / or modes of operation, alone or in any combination. Illustrated examples include the following:

[0046] A computing device 1402 including input / output devices and / or sensors. A client component may be deployed on any such computing device 1402. At least one embodiment is implemented using a web browser 1304A or other software application that allows communication with the server 1340 over the network 1361. The input / output channel may be any type of channel including, for example, visual and / or auditory channels. For example, in one embodiment, the system of the present invention is implemented using voice communication methods, allowing an embodiment of an assistant for the visually impaired in which the equivalent of a web browser is voice driven and uses voice for output.

[0047] · Mobile devices 1406 containing I / O and sensors where the client is implemented as an application on the mobile device 1304B. This includes, but is not limited to, mobile phones, smart phones, personal digital assistants, tablet devices and networked game consoles.

[0048] · A consumer device 1410 containing I / O and sensors where the client is implemented as an embedded application in the device 1304C.

[0049] · Cars and other vehicles 1414 including dashboard interfaces and sensors where clients are implemented as embedded system applications 1304D, including but not limited to the car's navigation systems, voice control systems, in-car entertainment systems, etc.

[0050] · A networked computing device 1418 such as a router, where the client is implemented as a device resident application 1304E, or any other device that resides in or interfaces with a network.

[0051] An email client 1424 to which an embodiment of the Assistant connects via an email modality server 1426. The email modality server 1426 acts as a communications bridge, taking in input from the user, e.g., as email messages sent to the Assistant, and sending output from the Assistant to the user as responses.

[0052] · An instant messaging client 1428 to which an embodiment of the Assistant connects via a messaging modality server 1430. The messaging modality server 1430 acts as a communications bridge, taking in input from the user as messages sent to the Assistant, and sending output as messages from the Assistant to the user in response.

[0053] A voice call 1432 to which one embodiment of the Assistant connects via a VoIP (Voice over IP (Internet Protocol)) modality server 1430. The VoIP modality server 1430 acts as a communications bridge, taking input from the user as spoken voice to the Assistant, and sending output from the Assistant to the user in response, e.g. as synthesized voice.

[0054] In the case of messaging platforms, including but not limited to email, instant messaging, discussion forums, group chat sessions, live help or customer support sessions, etc., assistant 1002 acts as a participant in the conversation. Assistant 1002 monitors the conversation and responds to individuals or groups using one or more of the techniques and methods described herein for one-to-one interactions.

[0055] In various embodiments, functionality implementing the techniques of the present invention is distributed across one or more client and / or server components. For example, various software modules are implemented to perform various functions associated with the present invention, and such modules are implemented in various forms for execution on the server and / or client components. Referring now to FIG. 7, an example of a client 1304 and a server 1340 communicating with each other to implement the present invention according to one embodiment is shown. FIG. 7 illustrates one possible configuration in which software modules are distributed between the client 1304 and the server 1340. Those skilled in the art will appreciate that the illustrated configuration is merely exemplary, and such modules may be distributed in many different ways. Furthermore, one or more clients 1304 and / or servers 1340 may be provided, with modules distributed between the client 1304 and / or server 1340 in any of many different ways.

[0056] 7, the input derivation and output processing functionality is distributed between client 1304 and server 1340, with the client portion of input derivation 1094a and the client portion of output processing 1092a located on client 1304, and the server portion of input derivation 1094b and the server portion of output processing 1092b located on server 1340. The following components are located on server 1340:

[0057] Complete glossary 1058b · A complete library of language pattern recognizers 1060b Master version 1052b of short-term personal memory Master version of long-term personal memory 1054b

[0058] In one embodiment, the client 1304 maintains a subset and / or portion of these components locally to improve responsiveness and reduce dependency on network communications. Such subset and / or portion are maintained and updated according to well-known cache management techniques. Such subset and / or portion may include, for example:

[0059] Glossary subset 1058a A subset of the language pattern recognizer library 1060a Short-term personal memory cache 1052a Long-term personal memory cache 1054a

[0060] Additional components may be implemented as part of the server 1340, including, for example: · Language Interpreter 1070 Dialog Flow Processor 1080 Output Processor 1090 · Domain entity database 1072 · Task Flow Model 1086 ·Service Orchestration 1082 Service Function Model 1088

[0061] Each of these components is described in further detail below. Server 1340 interfaces with external services 1360 to obtain additional information as needed.

[0062] Conceptual Architecture Referring now to Figure 1, a schematic block diagram of one particular embodiment of an intelligent automated assistant 1002 is shown. As described in more detail herein, various embodiments of the intelligent automated assistant system are configured, designed, and / or operable to provide various operations, functionality, and / or features generally associated with intelligent automated assistant technology. Also, as described in more detail herein, many of the various operations, functionality, and / or features of the intelligent automated assistant systems disclosed herein enable or provide various advantages and / or benefits to various entities interfacing with the intelligent automated assistant system. The embodiment shown in Figure 1 may be implemented using any of the hardware architectures described above or using a different type of hardware architecture.

[0063] For example, according to various embodiments, at least some intelligent automated assistant systems are configured, designed, and / or operative to provide various operations, functionalities, and / or features, such as, for example, one or more of the following operations, functionalities, and / or features (or combinations thereof):

[0064] · Automate the application of data and services available over the Internet to discover, locate, select, and especially purchase, reserve, or order products and services. In addition to automating the process of using these data and services, the intelligent automated assistant 1002 allows several data sources and services to be combined and used at once. For example, the intelligent automated assistant may combine information about a product from several review sites, check availability and price from multiple sellers, check location and time constraints, and help find a personalized solution to the user's problem.

[0065] Automate the use of data and services available via the Internet to discover, research, select, and especially book or learn about things to do (including but not limited to movies, events, performances, exhibits, shows, and tourist attractions), places to go (including but not limited to travel destinations, hotels and other places to stay, landmarks and other points of interest, etc.), places to eat and drink (such as restaurants and bars), times and places to meet others, and any other sources of social interaction or entertainment that may be found on the Internet.

[0066] · Enables operation of applications and services through natural language dialogs provided by dedicated applications with graphical user interfaces including searching (including location-based searching), navigation (maps and directions), database lookup (such as finding a business or person by name or other characteristic), obtaining weather conditions and forecasts, checking the price of a market item or the status of a financial transaction, monitoring traffic or flight conditions, accessing and updating calendars and schedules, managing reminders, alerts, tasks and projects, communicating via email or other messaging platforms, and operating the device locally or remotely (e.g., making phone calls, controlling lights and temperature, controlling home security devices, playing music or videos). In one embodiment, the Assistant 1002 is used to initiate, operate and control many of the functions and applications available on the device.

[0067] Providing personalized recommendations for activities, products, services, entertainment sources, time management or any other type of recommendation service that would benefit from natural language interactive dialogue and automated access to data and services.

[0068] According to various embodiments, at least a portion of the various functions, operations, behaviors and / or other features provided by the intelligent automated assistant 1002 are implemented in one or more client systems, one or more server systems, and / or a combination thereof.

[0069] According to various embodiments, at least a portion of the various functions, operations, behaviors and / or other features provided by Assistant 1002 are accomplished by at least one embodiment of an automated call and response procedure, such as that shown and described with respect to FIG.

[0070] Moreover, various embodiments of the Assistant 1002 described herein include or provide a number of different advantages and / or benefits compared to existing intelligent automated assistant technologies, such as, for example, one or more (or a combination thereof) of the following:

[0071] · Integration of speech-text and natural language understanding technologies constrained by a set of explicit models of domains, tasks, services and dialogues. Unlike assistant technologies that attempt to achieve general artificial intelligence systems, the embodiments described herein apply multiple sources of constraints to reduce the number of solutions to a more manageable size. This results in fewer ambiguous interpretations of language, fewer relevant domains or tasks, and fewer ways to operationalize intents in a service. By focusing on specific domains, tasks and dialogues, coverage across domains and tasks can be achieved through human-controlled vocabularies and mappings from intents to service parameters.

[0072] The ability to solve a user's problem by invoking services over the Internet using APIs for those problems. Unlike search engines that only return links and content, some embodiments of the automated assistant 1002 described herein automate the search and problem-solving activities. The ability to invoke multiple services for a given request provides a user with broader functionality than that achieved by visiting a single site, for example, to generate a product or service or find something to do.

[0073] Application of personal information and personal interaction history in interpreting and fulfilling user requests. Unlike traditional search engines or question answering services, the embodiments described herein use information from personal interaction history (e.g., dialogue history and prior selections from results, etc.), personal physical context (e.g., user location and time), and personal information collected in the context of the interaction (e.g., name, email address, physical address, phone number, account number, preferences, etc.). Using these sources of information allows, for example,

[0074] Better interpretation of user input (e.g., using personal history and physical context when interpreting language) More personal results (e.g. biased towards preferences or recent choices) Improving efficiency for users (for example, by automating steps involving signing up for a service or filling out forms) Use of dialog history in interpreting natural language of user input. Embodiments maintain personal history and apply natural language understanding to user input, using dialog context such as current location, time, domain, task step and task parameters to interpret new input. Traditional search engines and command processors interpret at least one query without regard to dialog history. The ability to use dialog history allows for a more natural interpretation, which is similar to normal human conversation.

[0075] Active input derivation, where the assistant 1002 actively guides and constrains input from the user based on the same models and information that the assistant 1002 used to interpret the user's input. For example, the assistant 1002 applies a dialogue model to suggest next steps in a dialogue with the user refining a request, completes a partially typed input based on domain- and context-specific possibilities, or uses semantic interpretation to choose between an ambiguous interpretation of speech as text or an ambiguous interpretation of text as intent.

[0076] Explicit modeling and dynamic management of services with dynamic and robust service orchestration. The architecture of the described embodiment allows the Assistant 1002 to interface with many external services, dynamically determine which services provide the information for a particular user request, map user request parameters to different service APIs, invoke multiple services at once, consolidate results from multiple services, gracefully fail over for failed services, and / or efficiently maintain service realization as APIs and capabilities evolve.

[0077] Use active ontologies as a method and apparatus for building assistants 1002, which simplifies software engineering and data maintenance for automated assistant systems. Active ontologies are a unified data modeling and execution environment for assistants. They provide a framework for connecting various models and sources of data (domain concepts, task flows, glossaries, language pattern recognizers, dialog context, user personal information, and mappings from domains and task requirements to external services). Active ontologies and other architecture inventions described herein enable building deep functionality within a domain to unify multiple information sources and services, and to do so across a collection of domains.

[0078] In at least one embodiment, the intelligent automated assistant 1002 is operable to utilize and / or generate various data and / or other types of information when performing a particular task and / or operation. This includes, for example, input data / information and / or output data / information. For example, in at least one embodiment, the intelligent automated assistant 1002 is operable to access, process and / or utilize information from one or more various sources, such as, for example, one or more local and / or remote memories, devices and / or systems. Further, in at least one embodiment, the intelligent automated assistant 1002 is operable to generate one or more various output data / information that is stored, for example, in the memory of one or more local and / or remote devices and / or systems.

[0079] Examples of various input data / information that the intelligent automated assistant 1002 may access and / or utilize include, but are not limited to, one or more (or a combination) of the following:

[0080] Mobile devices such as mobile phones and tablets, computers with microphones, Bluetooth headsets, automobile voice control systems, telephone systems, recordings in answering services, audio voice mail in unified messaging services, consumer applications with voice input such as clock radios, voice input from telephone offices, home entertainment control systems and games consoles.

[0081] Text input from a keyboard on a computer or mobile device, a keypad on a remote control or other consumer electronic device, email messages sent to an Assistant, instant messages or similar short messages sent to an Assistant, messages received from players in a multi-user gaming environment, and text streamed in a message feed.

[0082] Location information input from sensors or location-based systems. Examples include Global Positioning System (GPS) and Assisted GPS (A-GPS) in mobile phones. In one embodiment, location information is combined with explicit user input. In one embodiment, the system of the present invention can detect when a user is at home based on known address information and a current location determination. In this manner, certain inferences can be made regarding the types of information a user may be interested in when at home as opposed to when outside the home, and the types of services and actions that should be invoked for the user depending on whether the user is at home or not.

[0083] Time information from the client device's clock. This includes, for example, the time on a phone or other client device indicating the local time and the time zone. Furthermore, the time is used in the context of a user request to interpret phrases such as "in an hour" and "tonight".

[0084] Compass, accelerometer, gyroscope and / or movement speed data and other sensor data from mobile devices, handheld devices or embedded systems such as automotive control systems. This includes device positioning data from remote controls to appliances and game consoles.

[0085] Click events, menu selection events and other events from a Graphical User Interface (GUI) on any device with a GUI. Further examples include touches on a touch screen.

[0086] Events from sensors and other data driven triggers such as alarm clocks, calendar alerts, price change triggers, location triggers and press notifications from the server to the device.

[0087] Input for the embodiments described herein further includes the context of the user interaction history, including dialog and request history.

[0088] Examples of various output data / information generated by the intelligent automated assistant 1002 include, but are not limited to, one or more (or a combination) of the following:

[0089] Text output sent directly to an output device and / or to a device's user interface Text and graphics sent to users via email - Text and graphics sent to users via messaging services Audio output, which may include one or more (or a combination) of the following:

[0090] Synthetic Voice -Sampling audio Recorded messages The graphical layout of information, including pictures, rich text, video, sounds and hyperlinks, e.g. content rendered in a web browser.

[0091] Actuator outputs to control physical actions on the device such as powering it on or off, making a sound, changing color, vibrating, or controlling lights.

[0092] Invoking other applications on the device, such as mapping applications, voice dialing a phone, sending an email or an instant message, playing media, making entries in calendar, task manager and notes applications, and other applications.

[0093] Actuator outputs to control physical actions on devices connected to or controlled by the device, such as remote camera movement, controlling a wheelchair, playing music on remote speakers, and playing video on a remote display.

[0094] It is understood that the intelligent automated assistant 1002 of Figure 1 is one example of a broad range of intelligent automated assistant system embodiments that may be implemented. Other embodiments of the intelligent automated assistant system (not shown) may include additional components / features, fewer components / features, and / or different components / features, as compared to, for example, the components / features illustrated in the example embodiment of the intelligent automated assistant system of Figure 1.

[0095] User Interaction Referring to Figure 2, an example of an interaction between at least one embodiment of an intelligent automated assistant 1002 and a user is shown. The example of Figure 2 assumes that the user is speaking to the intelligent automated assistant 1002 using input device 1206, which is a voice input mechanism, and the output is a graphical layout to output device 1207, which is a scrollable screen. Conversation screen 101A features a conversational user interface that shows what the user said 101B ("I'd like a romantic place for Italian food near my office") and the assistant's 1002 response, which is a summary of the results 101C ("OK, I found these Italian restaurants which reviews say are romantic close to your work") and a set of results 101D (the first three of the list of restaurants are displayed). In this example, the user clicks on the first result in the list, which automatically opens to show more information about the restaurant shown in information screen 101E. The information screen 101E and the conversation screen 101A are displayed on the same output device, such as a touch screen or other display device, that is, the example shown in Fig. 2 is two different output states for the same output device.

[0096] In one embodiment, information screen 101E shows information collected and combined from a variety of services, including, for example, any or all of the following:

[0097] · Store address and geolocation (location information?) -Distance from the user's current location Reviews from multiple sources

[0098] In one embodiment, the information screen 101E further includes some examples of services that the assistant 1002 provides for the user, including: Dial to call the store ("calling") Remember this restaurant for future reference ("save") Email someone directions and information about this restaurant ("share") Show this restaurant's location and directions on a map ("map it") Save personal notes about this restaurant ("my notes")

[0099] As shown in the example of FIG. 2, in one embodiment, the assistant 1002 includes intelligence beyond simple database applications, such as, for example: · Process expressions of intent in natural language 101B, not just keywords. Inferring semantic intent from its linguistic input, e.g., interpreting "place for Italian food" as "Italian restaurants." Activating semantic intent into strategies to use online services and executing the strategies for the user (e.g. activating a desire for a romantic place into a strategy to check reviews on online review sites that describe the place as “romantic”). Intelligent Automated Assistant Components

[0100] According to various embodiments, the intelligent automated assistant 1002 includes a number of different components, devices, modules, processes, systems, etc., which are implemented and / or instantiated using, for example, hardware and / or a combination of hardware and software. For example, as shown in the example embodiment of FIG. 1, the assistant 1002 includes one or more of the following types of systems, components, devices, processes, etc. (or combinations thereof):

[0101] One or more active ontologies1050 Active input derivation component 1094 (including a client portion 1094a and a server portion 1094b) Short-term private memory component 1052 (including master version 1052b and cache 1052a) Long-term private memory components 1054 (including master version 1054b and cache 1054a) · Domain Model Components 1056 Glossary components 1058 (including the complete glossary 1058b and subsets 1058a) Language pattern recognizer component 1060 (including full library 1060b and subset 1560a) · Language Interpreter Component 1070 · Domain entity database 1072 Dialog flow processor component 1080 Service Orchestration Components 1082 · Service components 1084 Task flow model components 1086 Dialogue flow model components 1087 Service Model Components 1088 Output Processor Component 1090

[0102] As will be described in connection with FIG. 7, in certain client / server implementations, some or all of these components may be distributed between a client 1304 and a server 1340 .

[0103] For illustrative purposes, at least a portion of the various components of one particular example embodiment of the intelligent automated assistant 1002 will now be described in further detail with reference to the example embodiment of the intelligent automated assistant 1002 of FIG.

[0104] Active Ontology 1050 The active ontology 1050 acts as a unifying infrastructure that integrates data from models, components, and / or other parts of an embodiment of the intelligent automated assistant 1002. In the field of computer and information science, ontologies provide structure to data and knowledge representations such as classes / kinds, relationships, attributes / properties, and their instantiation in instances. For example, ontologies are used to build models of data and knowledge. In some embodiments of the intelligent automated assistant 1002, ontologies are part of a modeling framework for building models such as domain models.

[0105] In the context of the present invention, the "active ontology" 1050 acts as an execution environment in which distinct processing elements are configured as ontologies (e.g., with distinct attributes and relationships to other processing elements). These processing elements perform at least some of the tasks of the intelligent automated assistant 1002. Any number of active ontologies 1050 may be provided.

[0106] In at least one embodiment, the active ontology 1050 is operable to perform and / or implement various functions, operations, behaviors and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0107] Acts as a modeling and development environment, integrating models and data from various model and data components, including but not limited to: · Domain Model 1056 ·Glossary 1058 · Domain entity database 1072 · Task Flow Model 1086 Dialog Flow Model 1087 Service Function Model 1088

[0108] Acts as a data modelling environment where ontology-based editing tools operate to develop new models, data structures, database schemas and representations.

[0109] · Acts as a live execution environment, instantiating values ​​for the domain 1056, the tasks 1086 and / or the dialogue model 1087 elements, the language pattern recognizer, and / or the lexicon 1058, and user-specific information as found in the short-term personal memory 1052, the long-term personal memory 1054, and / or the results of the service orchestration 1182. For example, some nodes of the active ontology correspond to domain concepts such as restaurant and its properties, such as the restaurant name. During live execution, these active ontology nodes are instantiated with matches of specific restaurant entities and their names and how the names correspond to words in the natural language input utterances. Thus, in this embodiment, the active ontology is acting as a modeling environment that specifies the concept that a restaurant is an entity that includes matches with a name, and stores the dynamic binding of these modeling nodes to data from natural language parsing and entity databases.

[0110] Enable communication and collaboration between components and processing elements of an intelligent automated assistant, such as one or more (or a combination) of the following: Active Input Derivation Component 1094 · Language Interpreter Component 1070 Dialog flow processor component 1080 Service Orchestration Components 1082 · Service components 1084

[0111] In one embodiment, at least a portion of the functions, operations, behaviors and / or other features of the active ontology 1050 described herein are implemented at least in part using various methods and apparatus described in U.S. patent application Ser. No. 11 / 518,292, filed Sep. 8, 2006, entitled "Methods and Apparratus for Building an Intelligent Automated Assistant."

[0112] In at least one embodiment, a given instance of active ontology 1050 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by active ontology 1050 include, but are not limited to, one or more of the following (or a combination thereof):

[0113] ·Static data available from one or more components of the intelligent automated assistant 1002.

[0114] Data that is dynamically instantiated per user session and maintains, for example, but not limited to, user-specific input and output state exchanged between components of the intelligent automated assistant 1002, the contents of short-term personal memory, and inferences made from prior states of the user session.

[0115] In this manner, the active ontology 1050 is used to unify elements of various components in the intelligent automated assistant 1002. The active ontology 1050 allows an author, designer, or system builder to integrate components such that elements of one component are identified by elements of other components, thus allowing the author, designer, or system builder to more easily combine and integrate components.

[0116] 8, an example of a portion of an active ontology 1050 is shown according to one embodiment. This example is intended to readily illustrate some of the various functions, actions, behaviors and / or other features provided by the active ontology 1050.

[0117] The active ontology 1050 of Figure 8 includes representations of restaurants and dining events. In this example, restaurant is a concept 1610 that includes properties such as name 1612, food offerings 1615, and location 1613, which is modeled as a structured node with a property for address 1614. The dining event concept is modeled as a node 1616 that includes dining party 1617 (which has size 1619) and duration 1618.

[0118] The active ontology includes and / or references a domain model 1056. For example, FIG. 8 shows a dining out domain model 1622 that is linked to a restaurant concept 1610 and a dining event concept 1616. In this instance, the active ontology 1050 includes the dining out domain model 1622, and in particular at least two nodes of the active ontology 1050, namely restaurant 1610 and dining event 1616, are included in and / or referenced by the dining out domain model 1622. This domain model specifically represents the notion that dining out includes dining events that occur at a restaurant. The restaurant 1610 and dining event 1616 nodes of the active ontology are further included in and / or referenced by other components of the intelligent automated assistant, as indicated by the dotted lines in FIG. 8.

[0119] The active ontology includes and / or references a task flow model 1086. For example, FIG. 8 shows an event planning task flow model 1630 that models domain-independent event planning applied to a domain-specific event type, namely, a meal event 1616. Here, the active ontology 1050 includes a general event planning task flow model 1630, which includes nodes that represent events and other concepts that are included in planning those events. The active ontology 1050 further includes a node for a specific type of event, a meal event 1616. In this example, the meal event 1616 is included or referenced in the domain model 1622 and in the task flow model 1630, both of which are included and / or referenced in the active ontology 1050. Again, the meal event 1616 unifies elements of various components that are included and / or referenced in other components of the intelligent automated assistant, as indicated by the dotted lines in FIG. 8.

[0120] The active ontology includes and / or references the dialog flow model 1087. For example, FIG. 8 shows a dialog flow model 1642 for deriving values ​​of constraints required for a transaction instantiated with the constraint party size as represented by the concept 1619. Again, the active ontology 1050 provides a framework for relating and unifying various components such as the dialog flow model 1087. In this case, the dialog flow model 1642 has a general notion of constraints that are instantiated in this particular example for the party size 1619 node of the active ontology. This particular dialog flow model 1642 works with an abstract notion of constraints that is domain independent. The active ontology 1050 represents the party size characteristic 1619 of the party node 1617 associated with the meal event node 1616. In one such embodiment, the intelligent automated assistant 1002 uses the active ontology 1050 to unify the characteristic of party size 1619, which is part of a cluster of nodes representing a dining event concept 1616, which is part of a domain model 1622 for dining out, with the concept of a constraint in the dialog flow model 1642.

[0121] An active ontology includes and / or references a service model 1088. For example, Fig. 8 shows a model of a restaurant reservation service associated with a dialog flow step to obtain a value required for the restaurant reservation service 1672 to perform a transaction. In this instance, the service model 1672 for the restaurant reservation service specifies that a reservation requires a value for party size 1619 (the number of people who will sit at the table to be reserved). The concept party size 1619, which is part of the active ontology 1050, is linked or associated with a general dialog flow model 1642 that asks the user about constraints on the transaction. In this instance, party size is a required constraint for the dialog flow model 1642.

[0122] The active ontology includes and / or references a domain entity database 1072. For example, Figure 8 shows a domain entity database for restaurant 1652 associated with a restaurant node 1610 in the active ontology 1050. The active ontology 1050 represents a general concept of a restaurant 1610 as used by various components of the intelligent automated assistant 1002, which is instantiated with data about the particular restaurant in the restaurant database 1652.

[0123] The active ontology includes and / or references a glossary database 1058. For example, Figure 8 shows a glossary database of cuisines 1662, such as Italian and French, and words associated with each cuisine, such as "French," "continental," and "provincial." The active ontology 1050 includes a restaurant node 1610 that is associated with a cuisine offering node 1615, which is associated with a representation of the cuisine database 1662. A particular entry in the database 1662 for a cuisine, such as "French," is associated via the active ontology 1050 as an instance of the concept of cuisine offering 1615.

[0124] The active ontology includes and / or references any database that maps to concepts or other representations in the ontology 1050. The domain entity database 1072 and the glossary database 1058 are just two examples of how the active ontology 1050 integrates databases with each other and with other components of the automated assistant 1002. Active ontologies allow document authors, designers, or system builders to specify non-trivial mappings between representations in a database and representations in the ontology 1050. For example, a database schema for a restaurant database 1652 might represent restaurants as tables of strings and numbers, or as images from a larger database of businesses, or any other representation that is appropriate for the database 1652. In this example of the active ontology 1050, restaurants 1610 are concept nodes with properties and relationships that are organized differently than database tables. In this example, the nodes of the ontology 1050 are associated with elements of the database schema. The integration of database and ontology 1050 provides a unified representation for interpreting and acting on a particular data entry in the database with respect to the larger collection of models and data in the active ontology 1050. For example, the word "French" may be an entry in a cuisine database 1662. In this example, because the database 1662 is integrated in the active ontology 1050, the same word "French" also has an interpretation as a possible cuisine offered at a restaurant, which is relevant when planning a dining event, and the cuisine serves as a constraint to use when using a restaurant reservation service, etc. The active ontology integrates the database into the modeling and execution environment to interact with other components of the automated assistant 1002.

[0125] As discussed above, the active ontology 1050 allows a document author, designer, or system builder to integrate components. Thus, in the example of Figure 8, component elements, such as constraints in the dialog flow model 1642, are identified with other component elements, such as required parameters of the restaurant reservation service 1672.

[0126] The active ontology 1050 may be embodied, for example, as a configuration of models, databases, and components, such that relationships among the models, databases, and components are either: · Container related and / or containing · Relationship with links and / or pointers -Interfaces via APIs within and between programs

[0127] 9, an example of another embodiment of an intelligent automated assistant system 1002 is shown, where the domain model 1056, glossary 1058, language pattern recognizer 1060, short-term personal memory 1052 and long-term personal memory 1054 components are organized under a common container associated with an active ontology 1050, and other components such as an active input derivation component 1094, a language interpreter 1070 and a dialog flow processor 1080 are associated with the active ontology 1050 via API relationships.

[0128] Active Input Derivation Component 1094 In at least one embodiment, the active input derivation component 1094 (which may be implemented in a standalone configuration or in a configuration including server and client components, as described above) is operable to perform and / or implement various functions, operations, behaviors and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0129] Deriving, facilitating and / or processing information about inputs and / or wants or requirements from the user or the user's environment. For example, if a user is searching to find a restaurant, the input derivation module obtains information about the user's constraints or preferences for location, time, cuisine, price, etc.

[0130] Facilitate various inputs from various sources, such as one or more (or a combination) of the following: Input from a keyboard or any other input device that generates text Keyboard input in a user interface that provides dynamic completion of partial input suggestions - Input from a voice input system Input from a Graphical User Interface (GUI) where the user clicks, selects, or directly manipulates graphic objects to indicate choices Input from other applications that generate text and send it to an automated assistant, including email, text messaging, or other text communication platforms

[0131] By performing active input derivation, assistant 1002 can disambiguate intent at an early stage of input processing. For example, in one embodiment where input is provided by voice, the waveform is sent to server 1340 where terms are extracted and semantic interpretation is performed. The results of such semantic interpretation are used to drive active input derivation, providing the user with alternative candidate words to choose from based on semantic fit and phonetic match.

[0132] In at least one embodiment, the active input derivation component 1094 actively, automatically, and dynamically guides the user to inputs that are acted upon by one or more services provided by an embodiment of the assistant 1002. Referring now to Figure 10, a flow chart illustrating a method of operation for the active input derivation component 1094 according to one embodiment is shown.

[0133] The procedure begins (20). In step 21, the assistant 1002 provides an interface in one or more input channels. For example, the user interface may provide a user option to speak, type, or tap at any stage of the conversational interaction. In step 22, the user selects an input channel by initiating input in one modality, such as pressing a button to start recording audio or displaying an interface for typing.

[0134] In at least one embodiment, the assistant 1002 provides default suggestions (23) for a selected modality, i.e., the assistant 1002 provides options 24 that are relevant in the current context before the user enters any input in that modality. For example, in a text input modality, the assistant 1002 provides a list of common words that initiate a text request or command, such as one or more of imperative verbs (e.g., find, buy, reserve, get, call, check, and schedule), nouns (e.g., restaurants, movies, events, and businesses), or menu-like options that name the domain of the conversation (e.g., weather, sports, and news).

[0135] If the user selects one of the default options at 25 and a preference for auto-submit is set (30), the procedure returns immediately, which is similar to the behavior of a conventional menu selection.

[0136] However, the initial option is taken as partial input, or the user has begun inputting partial input 26. In at least one embodiment, the user may choose at any point during input to indicate that partial input is complete 22, whereupon the procedure returns.

[0137] At 28, the most recent entry, whether selected or entered, is added to the cumulative entry.

[0138] At 29, the system suggests relevant next possible inputs given the current input and other sources of constraints on what constitutes a relevant and / or meaningful input.

[0139] In at least one embodiment, the source of the constraints on the user input (e.g., used in steps 23 and 29) is one or more of the various models and data sources included in the assistant 1002, including, but not limited to, one or more of the following (or a combination thereof):

[0140] A glossary 1058, for example suggesting words or phrases that match the current input. In at least one embodiment, the glossary is associated with any one or more nodes of the active ontology, the domain model, the task model, the dialog model, and / or the service model.

[0141] A domain model 1056 that instantiates the domain model or constrains inputs that are consistent with the domain model. For example, in at least one embodiment, the domain model 1056 is used to suggest concepts, relationships, properties, and / or instances that are consistent with the current input.

[0142] A linguistic pattern recognizer 1060 that is used to recognize phrases, phrases, grammatical constructs or other patterns in the current input and to suggest completions that will complete the pattern.

[0143] · A domain entity database 1072 that is used to suggest possible entities in the domain that match the input (eg, business names, movie names, event names, etc.).

[0144] Short-term memory 1052 used to match previous inputs or portions of previous inputs and / or any other characteristics or facts about the history of interaction with the user. For example, partial inputs may be matched to cities the user has traveled to during the session, whether virtual (e.g., as indicated in the query) and / or physical (e.g., as determined from a location sensor).

[0145] In at least one embodiment, semantic restates of recent inputs, requests, or results are matched with the current input. For example, if a user previously requested "live music" to get a concert listing, and types "music" in an active input derivation environment, suggestions include "live music" and / or "concerts."

[0146] Long-term personal memory 1054, used to suggest matching items from long-term memory. Such matching items may include, for example, one or more or combinations of stored domain entities (e.g., "favorite" restaurants, movies, theaters, and places, etc.), to-do items, list items, calendar entries, names of people in a contacts / phone book, and street or city names shown in a contacts / phone book, etc.

[0147] · A task flow model 1086 that is used to suggest inputs based on the next possible step in the task flow.

[0148] Dialog flow model 1087 used to suggest inputs based on the next possible step in the dialog flow.

[0149] A service capability model 1088 that is used to suggest possible services to employ by name, category, capability, or any other characteristic in the model. For example, a user may type in part of a preferred review site name and the assistant 1002 may suggest the complete command to query the review site for reviews.

[0150] In at least one embodiment, the active input derivation component 1094 presents a conversational interface to the user, e.g., an interface in which the user and the assistant communicate by speaking to each other in a conversational manner. The active input derivation component 1094 is operable to implement and / or realize a variety of conversational interfaces.

[0151] In at least one embodiment, the active input derivation component 1094 is operable to implement and / or realize various conversational interfaces in which the assistant 1002 uses multiple conversational exchanges to prompt for information from a user according to a dialog model. A dialog model represents a procedure for executing a dialog, such as, for example, a series of steps required to derive information necessary to perform a service.

[0152] In at least one embodiment, active input derivation component 1094 provides constraints and guidance to the user in real time as the user types, speaks, or composes the input. For example, active derivation guides the user to type a text input that can be recognized by an embodiment of Assistant 1002 and / or served by one or more services provided by an embodiment of Assistant 1002. This is advantageous over passively waiting for unconstrained input from the user because it allows the user's efforts to be focused on input that is likely to be useful and / or allows an embodiment of Assistant 1002 to apply interpretations of the input in real time as the user is typing.

[0153] At least a portion of the functions, operations, behaviors and / or other features of active input derivation described herein are implemented at least in part using various methods and apparatus described in U.S. patent application Ser. No. 11 / 518,292, filed Sep. 8, 2006, entitled "Method And Apparatus for Building an Intelligent Automated Assistant."

[0154] According to certain embodiments, multiple instances or threads of the active input derivation component 1094 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or software.

[0155] According to various embodiments, one or more different threads or instances of the active input derivation component 1094 are initiated in response to detection of one or more conditions or events that satisfy one or more various minimum threshold criteria that trigger initiation of at least one instance of the active input derivation component 1094. Various examples of conditions or events that trigger initiation and / or realization of one or more different threads or instances of the active input derivation component 1094 include, but are not limited to, one or more of the following (or a combination thereof):

[0156] Starting a user session. For example, when a user session starts an application, such as one embodiment of the assistant 1002, the interface provides an opportunity for the user to begin input, for example by pressing a button to start a voice input system or clicking a text field to start a text input session. Detected user input. When the Assistant 1002 explicitly prompts the user for input, such as when the Assistant 1002 requests a response to a question or provides a menu of next steps to choose from. When the assistant 1002 is facilitating a user to perform a transaction and is collecting data for that transaction, such as filling out a form.

[0157] In at least one embodiment, a given instance of the active input derivation component 1094 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by the active input derivation component 1094 include, but are not limited to, one or more of the following (or a combination thereof):

[0158] A database of possible words to use when entering text - Grammar of possible phrases to use in text input conversations A database of possible interpretations of voice input A database of previous inputs from you or other users Data from any of the various models and data sources that are part of an embodiment of the Assistant 1002, including but not limited to one or more (or a combination) of the following:

[0159] · Domain Model 1056 ·Glossary 1058 ·Language Pattern Recognition 1060 · Domain entity database 1072 Short-term memory 1052 Long-term personal memory 1054 · Task Flow Model 1086 Dialog Flow Model 1087 Service Function Model 1088

[0160] According to various embodiments, the active input derivation component 1094 applies an active derivation procedure to, for example, one or more (or a combination) of the following: Typed input -Voice input Input from a Graphical User Interface (GUI), including gestures Input from suggestions provided in the dialogue Calculate and / or detect events from the environment

[0161] Active typing derivation Referring to FIG. 11, a flow chart illustrating a method for active typing derivation is shown according to one embodiment.

[0162] The method begins (110). The assistant 1002 receives partial text input (111), for example, via the input device 1206. The partial text input includes, for example, characters typed so far into a text input field. The user may indicate at any time that the typing is complete (112), for example, by pressing the Enter key. If not, the suggestion generator generates (114) candidate suggestions 116. These suggestions may be syntactic, semantic, and / or other types of suggestions based on any of the sources or constraints described herein. If a suggestion is selected (118), the input is transformed (117) to include the selected suggestion.

[0163] In at least one embodiment, the suggestions include expansions to the current input, for example, a suggestion for "rest" is "restaurants."

[0164] In at least one embodiment, the suggestions include replacements for portions of the current input, for example, a suggestion for "rest" is "places to eat."

[0165] In at least one embodiment, the suggestions include replacements and rephrasing of parts of the current input, for example if the current input is "find restaurants of style", a suggestion is "italian" and if that suggestion is selected, the entire input is rewritten as "find Indian restaurants".

[0166] In at least one embodiment, the resulting returned input is annotated 119 such that information about the selections made at 118 is stored with the text input. This allows, for example, semantic concepts or entities underlying the string to be associated with the string when it is returned, improving the accuracy of subsequent language interpretation.

[0167] 12-21, screenshots are shown illustrating portions of several steps of active typing derivation according to one embodiment. The screenshots show an example of one embodiment of the assistant 1002 as implemented in a smart phone such as the iPhone marketed by Apple Inc. of Cupertino, Calif. Input is provided to such a device via a touch screen that includes on-screen keyboard functionality. Those skilled in the art will appreciate that the screenshots show one exemplary embodiment only, and that the techniques of the present invention may be implemented in other devices using other layouts and configurations.

[0168] In Figure 12, screen 1201 includes a top-level set of suggestions 1202 that are shown when no input is provided in field 1203. This corresponds to step 23 with no input in Figure 10 which applies to step 114 in Figure 11 in the absence of input.

[0169] In FIG. 13, screen 1301 shows an example of using a glossary to provide suggested completions 1303 for a partial user input 1305 entered into field 1203 using on-screen keyboard 1304. These suggested completions 1303 are part of the functionality of active input derivation 1094. A user has entered a partial user input 1305 that includes the string "comm". The glossary component 1058 provides a mapping of this string to three different types of instances that are listed as suggested completions 1303. The phrase "community & local events" is a category in the events domain, "chambers of commerce" is a category in the local business search domain, and "Jewish Community Center" is the name of an instance of a local business. The glossary component 1058 provides data references and management of namespaces such as these. The user can tap Go button 1306 to indicate that they are finished entering the input. This causes the assistant 1002 to proceed to the completed text string as a unit of the user input.

[0170] In FIG. 14, screen 1401 shows an example of a suggested semantic completion 1303 for the substring "wh" 1305 including the entire phrase with typed parameters. These types of suggestions are possible by using one or more of the various models and sources of input constraints described herein. For example, in one embodiment shown in FIG. 14, "what is happening in city" is an active derivation of a location parameter in the local event domain. "where is business name" is an active derivation of a business name in the local business search domain. "what is showing at the venue name" is an active derivation of a venue name constraint in the local event domain. "what is playing at the movie theater" is an active derivation of a movie theater name constraint in the local event domain. These examples show that suggested completions are generated by a model rather than simply coming from a database of previously entered queries.

[0171] In FIG. 15, screen 1501 shows a continuation of the same example after the user has entered additional text 1305 into field 1203. Suggested completions 1303 are updated to match the additional text 1305. In this example, data from the domain entity database 1072 was used; that is, places whose names start with "f" were used. Note that this is not all words that start with "f", but a much smaller set of semantically more related suggestions. Again, the suggestions are generated by applying a model, in this example a domain model that represents local events that occur at places, that are businesses that have names. The suggestions actively derive inputs that create potentially meaningful entries when using the local event service.

[0172] In FIG. 16, screen 1601 shows a continuation of the same example after the user has selected one of the suggested completions 1303. The active elicitation continues by prompting the user to further specify the type of information desired, now presenting a number of modifiers 1602 from which the user can choose. In this example, these modifiers are generated by the domain, task flow and dialog flow models. The domain is local events, which includes a category of events taking place at that location and on that day, with event names and actors. In this embodiment, the fact that these five options are offered to the user is generated from the dialog flow model, which indicates that the user should request constraints that have not yet been entered, and from the service model, which indicates that these five constraints are parameters to the assistant's available local event services. Selections of suitable phrases to use as modifiers, such as "by category" and "featured", are also generated from the domain lexicon database.

[0173] In FIG. 17, screen 1701 shows a continuation of the same example after the user has selected one of modifiers 1602 .

[0174] 18, screen 1801 shows a continuation of the same example in which the selected modifier 1602 is added to field 1203 and additional modifiers 1602 are presented. The user can select one of the modifiers 1602 and / or provide additional text input via keyboard 1304.

[0175] 19, screen 1901 shows a continuation of the same example in which selected modifiers 1602 have been added to field 1203 and further modifiers 1602 are presented. In this example, previously entered constraints are not actively derived in duplicate.

[0176] In Figure 20, screen 2001 shows a continuation of the same example when the user taps the Go button 1306. The user's input is shown in box 2002, and a message is shown in box 2003 to provide feedback to the user regarding the query that is being performed in response to the user's input.

[0177] In Figure 21, screen 2101 shows a continuation of the same example when results are found. A message is shown in box 2102. The results 2103 include input elements that allow the user to view further details, save the identified event, purchase tickets, and add notes.

[0178] Within one screen 2101, the other displayed screens are scrollable, allowing the user to scroll up to view screen 2001 or other previously presented screens and make changes to the query as desired.

[0179] Active voice input derivation Referring to FIG. 22, a flow chart illustrating a method for active input derivation for voice input is shown according to one embodiment.

[0180] The method begins (221). The assistant 1002 receives (121) speech input in the form of an audible signal. A speech-to-text service 122 or processor generates a set of candidate text interpretations 124 of the audible signal. In one embodiment, the speech-to-text service 122 is implemented using, for example, the Nuance Recognizer available from Nuance Communications, Inc. of Burlington, MA.

[0181] In one embodiment, the assistant 1002 employs statistical language models to generate candidate text interpretations 124 of the speech input 121.

[0182] Additionally, in one embodiment, the statistical language model is trained to look for words, names, and phrases that occur in the various models of the assistant 1002 shown in Figure 8. For example, in at least one embodiment, the statistical language model is fed words, names, and phrases from some or all of the domain model 1056 (e.g., words and phrases related to restaurants and dining events), the task flow model 1086 (e.g., words and phrases related to planning an event), the dialog flow model 1087 (e.g., words and phrases related to constraints needed to collect input for a restaurant reservation), the domain entity database 1072 (e.g., restaurant names), the glossary database 1058 (e.g., cuisine names), the service model 1088 (e.g., service provider names such as OpenTable), and / or any words, names, or phrases associated with any node in the active ontology 1050.

[0183] In one embodiment, the statistical language model is trained to look up words, names and phrases from the long-term personal memory 1054. For example, the statistical language model is fed text from to-do items, list items, personal notes, calendar entries, names of people in a contact / phone book, email addresses, and street or city names listed in a contact / phone book, etc.

[0184] A ranking component analyzes the candidate interpretations 124 and ranks them (126) according to their fit to the syntactic and / or semantic model of the intelligent automated assistant 1002. Any source of constraints on the user input may be used. For example, in one embodiment, the assistant 1002 ranks the output of the speech-to-text interpreter according to how well the interpretations parse syntactically and / or semantically the domain model, task flow model, and / or dialog model, etc. That is, the assistant evaluates how well different combinations of words in the text interpretations 124 fit the concepts, relations, entities, and properties of the active ontology 1050 and its associated models. For example, if the speech-to-text service 122 generates two candidate interpretations, "italian food for lunch" and "italian shoes for lunch," the semantic relevance ranking 126 ranks "italian food for lunch" higher if it matches more closely to nodes in the active ontology 1050 of the assistant 1002 (e.g., the words "italian," "food," and "lunch" all match nodes in the ontology 1050 and are connected by relationships in the ontology 1050, while the word "shoes" matches a node that does not match the ontology 1050 and is not part of the dining out domain network).

[0185] In various embodiments, the algorithms or procedures used by the assistant 1002 to interpret the text input, including any embodiment of the natural language processing procedures shown in FIG. 28, are used to rank and score the candidate text interpretations 124 generated by the speech-to-text service 122.

[0186] In one embodiment, if the ranking component 126 determines (128) that the highest ranked speech interpretation among the interpretations 124 is ranked above a specified threshold, the highest ranked interpretation is automatically selected (130). If no interpretation is ranked above the specified threshold, possible candidate interpretations 134 of the speech are presented to the user (132). The user may then select (136) from the displayed options.

[0187] In various embodiments, user selection 136 from the displayed options is accomplished by any input mode, including any mode of multimodal input, for example, as described in connection with FIG. 16. Such input modes include, but are not limited to, actively derived typed input 2610, actively derived speech input 2620, and / or an actively presented GUI for input 2640, etc. In one embodiment, the user can select from the candidate interpretations 134, for example, by tapping or by speaking. When speaking, the possible interpretations of a new speech input are largely constrained by the small set of options 134 provided. For example, when provided with "Did you mean italian food or italian shoes?", the user simply says "food" and the assistant matches this to "italian food" and does not confuse it with other global interpretations of the input.

[0188] Regardless of whether an input is selected automatically (130) or by a user (136), a resulting input 138 is returned. In at least one embodiment, the returned input is annotated (138) such that information about the selection made in step 136 is stored with the text input. This allows, for example, a semantic concept or entity underlying the string to be associated with the string when it is returned, improving the accuracy of subsequent language interpretations. For example, if "Italian food" was provided as one of the candidate interpretations 134 based on the semantic interpretation of Cuisine=ItalianFood, the machine-readable semantic interpretation is sent along with the user's selection of the string "Italian food" as annotated text input 138.

[0189] In at least one embodiment, the candidate text interpretations 124 are generated based on the speech interpretations received as output of the speech-to-text service 122 .

[0190] In at least one embodiment, the candidate text interpretations 124 are generated by rephrasing the phonetic interpretation for meaning. In some embodiments, there may be multiple rephrases of the same phonetic interpretation, providing examples of different word meanings or homonyms. For example, if the speech-to-text service 122 indicates "place for meet," the candidate interpretations presented to the user are rephrased as "place to meet (local businesses)" and "place for meat (restaurants)."

[0191] In at least one embodiment, the candidate text interpretation 124 includes suggestions for modifying the substring.

[0192] In at least one embodiment, the candidate text interpretations 124 include suggestions for modifying substrings of the candidate interpretations using syntactic and semantic analysis as described herein.

[0193] In at least one embodiment, once the user selects a candidate interpretation, it is returned.

[0194] In at least one embodiment, the user is provided with an interface to edit the interpretation before it is returned.

[0195] In at least one embodiment, the user is provided with an interface to continue with further speech input before the input is returned, allowing the input utterance to be built incrementally, providing syntactic and semantic corrections, suggestions and guidance all at once.

[0196] In at least one embodiment, the user is provided with an interface to proceed directly from 136 to step 111 of the method for active typing derivation (described above in connection with FIG. 11), thereby allowing typing or speech input to be interleaved and providing syntactic and semantic corrections, suggestions and guidance in a single step.

[0197] In at least one embodiment, a user is provided with an interface to proceed directly from step 111 of an embodiment of active typing derivation to an embodiment of active speech derivation, thereby allowing interleaving of typing and speech input and providing syntactic and semantic corrections, suggestions and guidance in one step.

[0198] Active GUI Input Deriving Referring now to FIG. 23, a flow chart illustrating a method for active input derivation for GUI input according to one embodiment is shown.

[0199] The method begins (140). The assistant 1002 presents (141) a graphical user interface (GUI) on the output device 1207, which may include, for example, links and buttons. The user interacts (142) with at least one GUI element. Data 144 is received and converted (146) into a unified format. The converted data is then returned.

[0200] In at least one embodiment, some elements of the GUI are dynamically generated from the model of the active ontology rather than being hard-coded into the computer program. For example, the assistant 1002 can provide a set of constraints to guide a restaurant reservation service that are regions to tap on the screen. Each region represents a constraint name and / or value. For example, the screen has a row of dynamically generated GUI layouts with regions for constraints on cuisine, location, and price range. When the model of the active ontology changes, the GUI screens change automatically without reprogramming.

[0201] Active dialogue suggestion input derivation 24 is a flow diagram illustrating a method for active input derivation at the level of a dialog flow according to one embodiment. The assistant 1002 suggests (151) possible responses 152. The user selects (154) a suggested response. The received input is converted (154) into a unified format. The converted data is then returned.

[0202] In at least one embodiment, the suggestions provided in step 151 are provided as a subsequent step in the dialog and / or task flow.

[0203] In at least one embodiment, the suggestions provide options to refine the query, e.g., using parameters from the domain and / or task model, e.g., to change the assumed location or time of the request.

[0204] In at least one embodiment, the suggestion provides an option to select from alternative interpretations of the ambiguity provided by a language interpretation procedure or component.

[0205] In at least one embodiment, the suggestion provides an option to select from alternative interpretations of the ambiguity provided by a language interpretation procedure or component.

[0206] In at least one embodiment, the suggestion provides an option to select from next steps in the network flow related dialog flow model 1087. For example, the dialog flow model 1087 suggests that after collecting constraints for one domain (e.g., eating at a restaurant), the assistant 1002 should suggest other related domains (e.g., nearby movie theaters).

[0207] Active monitoring of relevant events In at least one embodiment, asynchronous events are treated as inputs like other modalities of active derived input, and thus such events are provided as inputs to Assistant 1002. Once interpreted, such events are treated like any other input.

[0208] For example, a change in the status of a flight initiates an alert notification that is sent to the user. If the flight is indicated as delayed, the assistant 1002 continues the dialog by suggesting an alternative flight or making other suggestions based on the detected event.

[0209] Such an event may be any kind of event. For example, Assistant 1002 may detect that the user has just arrived home, or that they are lost (straying from a specified route), or that a stock price has reached a threshold, or that a television show of interest to the user is starting, or that an interesting musician is touring the area. In any of these situations, Assistant 1002 may proceed with the dialog in much the same way as if the user had initiated the question themselves. In one embodiment, the event may be based on data provided by another device, for example to tell the user when a colleague will be returning from lunch (the colleague's device may signal such an event to the user's device, at which point Assistant 1002 installed on the user's device will respond accordingly).

[0210] In one embodiment, the event is a notification or alert from a calendar, clock, reminder, or to-do application. For example, an alert from a calendar application about a dinner date initiates a dialog with the assistant 1002 about the dining event. The dialog proceeds as if the user had just spoken or typed information about the upcoming dining event, such as "dinner for 2 in San Francisco."

[0211] In one embodiment, the context of a possible event trigger 162 includes information about people, places, times, and other data that is used as part of the input for the assistant 1002 to use in various steps of the process.

[0212] In one embodiment, data from the context of the event trigger 162 is used to disambiguate voice or text input from a user. For example, if a calendar event alert includes the names of people invited to the event, that information helps disambiguate input that may match several people with the same or similar names.

[0213] 25, a flow chart illustrating a method for active monitoring of relevant events according to one embodiment is shown. In this example, the event trigger event is a collection of inputs 162. The assistant 1002 monitors (161) such events. Detected events are filtered and sorted (164) for semantic relevance using models, data and information available from other components of the intelligent automated assistant 1002. For example, events reporting changes in the status of a flight are given higher relevance if the short-term or long-term memory record for the user indicates that the user has been on the flight and / or has asked the assistant 1002 questions about the flight. This sorting and filtering presents only significant events for review by the user, who selects one or more events and acts on them.

[0214] The event data is converted 166 into a unified input format and returned.

[0215] In at least one embodiment, the assistant 1002 proactively provides services associated with the proposed event to capture the user's attention. For example, if a flight status alert indicates that a flight may be missed, the assistant 1002 suggests task flows to the user to replan an itinerary or book a hotel.

[0216] Example of an Input Derivation Component The following examples are intended to help illustrate some of the various functions, operations, behaviors and / or other features provided by the active input derivation component 1094. Example: Command completion (What can the user say to assistant 1002?)

[0217] The user is presented with a text entry box containing general instructions to enter "what do you want to do?" Depending on the context and the user input, one of several system responses is provided. Examples are shown below.

[0218] Example: Null input TIFF2024122975000002.tif117157

[0219] Example: Entering the first word TIFF2024122975000003.tif68157

[0220] Example: Entering keywords TIFF2024122975000004.tif76157

[0221] Example: Prompting for arguments TIFF2024122975000005.tif68157

[0222] Example: Proposal of a standard TIFF2024122975000006.tif84157

[0223] Example: Adding a criterion TIFF2024122975000007.tif108157

[0224] Example: Adding location or other constraints TIFF2024122975000008.tif108157

[0225] Example: Starting from a constraint, unknown task or domain TIFF2024122975000009.tif99157

[0226] Example: Name completion Here, the user types some text without accepting any command, or expands a command with an entity name. The system tries to complete the name depending on the context. Additionally, the system disambiguates domains. Example: Words without context TIFF2024122975000010.tif92156

[0227] Example: Names with context TIFF2024122975000011.tif124156

[0228] Example: Selecting values ​​from a set Here, the user is responding to a system request to enter a value for a particular parameter, such as location, time, cuisine, or genre. The user selects a value from a list or types a value. As the user types, matching items from the list are presented as options. An example is shown below: Example: Selecting a value class TIFF2024122975000012.tif91157

[0229] Example: Reusing a previous command Previous queries are optionally completed in the auto-completion interface: they are either matched string-wise (if the input field is empty and there are no known constraints) or suggested as relevant in certain circumstances. Example: Completion in the previous query TIFF2024122975000013.tif83157

[0230] Example: Searching for items in personal memory The assistant 1002 stores certain events and / or entities in a personal memory associated with the user. Auto-completion is based on such stored items. An example is shown below. Case: Completion of personal memory for events and entities TIFF2024122975000014.tif116157

[0231] Multimodal active input derivation In at least one embodiment, the active input derivation component 1094 processes input from multiple input modalities. At least one modality is realized by an active input derivation procedure that utilizes a particular type of input and a method for selecting from suggested options. As described herein, there are embodiments of active input derivation procedures for text input, voice input, GUI input, input in the context of a dialog, and / or input resulting from an event trigger.

[0232] In at least one embodiment, there is support for one or more of typed input, voice input, GUI input, dialog input, and / or event input (or any combination thereof) for a single instance of the intelligent automated assistant 1002.

[0233] 26, a flow chart illustrating a method for multimodal active input derivation according to one embodiment is shown. The method begins (100). Input is received from one or more or any combination of input modalities simultaneously, in any order. Thus, the method includes actively derivation of typed input 2610, speech input 2620, GUI input 2640, input in the context of a dialog 2650, and / or input resulting from an event trigger 2660. Any or all of these input sources are unified and returned in a unified input format 2690. The unified input format 2690 allows other components of the intelligent automated assistant 1002 to be designed and operate regardless of the particular modality of the input.

[0234] By providing active guidance for multiple modalities and levels, constraints and guidance are possible on the input beyond those available to the modalities alone. For example, the types of suggestions provided for choosing between speech, text, and dialogue steps are unrelated, so their combination represents a significant improvement over adding active derivation techniques to each individual modality or level.

[0235] Combining multiple sources of constraints as described herein (syntax / language, glossaries, entity databases, domain models, task models and service models, etc.) and the multiple places where they are actively applied (speech, text, GUI, dialog and asynchronous events) provides a new level of functionality for human-machine interaction.

[0236] Domain Model Components 1056 Components of a domain model 1056 include representations of domain concepts, entities, relationships, properties, and instances. For example, a dining out domain model 1622 includes the concept of a restaurant, which is a business with a name, address, and phone number, and the concept of a dining event, which has a party size, date, and time associated with the restaurant.

[0237] In at least one embodiment, the domain model component 1056 of the assistant 1002 is operable to perform and / or implement various functions, operations, behaviors and / or other features, such as, for example, one or more (or a combination thereof) of the following: The domain model component 1056 is used by the automated assistant 1002 for several processes including input derivation 100 , natural language interpretation 200 , dispatching to services 400 and output generation 600 . · The domain model component 1056 provides a list of words that match domain concepts or entities, such as restaurant names, that are used in active derivation of input 100 and natural language processing 200. · The domain model component 1056 classifies candidate words in the process to determine, for example, that a word is a restaurant name. The domain model component 1056 shows relationships between partial information for interpreting natural language, e.g. cuisine is associated with a business entity (e.g. “local Mexican food” is interpreted as “find restaurants with style=Mexican” and this inference is possible because of the information in the domain model 1056). · The domain model component 1056 organizes information about services used in service orchestration 1082, for example a particular web service provides restaurant reviews. · The domain model component 1056 provides information for generating natural language paraphrases and other output formats, for example by providing a standard way of describing concepts, relationships, properties, and instances.

[0238] According to particular embodiments, multiple instances or threads of the domain model component 1056 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the domain model component 1056 are performed, implemented and / or initiated by one or more of the following types of systems, components, systems, devices, procedures, processes, etc. (or combinations thereof): The domain model components 1056 are implemented as data structures that represent concepts, relationships, properties, and instances. These data structures are stored in memory, files, or databases. · Access to the domain model components 1056 is achieved via a direct API, a network API and / or a database query interface. Creation and maintenance of domain model components 1056 is accomplished, for example, through direct editing of files, database transactions, and / or use of domain model editing tools. A domain model component 1056 is implemented as part of or in conjunction with the active ontology 1050 and couples the model with the instantiation of the model to the server and users.

[0239] According to various embodiments, one or more different threads or instances of the domain model component 1056 are initiated in response to detection of one or more conditions or events that satisfy various minimum threshold criteria that trigger initiation of at least one instance of the domain model component 1056. For example, initiation and / or realization of one or more different threads or instances of the domain model component 1056 may be triggered when domain model information is needed, including during input derivation, input interpretation, task and domain identification, natural language processing, service orchestration, and / or formatting of output to a user.

[0240] In at least one embodiment, a given instance of the domain model component 1056 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. For example, data from the domain model component 1056 is associated with other model modeling components, including the glossary 1058, language pattern recognizer 1060, dialog flow model 1087, task flow model 1086, service function model 1088, and domain entity database 1072. For example, a business in the domain entity database 1072 that is classified as a restaurant is recognized by a type identifier maintained in the dining out domain model component.

[0241] Example of a Domain Model Component 27, a collection of screenshots illustrating an example of various functions, actions, behaviors and / or other features provided by the domain model component 1056 according to one embodiment is shown.

[0242] In at least one embodiment, domain model component 1056 is a unified data representation that enables representation of the information shown on screens 103A and 103B about restaurants that combines data from several separate data sources and services, including, for example, name, address, business category, phone number, an identifier for saving to long-term personal memory, an identifier for sharing via email, reviews from multiple sources, map coordinates, and personal notes.

[0243] Language Interpreter Component 1070 In at least one embodiment, the language interpreter component 1070 of the assistant 1002 is operable to perform and / or implement various functions, operations, behaviors and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0244] · Parse the user input and identify a set of parse results. User input includes any information from the user's device context that contributes to understanding the user and the user's intent, including one or more (or a combination thereof) of the sequence of words, gestures or GUI element matches involved in deriving the input, the current context of the dialog, the current device application and its current data objects, and / or any other dynamic personal data obtained about the user such as location and time. For example, in one embodiment, the user input is in the form of a unified annotated input form 2690 resulting from active input derivation 1094. · The parse result is an association of the data in the user input with concepts, relationships, properties, instances and / or other nodes and / or data structures in a model, database and / or other representation of the user's intent and / or context. The parse result associations are complex mappings from sets and sequences of words, signals and other elements of the user input to one or more associated concepts, relationships, properties, instances, other nodes and / or data structures described herein.

[0245] Analyze the user input and identify a set of syntactic parse results that are parse results that associate the data in the user input with structures that represent the syntactic parts of speech, clauses and phrases, including multi-word names, sentence structures and / or other grammatical graph structures. Syntactic parse results are described in element 212 of the natural language processing procedure described in connection with FIG. 28.

[0246] Analyzing the user input and identifying a set of semantic parse results, which are parse results that associate the data in the user input with structures that represent concepts, relationships, properties, entities, quantities, propositions and / or other expressions of meaning and intent of the user. In one embodiment, these expressions of meaning and intent are represented by a set of models or databases and / or elements and / or instances and / or nodes of an ontology, as described in element 220 of the natural language processing procedure described in connection with FIG. 28.

[0247] · Remove ambiguity between different syntactic or semantic analysis results as described in element 230 of the natural language processing procedure described in connection with FIG. 28.

[0248] · Determining whether the partially typed input is syntactically and / or semantically meaningful in an auto-completion procedure such as that described in connection with FIG. 11.

[0249] Facilitates the generation of suggested completions 114 in an auto-completion procedure such as that described in connection with FIG.

[0250] Determine whether an interpretation of the speech input in a speech input procedure such as that described in connection with FIG. 22 is syntactically and / or semantically meaningful.

[0251] According to particular embodiments, multiple instances or threads of the language interpreter component 1070 may be implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or software.

[0252] According to various embodiments, one or more different threads or instances of the language interpreter component 1070 are initiated in response to detection of one or more conditions or events that satisfy one or more various minimum threshold criteria that trigger the initiation of at least one instance of the language interpreter component 1070. Various examples of conditions or events that trigger the initiation and / or realization of one or more different threads or instances of the language interpreter component 1070 include, but are not limited to, one or more of the following (or a combination thereof):

[0253] While deriving inputs including but not limited to: - Suggest possible completions as you type (114) (Figure 11). · Ranking the interpretations of speech (126) (Figure 22). When providing ambiguity as a suggested response 152 in a dialog (Figure 24).

[0254] When the results of deriving the input are available, including when the input is derived by any mode of the active multimodal input derivation 100.

[0255] In at least one embodiment, a given instance of the language interpreter component 1070 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of such database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by the language interpreter component include, but are not limited to, one or more of the following (or a combination thereof):

[0256] · Domain Model 1056 ·Glossary 1058 · Domain entity database 1072 Short-term memory 1052 Long-term personal memory 1054 · Task Flow Model 1086 Dialog Flow Model 1087 Service Function Model 1088

[0257] With further reference now to Figure 29, a screenshot illustrating natural language processing according to one embodiment is shown. A user has entered (by voice or text) language input 2902 consisting of the phrase "who is playing this weekend at the filmore". This phrase is echoed back to the user in screen 2901. The language interpreter component 1070 processes the input 2902 and generates a parsing result. The parsing result associates the input with a request to show local events scheduled for any day of the next weekend at any event location whose name matches "filmore". A restatement of the parsing result is shown in screen 2901 as 2903.

[0258] With further reference now to FIG. 28, a flow chart illustrating an example method for natural language processing according to one embodiment is shown.

[0259] The method begins (200). A linguistic input 202 is received, such as the string "who is playing this weekend at the filmore" in the example of FIG. 29. In one embodiment, the input is supplemented with current context information, such as the current user location and local time. In word / phrase matching 210, the language interpreter component 1070 finds associations between the user input and concepts. In this example, associations are found between the string "playing" and a concept in the list of event locations, between the string "this weekend" (along with the user's current local time) and an instance of an approximate time zone representing the next weekend, and between the string "filmore" and a location name. Word / phrase matching 210 uses data from, for example, a linguistic pattern recognizer 1060, a lexicon database 1058, an active ontology 1050, a short-term personal memory 1052, and a long-term personal memory 1054.

[0260] The language interpreter component 1070 generates syntactic candidate parses 212 that include the selected parse result and further include other parse results, such as results where "playing" is associated with other domains, such as games, or categories of events, such as sporting events.

[0261] The short-term memory 1052 and / or long-term memory 1054 are used by the language interpreter component 1070 in generating the syntactic candidate parses 212. Thus, previously applied inputs in the same session and / or known information about the user are used to improve performance, reduce ambiguity, and improve the conversational nature of the dialogue. Data from the active ontology 1050, domain model 1056, and task flow model 1086 are used to achieve evidence-based reasoning in determining valid syntactic candidate parses 212.

[0262] In semantic matching 220, the language interpreter component 1070 considers combinations of possible parse results according to their fit to a semantic model, such as a domain model and database. In this case, the parse involves an association of (1) "playing" (a word in the user input) which is "Local Event At Venue" (part of the domain model 1056 represented by a cluster of nodes in the active ontology 1050) with (2) "filmore" (another word in the input) which is a match to an entity name in the domain entity database 1072 for an element of the domain model and the location of the local event represented by a node (Venue Name) in the active ontology.

[0263] Semantic matching 220 uses data from, for example, the active ontology 1050, the short-term personal memory 1052, and the long-term personal memory 1054. For example, semantic matching 220 uses data from previous references to places or local events in a dialog (from the short-term personal memory 1052) or personal favorite places (from the long-term personal memory 1054).

[0264] A set of candidate semantic parses or potential semantic parses 222 is generated.

[0265] In the disambiguation step 230, the language interpreter component 1070 considers the evidence of semantic candidate parse results 222. In this example, the combination of parsing "playing" as a "Local Event At Venue" and matching the Venue Name "filmore" is a higher match to the domain model compared to another combination where, for example, "playing" is associated with the sports domain model and "filmore" has no association in the sports domain.

[0266] Disambiguation 230 uses data from, for example, the structure of the active ontology 1050. In at least one embodiment, the connections between nodes of the active ontology provide evidence-based support for disambiguating between semantic candidate parse results 222. For example, in one embodiment, if three nodes of the active ontology match semantically and are all connected in the active ontology, this indicates a stronger evidence for the semantic parse compared to if the matching nodes are not connected or are connected by a longer connection path in the active ontology 1050. For example, in one embodiment of semantic matching 220, the parse matching Local Event At Venue and Venue Name is given stronger evidence-based support because their combined representation of aspects of the user's intent are connected by relations and / or links in the active ontology 1050. In this instance, the Local Event node is connected to a Venue node, which is connected to a Venue Name node, which is connected to an entity name in a database of place names.

[0267] In at least one embodiment, connections between nodes of the active ontology that provide evidence-based support for disambiguating between semantic candidate parse results 222 are directed arcs and form an inference lattice, where matching nodes provide evidence for nodes that are connected by directed arcs.

[0268] At 232, the language interpreter component 1070 sorts and selects 232 the top semantic parse as a representation 290 of the user's intent.

[0269] Domain Entity Database 1072 In at least one embodiment, the domain entity database 1072 is operable to perform and / or implement various functions, operations, actions and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0270] Stores data about domain entities. Domain entities are things in the world or computing environment that are modeled in a domain model. Examples include, but are not limited to, one or more of the following (or a combination of them):

[0271] All types of business · Films, videos, songs and / or other musical products, and / or any other named entertainment products All kinds of products ·event · Calendar entries City, state, country, region, and / or other geographic, geopolitical and / or geospatial point or area Designated locations such as landmarks and airports Providing database services to those databases, including but not limited to simple queries, complex queries, transactions, and triggered events.

[0272] According to certain embodiments, multiple instances or threads of the domain entity database 1072 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the domain entity database 1072 are executed, implemented and / or initiated by database software and / or hardware resident on the client 1304 and / or the server 1340.

[0273] One example of a domain entity database 1072 used in connection with the present invention according to one embodiment is a database of one or more businesses that stores, for example, names and locations. The database is used, for example, to look up words included in an input request to match businesses and / or to look up the location of a business whose name is known. Those skilled in the art will appreciate that many other configurations and implementations are possible.

[0274] Glossary Component 1058 In at least one embodiment, the glossary component 1058 is operable to perform and / or implement various functions, operations, actions and / or other features, such as one or more (or a combination thereof) of the following:

[0275] · Providing a database that associates words and strings of characters with concepts, properties, relations or instances of a domain or task model.

[0276] The lexicon from the lexicon component is used by the automated assistant 1002 for several processes including, for example, input derivation, natural language interpretation, and output generation.

[0277] According to certain embodiments, multiple instances or threads of the glossary component 1058 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the glossary component 1058 are implemented as data structures that associate names and strings of concepts, relationships, properties and instances. These data structures are stored in memory, files or databases. Access to the glossary component 1058 is provided via direct APIs, network APIs and / or database query interfaces. Creation and maintenance of the glossary component 1058 is achieved through direct editing of files, database transactions or use of domain model editing tools. The glossary component 1058 is implemented as part of or in association with the active ontology 1050. Those skilled in the art will appreciate that many other configurations and implementations are possible.

[0278] According to various embodiments, one or more different threads or instances of the glossary component 1058 are initiated in response to detection of one or more conditions or events that satisfy one or more various minimum threshold criteria that trigger initiation of at least one instance of the glossary component 1058. In one embodiment, the glossary component 1058 is accessed whenever glossary information is required, including, for example, during input derivation, input interpretation, and formatting of output to a user. Those skilled in the art will appreciate that other conditions or events may trigger the initiation and / or realization of one or more different threads or instances of the glossary component 1058.

[0279] In at least one embodiment, a given instance of the glossary component 1058 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. In one embodiment, the glossary component 1058 accesses data from an external database, such as a data warehouse or dictionary.

[0280] Language Pattern Recognizer Component 1060 In at least one embodiment, the language pattern recognizer component 1060 is operable to perform and / or implement various functions, operations, behaviors, and / or other features, such as, for example, looking for patterns in the language or speech input that are indicative of grammatical compounds, idiomatic compounds, and / or other compounds of the input tokens, where the patterns correspond to one or more (or combinations thereof) of words, names, phrases, data, parameters, commands, and / or signals of speech acts, for example.

[0281] According to certain embodiments, multiple instances or threads of the pattern recognizer component 1060 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the language pattern recognizer component 1060 are implemented, implemented and / or initiated by one or more files, databases and / or programs that contain expressions in a pattern matching language. In at least one embodiment, the language pattern recognizer component 1060 is represented declaratively rather than by program code, such that the component is created and maintained by editors and other tools other than programming tools. Examples of declarative expressions include, but are not limited to, one or more of (or a combination of) regular expressions, pattern matching rules, natural language grammars, state machine-based parsers and / or other parsing models.

[0282] Those skilled in the art will appreciate that other types of systems, components, systems, devices, procedures, processes, etc. (or combinations thereof) may be used to implement the language pattern recognizer component 1060.

[0283] According to various embodiments, one or more different threads or instances of the language pattern recognizer component 1060 are initiated in response to detection of one or more conditions or events that satisfy one or more various minimum threshold criteria that trigger the initiation of at least one instance of the language pattern recognizer component 1060. Various examples of conditions or events that trigger the initiation and / or realization of one or more different threads or instances of the language pattern recognizer component 1060 include, but are not limited to, one or more of the following (or a combination thereof): During active derivation of input, the structure of the linguistic pattern recognizer constrains and guides the input from the user. · During natural language processing, where linguistic pattern recognizers help interpret the input as language. During task and dialogue identification, language pattern recognizers help identify tasks, dialogues and / or steps.

[0284] In at least one embodiment, a given instance of the language pattern recognizer component 1060 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by the language pattern recognizer component 1060 include, but are not limited to, data from any of the various models and data sources that are part of an embodiment of the Assistant 1002. This includes, but is not limited to, one or more (or a combination thereof) of the following:

[0285] · Domain Model 1056 ·Glossary 1058 · Domain entity database 1072 Short-term memory 1052 Long-term personal memory 1054 · Task Flow Model 1086 Dialog Flow Model 1087 Service Function Model 1088

[0286] In one embodiment, access of data from other parts of an embodiment of the assistant 1002 is coordinated by the active ontology 1050.

[0287] Referring to Figure 14, an example of some of the various functions, actions, behaviors and / or other features provided by the language pattern recognizer component 1060 is shown. Figure 14 illustrates language patterns that the language pattern recognizer component 1060 recognizes. For example, the phrase "what is happening" (in a city) is associated with the task of event planning and the domain of local events.

[0288] Dialog Flow Processor Component 1080 In at least one embodiment, the dialog flow processor component 1080 is operable to perform and / or implement various functions, operations, behaviors and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0289] Given a representation 290 of the user's intent from language interpretation 200, identify the task the user wants to perform and / or the problem the user wants to solve. For example, the task is to find a restaurant.

[0290] Given a given problem or task, given an expression of the user's intent 290, identify parameters for the task or problem. For example, a user is looking for recommended restaurants that serve Italian food near the user's home. The constraints that the restaurant be recommended, serve Italian food, and be near the home are parameters for the task of finding a restaurant.

[0291] Given an interpretation of the task as represented in the personal short-term memory 1052 and the current dialog with the user, select an appropriate dialog flow model and determine which step of the flow model corresponds to the current state.

[0292] According to certain embodiments, multiple instances or threads of the dialog flow processor component 1080 may be implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software.

[0293] In at least one embodiment, a given instance of the dialog flow processor component 1080 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by the dialog flow processor component 1080 include, but are not limited to, one or more of the following (or a combination thereof): · Task Flow Model 1086 · Domain Model 1056 Dialog Flow Model 1087

[0294] 30 and 31, screenshots illustrating examples of various functions, actions, behaviors and / or other features provided by a dialog flow processor component according to one embodiment are shown.

[0295] As shown in screen 3001, a user requests a dinner reservation by providing voice or text input "book me a table for dinner." Assistant 1002 generates a prompt 3003 that requests the user to specify a time and party size.

[0296] Once these parameters are provided, screen 3101 is shown. Assistant 1002 outputs a dialog box 3102 indicating that the results are presented, and a prompt 3103 asking the user to click on a time. A list 3104 is also displayed.

[0297] In one embodiment, such a dialog is implemented as follows: The dialog flow processor component 1080 is given the representation of the user's intent from the language interpreter component 1070 and determines that the appropriate response is to prompt the user for information needed to execute the next step in the task flow. In this case, the domain is a restaurant, the task is making a reservation, and the dialog step is to prompt the user for information needed to accomplish the next step in the task flow. This dialog step is illustrated by prompt 3003 in screen 3001.

[0298] Referring to Figure 32, a flow chart illustrating a method of operation of the dialog flow processor component 1080 according to one embodiment is shown. The flow chart of Figure 32 will be described in conjunction with the examples shown in Figures 30 and 31.

[0299] The method begins (200). A representation of user intent 290 is received. As described in connection with Figure 28, in one embodiment, the representation of user intent 290 is a set of semantic parses. For the example shown in Figures 30 and 31, the domain is restaurant, the verb is "book" associated with making a restaurant reservation, and the time parameter is the evening of the current date.

[0300] In 310, the dialog flow processor component 1080 determines whether this interpretation of the user's intent is strongly supported enough to proceed and / or is better supported than another ambiguous parse. In this example, the interpretation is strongly supported and there are no competing ambiguous parses. On the other hand, if there are competing ambiguous parses or a very uncertain parse, step 322 is performed to set up a dialog flow step such that the execution phase causes the dialog to output a prompt for more information from the user.

[0301] At 312, the dialog flow processor component 1080 determines a suitable interpretation of the semantic parsing with other information to determine a task to perform and its parameters. The information may be obtained, for example, from the domain model 1056, the task flow model 1086, and / or the dialog flow model 1087, or any combination thereof. In this example, the task is identified as making a reservation, which includes finding a location that is available and has openings, and performing a transaction to reserve a table. The task parameters are time constraints in addition to other parameters inferred in step 312.

[0302] At 320, the task flow model is examined to determine the appropriate next step. Information may be obtained, for example, from the domain model 1056, the task flow model 1086, and / or the dialog flow model 1087, or any combination thereof. In this example, it is determined that the next step in the task flow is to derive the missing parameters for the restaurant availability search, resulting in a prompt 3003, as shown in FIG. 30, requesting party size and reservation time.

[0303] As mentioned above, Figure 31 shows a screen 3101 including a dialog element 3102 that is presented after the user answers the party size and reservation time requests. In one embodiment, the screen 3101 is presented as a result of another single execution via an automatic call and response procedure as described in connection with Figure 33, causing another call to the dialog and flow procedure shown in Figure 32. At the start of this dialog and flow procedure, after receiving the user's preferences, the dialog flow processor component 1080 determines the different task flow steps in step 320 to perform an availability search. Once the request 390 is constructed, it contains sufficient task parameters for the dialog flow processor component 1080 and the service orchestration component 1082 to dispatch to the restaurant reservation service.

[0304] Dialogue Flow Model Components 1087 In at least one embodiment, the dialog flow model component 1087 is operable to provide a dialog flow model, which represents the steps that take place in a particular type of conversation between a user and the intelligent automated assistant 1002. For example, a dialog flow for a generic task of performing a transaction may include steps to obtain data required for the transaction and to validate transaction parameters before committing it.

[0305] Task Flow Model Components 1086 In at least one embodiment, the task flow model component 1086 is operable to provide a task flow model, which represents the steps taken to solve a problem or address a need. For example, a task flow for making a dinner reservation may include finding a desired restaurant, checking availability, and making a transaction to make a reservation at that restaurant at a particular time.

[0306] According to certain embodiments, multiple instances or threads of the task flow model component 1086 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the task flow model component 1086 are implemented as a program, state machine, or other method that identifies appropriate steps in a flow graph.

[0307] In at least one embodiment, the task flow model component 1086 uses a task modeling framework called generic tasks. A generic task is an abstraction that is not domain specific and models the steps of a task and their required inputs and generated outputs. For example, a generic task for a transaction may include steps to gather data required for the transaction, execute the transaction, and output the results of the transaction, all without reference to any particular transaction domain or service to achieve it. A generic task is instantiated for a domain such as shopping, but is independent of the shopping domain and applies equally well to domains such as reservations and scheduling.

[0308] At least a portion of the functions, operations, behaviors, and / or other features associated with the task flow model components 1086 and / or procedures described herein are realized at least in part using the concepts, features, components, processes, and / or other aspects described herein in connection with the generic task modeling framework.

[0309] Furthermore, at least a portion of the functions, operations, behaviors and / or other features associated with the task flow model components 1086 and / or procedures described herein are implemented at least in part using concepts, features, components, processes and / or other aspects related to conditional selection tasks as described herein. For example, one embodiment of a generic task is implemented using a conditional selection task model.

[0310] In at least one embodiment, a given instance of the task flow model component 1086 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by the task flow model component 1086 include, but are not limited to, one or more of the following (or a combination thereof):

[0311] · Domain Model 1056 ·Glossary 1058 · Domain entity database 1072 Short-term memory 1052 Long-term personal memory 1054 Dialog Flow Model 1087 Service Function Model 1088

[0312] Referring to FIG. 34, a flowchart illustrating an example of the task flow of the Conditional Selection task 351 is shown according to one embodiment.

[0313] Conditional selection is a kind of generic task where the goal is to select an item from a set of items in the world based on a set of constraints. For example, a conditional selection task 351 is instantiated for the restaurant domain. The conditional selection task 351 starts by soliciting criteria and constraints from a user 352. For example, the user is interested in Asian cuisine and wants to find places to eat near his office.

[0314] In step 353, the assistant 1002 presents items that meet the specified criteria and constraints for the user to view. In this example, this may be a list of restaurants and their characteristics from which to choose.

[0315] The user is given the opportunity to refine the criteria and constraints in step 354. For example, the user refines the request by saying "near my office." The system presents a new set of results in step 353.

[0316] Referring to FIG. 35, an example of a screen 3501 containing a list 3502 of items presented by a conditional selection task 351 is shown according to one embodiment.

[0317] In step 355, the user selects from the matching items. Any of a number of subsequent tasks 359 are made available, such as booking 356, storing 357, or sharing 358. In various embodiments, the subsequent tasks 359 include interacting with web-enabled services and / or functionality local to the device, such as setting up a calendar appointment, making a call, sending an email or text message, and setting an alarm.

[0318] In the example of Figure 35, a user selects an item in list 3502 to see more details and perform additional actions. Referring to Figure 36, an example of a screen 3601 is shown after a user selects an item from list 3502. Additional information and options corresponding to subsequent tasks 359 related to the selected item are displayed.

[0319] In various embodiments, the flow steps are presented to the user in any of a number of input modalities, including but not limited to any combination of explicit dialog prompts and GUI links.

[0320] Service Component 1084 The services component 1084 represents a collection of services that the intelligent automated assistant 1002 invokes on behalf of the user. Any services that are invoked are provided in the services component 1084.

[0321] In at least one embodiment, the service component 1084 is operable to perform and / or implement various functions, operations, actions and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0322] Typically provides functionality through an API provided by a web-based user interface to the service. For example, a review website may provide a service API that, when called programmatically, automatically returns reviews of a given entity. The API provides services to the intelligent automated assistant 1002 that are obtained by the user interacting with the website's user interface.

[0323] Typically, the functionality is provided through an API provided by the user interface to the application. For example, a calendar application may provide a service API that automatically returns calendar entries when called programmatically. The API provides services to the intelligent automated assistant 1002 that are obtained by the user by operating the application's user interface. In one embodiment, the assistant 1002 can initiate and control any of the many different functions available to the device. For example, if the assistant 1002 is installed on a smartphone, personal digital assistant, tablet computer, or other device, the assistant 1002 can perform functions such as starting applications, making calls, sending emails and / or text messages, adding calendar events, and setting alarms. In one embodiment, such functionality is enabled using the services component 1084.

[0324] Providing services that are not currently implemented in the user interface, but are available to the assistant through an API for larger tasks. For example, in one embodiment, an API that takes an address and returns machine-readable geographic coordinates can be used by the assistant 1002 as a service component 1084 even if it does not have a direct user interface on the web or device.

[0325] According to certain embodiments, multiple instances or threads of the service component 1084 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the service component 1084 are performed, implemented and / or initiated by one or more of the following types of systems, components, systems, devices, procedures, processes, etc. (or combinations thereof):

[0326] · Implementation of the APIs exposed by the Services locally, remotely or in any combination. · Including a database within the automated assistant 1002 or a database service available to the assistant 1002.

[0327] For example, a website that provides a user with an interface to browse movies is used by one embodiment of the intelligent automated assistant 1002 as a copy of the database used by the website. The services component 1084 provides an internal API to the data as if it were provided via a network API even if the data is kept locally.

[0328] As another example, the services component 1084 of the intelligent automated assistant 1002 that facilitates restaurant selection and meal planning may include any or all of the following collection of services available from third parties over a network: A collection of restaurant listing services that list restaurants matching a name, location, or other constraints. A collection of restaurant rating services that return rankings for nominated restaurants. A collection of restaurant review services that return written reviews for nominated restaurants. · Geocoding service to identify restaurant locations on a map. · Reservation services that allow you to reserve a table in a restaurant on a programmatic basis.

[0329] Service Orchestration Components 1082 The service orchestration component 1082 of the intelligent automated assistant 1002 executes the service orchestration procedures.

[0330] In at least one embodiment, the service orchestration component 1082 is operable to perform and / or implement various functions, operations, actions and / or other features, such as one or more (or a combination thereof) of the following: Dynamically and automatically determine services that satisfy user requests and / or specified domains and tasks. Dynamically and automatically invoke multiple services in any combination, in parallel and sequenced order. Dynamically and automatically transform task parameters and constraints to meet the input requirements of the service API. Dynamically and automatically monitor and collect results from multiple services. Dynamically and automatically merge service result data from different services into a unified result model. · Orchestrate multiple services to meet the constraints of your requirements. · Orchestrate multiple services to annotate existing result sets with auxiliary information.

[0331] Unify results from different services. Output the results of invoking multiple services in a unified, service-agnostic representation (e.g., as a result of invoking several restaurant services that return a list of restaurants, merging data about at least one restaurant from several services and removing redundancy).

[0332] For example, in a given situation, there are several ways to accomplish a particular task. A user input such as "remind me to leave for my meeting across town at 2pm" specifies an action to be accomplished in at least three ways: setting an alarm clock, creating a calendar event, or invoking a to-do manager. In one embodiment, the service orchestration component 1082 makes a decision as to how to best fulfill the request.

[0333] The service orchestration component 1082 also makes a decision as to the best combination of services to invoke to perform a given overall task. For example, to find and reserve a table for dinner, the service orchestration component 1082 makes a decision as to which services to invoke to perform the functions of looking up reviews, getting availability, and making the reservation. The decision as to which service to use depends on any of a number of different factors. For example, in at least one embodiment, information regarding the reliability, ability of the service to handle a particular type of request, user feedback, etc., are used as factors in determining the appropriate service to invoke.

[0334] According to particular embodiments, multiple instances or threads of the service orchestration component 1082 may be implemented and / or initiated simultaneously using one or more processors and / or other combinations of hardware and / or hardware and software.

[0335] In at least one embodiment, a given instance of the service orchestration component 1082 uses an explicit service capability model 1088 to represent the capabilities and other characteristics of external services and to reason about those capabilities and characteristics while achieving the features of the service orchestration component 1082. This provides advantages over manually programming a collection of services, including, for example, one or more (or a combination) of the following:

[0336] Ease of development Runtime robustness and reliability Ability to dynamically add and remove services without disturbing the code The ability to implement generic distributed query optimization algorithms that are driven by features and capabilities, rather than hard-coding them to specific services or APIs.

[0337] In at least one embodiment, a given instance of the service orchestration component 1082 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Examples of various data accessed by the service orchestration component 1082 include, but are not limited to, one or more of the following (or a combination thereof):

[0338] Instantiating the domain model Syntactic and semantic parsing of natural language input Instantiating a task model (with values ​​for parameters) Dialogue and task flow models and / or selected steps within those models Service Function Model 1088 Any other information available in the Active Ontology 1050

[0339] Referring to FIG. 37, an example of a procedure for performing a service orchestration procedure is shown according to one embodiment.

[0340] In this particular example, assume that a single user is interested in finding a suitable place for dinner at a restaurant and is using the intelligent automated assistant 1002 in a conversation to help provide this service.

[0341] Consider the task of finding a restaurant that is upscale, has a good reputation, is close to a particular location, accepts reservations at a particular time, and serves a particular type of food. These domain and task parameters are provided as input 390.

[0342] The method begins (400). At 402, it is determined whether a given request requires any services. In some situations, for example, if the assistant 1002 can perform the desired task itself, no service delegation is required. For example, in one embodiment, the assistant 1002 can respond to the actual question without invoking service delegation. Thus, if the request does not require a service, a standalone flow step is performed at 403, resulting in a return of 490. For example, if the task request is to request information about the automated assistant 1002 itself, the dialog response is handled without invoking any external services.

[0343] If in step 402 it is determined that service delegation is required, the service orchestration component 1082 proceeds to step 404. In 404, the service orchestration component 1082 matches the task requirements with a declarative description of the service's capabilities and characteristics in the service capability model 1088. At least one service provider that supports the instantiated operations provides declarative and qualitative metadata details, such as one or more (or a combination) of the following:

[0344] Data field for which results are returned The class of parameters that the service provider is statically known to support · Parameter policy functions that the service provider can support after dynamic checking of parameter values Performance evaluation that specifies how the service will be performed (e.g., relational DB, web service, triple store, full-text index, or some combination thereof) A characteristic quality assessment that statically prescribes the expected quality of the characteristic values ​​returned with the result object. An assessment of the overall quality of results that the service is expected to return

[0345] For example, inferring the classes of parameters that services support, the service model might specify that services 1, 2, 3, and 4 provide restaurants near a particular location (parameter), services 2 and 3 filter or rank restaurants by quality (another parameter), services 3, 4, and 5 return reviews for restaurants (returned data field), service 6 lists the types of food served by a restaurant (returned data field), service 7 checks restaurant availability for a particular time period (parameter). Services 8-99 provide functionality that is not required for this particular domain and task.

[0346] Using this declarative and qualitative metadata, the task, the task parameters, and other information available from the assistant's execution environment, the service orchestration component 1082 determines 404 an optimal set of service providers to invoke that support one or more task parameters (returning results that satisfy the one or more parameters) and that take into account an evaluation of the performance of at least one service provider and an evaluation of the overall quality of at least one service provider.

[0347] The result of step 404 is a dynamically generated list of services to invoke for this particular user and request.

[0348] In at least one embodiment, the service orchestration component 1082 takes into account the reliability of a service and its ability to respond to a particular information request.

[0349] In at least one embodiment, the service orchestration component 1082 avoids unreliability by invoking overlapping or redundant services.

[0350] In at least one embodiment, the service orchestration component 1082 considers personal information about the user (the short-term personal memory component) to select a service, for example, a user prefers some rating services over others.

[0351] In step 450, the service orchestration component 1082 dynamically and automatically invokes multiple services on behalf of the user. In at least one embodiment, the services are dynamically invoked in response to a user request. In certain embodiments, multiple instances or threads of the services are invoked simultaneously. In at least one embodiment, they are invoked over a network using an API, over a network using a web services API, over the Internet using a web services API, or any combination thereof.

[0352] In at least one embodiment, the frequency at which a service is invoked is programmatically limited and / or controlled.

[0353] Referring to Figure 38, an example of a service invocation procedure 450 according to one embodiment is shown. A service invocation is used, for example, to obtain additional information or to perform a task using an external service. In one embodiment, the request parameters are translated as appropriate to the service's API. Once results are received from the service, they are translated into a result representation for presentation to the user within the assistant 1002.

[0354] In at least one embodiment, the service invoked by the service invocation procedure 450 may be a web service, an application running on the device, or an operating system function.

[0355] A representation of the request 390 is provided including, for example, task parameters etc. For at least one service available from the service function model 1088, the service invocation procedure 450 performs a conversion step 452, an invocation step 454 and an output mapping step 456.

[0356] In a conversion step 452, the current task parameters in the request representation 390 are converted to a format used by the at least one service. Parameters for services provided as APIs or databases differ from the data representation used in the task request, and at least from each other. Thus, the purpose of step 452 is to map the at least one task parameter to one or more corresponding formats and values ​​in the at least one service being invoked.

[0357] For example, business names, such as restaurants, will vary among the services that service such businesses, and therefore step 452 involves converting every name into a form that is optimal for at least one service.

[0358] As another example, location is known to different precision using different units and conventions between services: Service 1 needs a zip code, Service 2 needs a GPS coordinate, Service 3 needs a postal address, etc.

[0359] Services are invoked 454 via an API and the data is collected. In at least one embodiment, the results are cached. In at least one embodiment, services that do not return within a specified level of performance (e.g., as specified in a service level agreement, or SLA) are dropped.

[0360] In an output mapping step 456, the data returned by the service is mapped back into a unified result representation 490. This step includes handling various formats, units, etc.

[0361] In step 412, results from multiple services are examined and merged. In one embodiment, when the examined results are collected, a domain-defined equivalence policy function is invoked pairwise across one or more results to determine which results represent the same concept in the real world. When an equivalent pair of results is found, a set of domain-defined property policy functions is used to merge property values ​​into the merged result. The property policy functions use service capability models, task parameters, domain context and / or evaluations of property quality from long-term personal memory 1054 to determine the optimal merging strategy.

[0362] For example, restaurant listings from different providers of restaurants are merged and duplicates are removed. In at least one embodiment, criteria for identifying duplicates include fuzzy name matching, fuzzy location matching, fuzzy matching on multiple characteristics of domain entities such as name, location, phone number and / or website address, and / or combinations thereof.

[0363] In step 414, the results are sorted and pruned to return a result list of the desired length.

[0364] In at least one embodiment, a request relaxation loop is further applied. If the service orchestration component 1082 determines in step 416 that the current result list is not sufficient (e.g., the current result list has fewer than the desired number of matching items), the task parameters are relaxed (420) to allow for more results. For example, if too few restaurants of the desired type can be found within N miles of the target location, the request may be relaxed to look at an area larger than N miles and / or other parameters of the search may be relaxed.

[0365] In at least one embodiment, a service orchestration method is applied on a second pass to annotate the results with auxiliary data useful to the task.

[0366] In step 418, the service orchestration component 1082 determines if annotation is required. For example, annotation is required if the task requires plotting the results on a map, but the primary service did not return the geographic coordinates required for mapping.

[0367] At 422, the service capability model 1088 is reviewed to find services that return the desired additional information. In one embodiment, the annotation process determines whether to annotate the merged result with additional or more appropriate data. The annotation process makes that determination by delegating to a domain-defined property policy function for at least one property of at least one merged result. The property policy function uses the merged property values ​​and property quality evaluations, property quality evaluations of one or more other service providers, domain context and / or user profile to determine whether more appropriate data is obtained. If it is determined that one or more service providers annotate one or more properties to the merged result, a cost function is invoked to determine a set of optimal service providers for annotation.

[0368] At least one service provider in the collection of optimal annotation service providers is called (450) with the list of merged results to obtain results 424. Changes made to at least one merged result by at least one service provider are tracked during this process, and the changes are merged using the same property policy function process used in step 412. The results are merged (426) into the existing collection of results.

[0369] The resulting data is sorted 428 and unified into a unified representation 490 .

[0370] It will be appreciated that one advantage of the methods and systems described above with respect to the service orchestration component 1082 is that they may be advantageously applied and / or utilized in a variety of technology areas other than those specifically related to intelligent automated assistants. Examples of other technology areas for aspects and / or features of the service orchestration procedure include, for example, one or more of the following:

[0371] Dynamic "mashups" of websites and web-based applications and services Distributed Database Query Optimization Dynamic service-oriented architecture configuration

[0372] Service Function Model Components 1088 In at least one embodiment, the service capability model component 1088 is operable to perform and / or implement various functions, operations, behaviors and / or other features, such as, for example, one or more (or a combination thereof) of the following: · Providing machine-readable information about the capabilities of the Services to perform certain classes of computations. · Providing machine-readable information about the functionality of the Service to answer certain classes of queries. · Provides machine-readable information about the classes of transactions offered by various services. · Provides machine-readable information about the parameters to the APIs exposed by the various services. · Providing machine-readable information about parameters used in database queries to databases provided by various services.

[0373] Output Processor Component 1090 In at least one embodiment, the output processor component 1090 is operable to perform and / or implement various functions, operations, actions and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0374] Formatting the output data, represented in a unified internal data structure, into a form and layout that renders it appropriately in different modalities. The output data may include, for example, natural language communication between an intelligent automated assistant and a user, data about domain entities such as restaurants, movies and product characteristics, domain-specific data results from information services such as weather forecasts, flight status checks and prices, and / or interactive links and buttons that allow the user to respond by interacting directly with the output representation.

[0375] Rendering output data to modalities including, for example, any combination of graphical user interfaces, text messages, email messages, sounds, animations and / or audio output.

[0376] Dynamically render data to various graphical user interface display engines based on demand, e.g., using various output processing layouts and formats depending on the web browser and / or device being used.

[0377] Dynamically render output data with a variety of speech sounds.

[0378] Dynamically render to a specified modality based on user preferences.

[0379] Dynamically render output with user-specific "skins" that customize the look and feel.

[0380] Sending a stream of output packages to the modalities, showing intermediate states, feedback or results throughout the stages of interaction with the Assistant 1002.

[0381] According to certain embodiments, multiple instances or threads of the output processor component 1090 may be implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the output processor component 1090 may be performed, implemented and / or initiated by one or more of the following types (or combinations thereof): systems, components, systems, devices, procedures, processes, etc. A software module within the client or server of an embodiment of an intelligent automated assistant. · Remotely invokable services. · Use a combination of procedure codes and templates.

[0382] 39, a flow chart illustrating an example of a multi-phase output procedure according to one embodiment is shown. The multi-phase output procedure includes a processing step 702 of the automated assistant 1002 and a multi-phase output step 704.

[0383] At step 710, a speech input utterance is obtained and a speech-to-text component (such as the component described in connection with FIG. 22) interprets the speech to generate a set of candidate speech interpretations 712. In one embodiment, the speech-to-text component is implemented using, for example, a Nuance Recognizer available from Nuance Communications, Inc. of Burlington, Mass. The candidate speech interpretations 712 are presented to the user at 730, for example, in a paraphrased form. For example, an interface may show an alternative interpretation "did you say?" that lists several possible alternative text interpretations of the same speech sample.

[0384] In at least one embodiment, a user interface is provided to allow a user to interrupt and select from among the candidate speech interpretations.

[0385] In step 714, the candidate speech interpretations 712 are sent to a language interpreter 1070, which generates a representation of user intent 716 for at least one of the candidate speech interpretations 712. In step 732, a paraphrase of the representation of user intent 716 is generated and presented to the user. (See associated step 132 of procedure 120 of FIG. 22.) In at least one embodiment, the user interface allows the user to interrupt and select from natural language interpretation restatements 732 .

[0386] Task and dialogue analysis is performed in step 718. In step 734, the task and domain interpretation is presented to the user using an intent paraphrase algorithm.

[0387] Referring to FIG. 40, a screenshot is shown illustrating an example of output processing according to one embodiment. Screen 4001 includes an echo 4002 of the user's speech input generated by step 730. Screen 4001 further includes a restatement 4003 of the user's intent generated by step 734. In one embodiment, as shown in the example of FIG. 40, special formatting / highlighting is used for keywords such as "events" to facilitate training the user to interact with the intelligent automated assistant 1002. For example, by visually observing the formatting of the displayed text, the user easily identifies and interprets keywords such as "events," "next Wednesday," and "San Francisco" that the intelligent automated assistant recognizes.

[0388] 39, the request is dispatched to the service (720) and the results are dynamically collected and the intermediate results are displayed in the form of a real-time progress report (736). For example, a list of restaurants is returned and their reviews are dynamically loaded as the results arrive from the review service. The services include services that access information stored locally on the device and / or information from any other source and / or web-enabled services.

[0389] A unified representation of the response 722 is generated and formatted for the appropriate output modality 724. After the final output format is completed, different types of paraphrases are provided at 738. At this stage, the entire set of results is analyzed and compared to the initial request. A summary of the results or an answer to the question is provided.

[0390] 41, another example of an output process according to one embodiment is shown. Screen 4101 shows a paraphrase of the text interpretation 4102 generated by step 732, a real-time progress report 4103 generated by step 736, and a paraphrased summary 4104 generated by step 738. Also included are detailed results 4105.

[0391] In one embodiment, the Assistant 1002 can generate output in multiple modes. Referring to Figure 42, a flow diagram illustrating an example of a multi-modal output process according to one embodiment is shown.

[0392] The method begins 600. The output processor 1090 takes the unified representation of the response 490 and formats the response according to the appropriate and applicable modalities and devices 612. Step 612 includes information from the device and modality model 610 and / or the domain data model 614.

[0393] Once the response 490 is formatted 612, any of a number of different output mechanisms may be used in any combination. Examples shown in FIG. 42 include: · Generate a text message output (620) that is sent to the text message channel (630). Generate email output (622), which is sent out as an email message (632). Generate GUI output (624), which is sent to a device or web browser for rendering (634). Generate audio output (626), which is sent to the audio generation module (636).

[0394] Those skilled in the art will appreciate that many other output mechanisms are possible.

[0395] In one embodiment, the content of the output message generated by the multiphase output procedure 700 is adapted to the mode of the multimodal output process 600. For example, if the output modality is speech (626), the language used to paraphrase the user input 730, text interpretation 732, task and domain interpretation 734, progress status 736, and / or result summary 738 may be somewhat verbose or may use sentences that are easier to understand in an audible form than in a written text form. In one embodiment, the language is adapted at a step in the multiphase output procedure 700. In another embodiment, the multiphase output procedure 700 generates intermediate results that are further refined by the multimodal output process 600 to a specific language.

[0396] Short-term personal memory components 1052 In at least one embodiment, the short-term personal memory component 1052 is operable to perform and / or implement various functions, operations, actions and / or other features, such as, for example, one or more (or a combination thereof) of the following: Maintain a history of recent dialogues between the user and an embodiment of the assistant, including a history of user inputs and their interpretation. · Maintaining a history of recent selections made by the user in the GUI, such as items opened or searched for, phone numbers called, items mapped, and movie trailers played. · Storing dialogs and user interaction history in RAM for use by the server or client in a database on the client, per-user sessions or client session state such as web browser cookies. · Stores a list of recent user requests. Stores a sequence of results from recent user requests. Stores a clickstream history of UI events including button presses, taps, gestures, voice-activated triggers and / or any other user input. Stores device sensor data (such as location, time, position, orientation, movement, light levels, and sound levels) that correlates with interactions with the Assistant.

[0397] According to certain embodiments, multiple instances or threads of the short-term personal memory component 1052 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or software.

[0398] According to various embodiments, one or more different threads or instances of the short-term personal memory component 1052 are initiated in response to detection of one or more conditions or events that satisfy one or more various minimum threshold criteria that trigger initiation of at least one instance of the short-term personal memory component 1052. For example, the short-term personal memory component 1052 is invoked when the assistant 1002 has a user session with an embodiment upon at least one form of input or action by a user or response by the system.

[0399] In at least one embodiment, a given instance of the short-term personal memory component 1052 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. For example, the short-term personal memory component 1052 accesses data from the long-term personal memory component 1054 (e.g., to obtain a user's identity and personal preferences) and / or accesses data from a local device regarding the time and location included in the short-term memory entry.

[0400] 43A and 43B, screenshots are shown illustrating an example of using the short-term personal memory component 1052 to maintain dialog context while changing locations according to one embodiment. In this example, the user is asking about the local weather and simply says "in new york." Screen 4301 shows an initial response including the local weather. When the user says "in new york," the assistant 1002 uses the short-term personal memory component 1052 to access the dialog context and determine that the current domain is weather forecast. This causes the assistant 1002 to interpret the new utterance "in new york" to mean "what is the weather forecast in New York this coming Tuesday?" Screen 4302 shows the appropriate response including the weather forecast for New York.

[0401] In the example of Figures 43A and 43B, the short-term memory has stored not only the words of the input "is it going to rain the day after tomorrow?" but also the system's semantic interpretation of the input as the weather domain and a time parameter set to the day after tomorrow.

[0402] Long-term personal memory components 1054 In at least one embodiment, the long-term personal memory component 1054 is operable to perform and / or implement various functions, operations, actions and / or other features, such as, for example, one or more (or a combination thereof) of the following: Persistently store personal information and data about you, including user preferences, identity verification, authentication credentials, accounts and addresses. · Storing information collected by the user through use of an embodiment of the Assistant 1002, such as the equivalent of bookmarks, favorites, and clippings. Persistently storing a list of saved business entities, including restaurants, hotels, stores, theaters, and other places. In one embodiment, the long-term personal memory component 1054 stores not only names or URLs, but also enough information to show a full list about the entities, including phone numbers, map locations, photos, etc. Permanently store saved movies, videos, music, shows and other entertainment items. · Persistently storing your personal calendar, to-do lists, reminders and alerts, contact databases, and social network lists. Persistently storing shopping and wish lists for products and services, obtained coupons and discount codes, etc. · Static storage of transaction history and receipts, including reservations, purchases, and tickets for events.

[0403] According to certain embodiments, multiple instances or threads of the long term personal memory component 1054 are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. For example, in at least some embodiments, various aspects, features and / or functionality of the long term personal memory component 1054 are executed, implemented and / or initiated using one or more databases and / or files residing on (or associated with) the client(s) 1304 and / or the server(s) 1340 and / or on storage devices.

[0404] According to various embodiments, one or more different threads or instances of the long term personal memory component 1054 are initiated in response to detection of one or more conditions or events that satisfy various minimum threshold criteria that trigger initiation of at least one instance of the long term personal memory component 1054. Various examples of various conditions or events that trigger initiation and / or realization of one or more different threads or instances of the long term personal memory component 1054 include, but are not limited to, one or more of the following (or a combination thereof):

[0405] Long-term personal memory entries are acquired as a side effect of a user interacting with an embodiment of the Assistant 1002. Any kind of interaction with the Assistant generates an addition to the long-term personal memory, including browsing, searching, discovering, shopping, scheduling, purchasing, booking, and communicating with other users through the Assistant. Long-term personal memory is accumulated as a result of a user signing up for an account or service, allowing the assistant 1002 to access accounts on other services, using the assistant 1002's services on a client device that has access to other personal information databases such as calendars, to-do lists, and contact lists.

[0406] In at least one embodiment, a given instance of the long-term personal memory component 1054 accesses and / or utilizes information from one or more relational databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements located, for example, on the client 1304 and / or the server 1340. Examples of various data accessed by the long-term personal memory component 1054 include, but are not limited to, data from other personal information databases such as contact or friend lists, calendars, to-do lists, other list managers, personal accounts, and wallet managers provided by external services 1360, etc.

[0407] 44A-44C, screenshots are shown illustrating an example of using the long-term personal memory component 1054 according to one embodiment. In this example, a feature is provided that includes access to stored entities such as restaurants, movies, and businesses that are discovered through an interaction session with one embodiment of the Assistant 1002 (referred to as "My Stuff"). In screen 4401 of FIG. 44A, the user finds a restaurant. The user taps Save to My Stuff 4402 to save information about the restaurant in the long-term personal memory component 1054.

[0408] Screen 4403 in Figure 44B illustrates user access to My Stuff. In one embodiment, the user can select from categories to navigate to a desired item.

[0409] Screen 4404 of FIG. 44C shows a My Restaurant category containing items previously stored in My Stuff.

[0410] Automatic call and response procedures Referring now to Figure 33, a flow chart illustrating an automated call and response procedure according to one embodiment is shown. The procedure of Figure 33 is implemented in connection with one or more embodiments of an intelligent automated assistant 1002. It is understood that the intelligent automated assistant 1002 as shown in Figure 1 is merely one example of a wide variety of intelligent automated assistant system embodiments that may be implemented. Other embodiments of an intelligent automated assistant system (not shown) may include additional components / features, fewer components / features, and / or different components / features as compared to, for example, the components / features shown in the example intelligent automated assistant 1002 shown in Figure 1.

[0411] In at least one embodiment, the automated call and response procedure of FIG. 33 is operable to perform and / or implement various functions, operations, actions and / or other features, such as, for example, one or more (or a combination thereof) of the following:

[0412] The automatic call and response procedure of FIG. 33 provides an interface control flow loop for a conversational interface between a user and an intelligent automated assistant 1002. At least one execution of the automatic call and response procedure is one conversational exchange. The conversational interface is an interface in which the user and the assistant 1002 communicate by speaking to each other in a conversational manner. The Automated Call and Response procedure of Figure 33 provides the executive control flow for the intelligent automated assistant 1002. That is, the procedure controls the collection of input, the processing of the input, the generation of output, and the presentation of the output to the user. The automated call and response procedure of Figure 33 coordinates communication between the components of the intelligent automated assistant 1002. That is, the procedure dictates where the output of one component is fed to another and where overall input from and actions on the environment are taken.

[0413] In at least some embodiments, portions of the automatic call and response procedures are implemented in other devices and / or systems of a computer network.

[0414] According to certain embodiments, multiple instances or threads of the automatic call and response procedures are implemented and / or initiated simultaneously using one or more processors 63 and / or other combinations of hardware and / or hardware and software. In at least some embodiments, one or more portions or selected portions of the automatic call and response procedures are implemented in one or more clients 1304, one or more servers 1340, and / or combinations thereof.

[0415] For example, in at least some embodiments, various aspects, features and / or functionality of the automated call and response procedures are performed, implemented and / or initiated by software components, network services and / or databases, etc., or combinations thereof.

[0416] According to various embodiments, one or more different threads or instances of the automatic call and response procedure are initiated in response to detection of one or more conditions or events that satisfy one or more various criteria (e.g., minimum threshold criteria, etc.) that trigger initiation of at least one instance of the automatic call and response procedure. Examples of various conditions or events that trigger initiation and / or realization of one or more different threads or instances of the automatic call and response procedure include, but are not limited to, one or more of the following (or a combination thereof):

[0417] A user session with an instance of an intelligent automated assistant 1002, including, for example, but not limited to, one or more of the following: A mobile device application that launches a mobile device application, e.g., implementing an embodiment of the intelligent automated assistant 1002 A computer application that launches an application, e.g., implementing an embodiment of the intelligent automated assistant 1002 A dedicated button on the mobile device that can be pressed, such as a "speech input button" Buttons on peripherals connected to a computer or mobile device, such as a headset, telephone headset or base station, a GPS navigation system, a consumer electronics device, a remote control or any other device that has buttons associated with call assistance A web session initiated from a web browser to a website that provides an intelligent automated assistant 1002 An interaction initiated from within an existing web browser session, for example to a website implementing the intelligent automated assistant 1002, where the services of the intelligent automated assistant 1002 are requested. Email messages sent to the modality server 1426 mediating communication with an embodiment of the intelligent automated assistant 1002 A text message is sent to the modality server 1426, which mediates communication with an embodiment of the intelligent automated assistant 1002. A call is made to the modality server 1434 which mediates communication with an embodiment of the intelligent automated assistant 1002. An event, such as an alert or notification, is sent to an application providing an embodiment of the intelligent automated assistant 1002. When a device providing an intelligent automated assistant 1002 is turned on and / or started.

[0418] According to various embodiments, one or more different threads or instances of the automatic call and response procedure may be initiated and / or implemented manually, automatically, statically, dynamically, simultaneously, and / or combinations thereof. Further, the various instances and / or embodiments of the automatic call and response procedure may be initiated at one or more different time intervals (e.g., during specific time intervals, at regular intervals, at irregular intervals, on demand, etc.).

[0419] In at least one embodiment, a given instance of the automated call and response procedure utilizes and / or generates various data and / or other types of information when performing a particular task and / or operation. This may include, for example, input data / information and / or output data / information. For example, in at least one embodiment, at least one instance of the automated call and response procedure accesses, processes and / or utilizes information from one or more various sources, such as, for example, one or more databases. In at least one embodiment, at least a portion of the database information is accessed via communication with one or more local and / or remote memory elements. Additionally, at least one instance of the automated call and response procedure generates one or more various output data / information, which are stored, for example, in local memory and / or remote memory elements.

[0420] In at least one embodiment, the initial configuration of a given instance of the automated call and response procedures is performed using one or more various initialization parameters. In at least one embodiment, at least a portion of the initialization parameters are accessed via communication with one or more local and / or remote memory elements. In at least one embodiment, at least a portion of the initialization parameters provided to an instance of the automated call and response procedures may correspond to and / or be derived from input data / information.

[0421] In the particular example of Figure 33, a single user is assumed to be accessing an instance of the intelligent automated assistant 1002 over a network from a client application with speech input capabilities. The user is interested in finding a suitable place for dinner at a restaurant and is using the intelligent automated assistant 1002 in a conversation to help provide this service.

[0422] In step 100, the user is asked to input a request. The client's user interface offers several input modes, as will be described in connection with Figure 26. These input modes include, for example: An interface for typing, which invokes an active typing derivation procedure as shown in Figure 11. An interface for voice input that invokes the active voice input derivation procedure shown in FIG. 22. An interface for selecting input from a menu, invoking active GUI input derivation as shown in Figure 23.

[0423] Those skilled in the art will appreciate that other input modes may be provided.

[0424] In one embodiment, step 100 includes presenting remaining options from a previous conversation with assistant 1002, for example using techniques described in the active dialog suggestion input derivation procedure described in connection with FIG. 24.

[0425] For example, in one of the methods of active input derivation in step 100, the user says to the assistant 1002, "where may I get some good Italian around here?" For example, the user speaks this to a speech input component. One embodiment of the active input derivation component 1094 invokes a speech-to-text service, asks the user for confirmation, and presents the confirmed user input as a unified annotated input form 2609.

[0426] One embodiment of the language interpreter component 1070 is invoked in step 200, as described in connection with Figure 29. The language interpreter component 1070 parses the text input and generates a list of possible interpretations of the user's intent 290. In one parse, the word "italian" is associated with restaurants of style Italian, "good" is associated with a recommendation property of restaurants, and "around here" is associated with a location parameter describing the distance from a global sensor reading (e.g., the user's location as given by a GPS in a mobile device).

[0427] In step 300, the representation of the user's intent 290 is passed to a dialog flow processor 1080, implementing one embodiment of a dialog and flow analysis procedure as described in connection with FIG. 32. The dialog flow processor 1080 determines the most likely interpretation of the intent, maps this interpretation to an instance of the domain model and parameters of the task model, and determines the next flow step of the dialog flow. In this example, a restaurant domain model is instantiated with a conditional selection task to find a restaurant with constraints (cuisine type, recommendation rating, and proximity constraints). The dialog flow model indicates that the next step is to get some examples of restaurants that satisfy the constraints and present them to the user.

[0428] In step 400, an embodiment of a flow and service orchestration procedure 400 is invoked via a service orchestration component 1082, which invokes a collection of services 1084 for a user request to find a restaurant. In one embodiment, these services 1084 contribute some data to a common result, which is merged and the resulting list of restaurants is represented in a unified, service-independent format.

[0429] In step 500, the Output Processor 1092 generates a dialogue summary of the results, such as "I found some recommended Italian restaurants near here." The Output Processor 1092 combines this summary with the output result data and sends the combined data in step 600 to a module that formats the output for the user's particular mobile device.

[0430] In step 700, this device-specific output package is sent to the mobile device, where the device's client software renders it on the mobile device's screen (or other output device).

[0431] The user views this presentation and decides to explore various options. If the user is finished with it (790), the method ends. If the user is not finished with it (790), another iteration of the loop begins by returning to step 100.

[0432] The automated call and response procedure is applied, for example, to a user query "how about mexican food?". Such an input is derived in step 100. In step 200, the input is interpreted as restaurants of style Mexican and combined with other state (held in short-term personal memory 1052) to support an interpretation of the same intent as last time except for one change in the parameter of restaurant type. In step 300, this updated intent refines the request, which is provided to the service orchestration component 1082 in step 400.

[0433] In step 400, the updated request is dispatched to multiple services 1084, resulting in a new collection of restaurants that is summarized in a dialog in 500, formatted for the device in 600, and sent over the network in step 700 to display the new information on the user's mobile device.

[0434] In this case, a user finds their favorite restaurant, shows it on a map, and sends directions to a friend.

[0435] Those skilled in the art will understand that various embodiments (not shown) of the automatic call and response procedure may include additional features and / or operations as compared to the features and / or operations shown in the particular embodiment of FIG. 33 and / or may omit at least a portion of the features and / or operations of the automatic call and response procedure shown in the particular embodiment of FIG. 33.

[0436] Conditional Selection In one embodiment, the intelligent automated assistant 1002 uses conditional selection in its interactions with the user to more effectively identify and present items that may be of interest to the user.

[0437] A conditional selection is a type of generic task. A generic task is an abstraction that characterizes the types of domain objects, inputs, outputs, and control flow that are common among a class of tasks. A conditional selection task is performed by selecting an item from a collection of domain object (e.g., restaurant) choices based on a selection constraint (e.g., desired cuisine or location). In one embodiment, the assistant 1002 helps the user explore the space of possible choices, derives the user's constraints and preferences, presents choices, and offers actions to perform on those choices, such as reservation, purchase, storage, or sharing. A task is completed when the user selects one or more items on which to perform an action.

[0438] Conditional selection is useful in many situations, such as choosing a movie to see, a restaurant for dinner, a hotel to stay in for the night, or a place to buy a book, etc. In general, conditional selection is useful when you know a category and need to select an instance of the category that has some desired characteristics.

[0439] One traditional approach to conditional selection is a directory service: the user selects a category and the system provides a list of choices. In a local directory, the user constrains the directory to a location such as a city. For example, in the "yellow pages" service, the user selects a phone book for a city, browses a category, and the phone book shows one or more items in that category. A major problem with directory services is the large number of potentially relevant choices (e.g., restaurants in a given city).

[0440] Another conventional approach is database applications, which provide a method to generate a set of options by deriving a query from a user, searching for matching items, and presenting the items with key features highlighted. The user browses the rows and columns of the result set, and is likely to sort the results or modify the query until the user finds some suitable candidates. The problem with database services is that users need to use an abstract machinery of sorting, filtering, and browsing to actuate human requests as canonical queries and explore the resulting data, which is difficult for most users to do even using a graphical user interface.

[0441] A third conventional method is open-ended search, such as "local search." Although searches are easy to perform, there are several problems with search services that make it difficult for users to accomplish the task of conditional selection. In particular: Similar to directory exploration, users must narrow the list down rather than simply entering a category to see one or more possible choices. If the user can narrow the selection by constraints, it is unclear what constraints are used (e.g., can you find places within walking distance or that are open late?) It is not clear how to specify constraints (e.g. can we request a type of cuisine or a type of restaurant? What prices are possible?) · Multiple conflicting preferences. There is usually no objectively "best" answer to a given situation (e.g., I want to know where to find cheap, tasty food that's nearby, has great service, and is open until midnight). Preferences are relative and depend on what is available. For example, if a user wants to reserve a table at a fancy restaurant, they will choose that restaurant even though it is expensive. But in general, users will prefer cheaper options.

[0442] In various embodiments, the assistant 1002 of the present invention helps streamline the task of conditional selection. In various embodiments, the assistant 1002 employs databases and search services, as well as other functionality, to reduce the effort on the part of the user in specifying what they are looking for, considering what is available, and determining a satisfactory solution.

[0443] In various embodiments, the assistant 1002 makes the conditional selection more human-friendly in any of a number of different ways.

[0444] For example, in one embodiment, the assistant 1002 enables characteristics as constraints. The user specifies a request regarding the characteristics of the desired result. The assistant 1002 enables this input as a formal constraint. For example, instead of saying "find one or more restaurants less than 2 miles from the center of Palo Alto whose cuisine includes Italian food," the user may simply say "Italian restaurants in palo alto." The assistant 1002 enables the attributes requested by the user that are not parameters to the database. For example, if the user requests a romantic restaurant, the system enables this as a text search or tags a matching constraint. In this way, the assistant 1002 helps users overcome some of the problems they may have with conditional selection. It is easier for users to envision and describe a satisfactory solution than to describe the conditions that distinguish an appropriate solution from an inappropriate one.

[0445] In one embodiment, the assistant 1002 suggests useful selection criteria and the user only needs to say the criteria that are important to them at the time. For example, the assistant 1002 asks, "which of these matter: price (cheaper is better), location (closer is better), rating (higher rated is better)?" The assistant 1002 may suggest criteria that require specific values. For example, "you can say what kind of cuisine you would like or a food item you would like."

[0446] In one embodiment, the assistant 1002 facilitates decisions between different options with many competing criteria (eg, price, quality, availability, and convenience).

[0447] By providing such guidance, the assistant 1002 helps the user make multi-parameter decisions in any of several ways:

[0448] One way is to reduce the dimensionality of the space and combine raw data such as ratings from multiple sources into a composite “recommendation” score that takes into account domain knowledge about the data sources (e.g. Zagat ratings are more predictive of quality than Yelp).

[0449] Another approach is to focus on a subset of criteria and change the problem from "what are all the possible criteria to consider and how to they combine?" to a selection of the most important criteria in a given situation (e.g. "which is more important, price or proximity?").

[0450] Another way to make a simple decision is to assume default values ​​and an ordering of preferences (e.g., all things being equal, higher rated, closer and cheaper is more desirable). The system may remember the user's previous responses indicating default values ​​and preferences.

[0451] · Fourth, the system provides key characteristics of items in the set of options that were not indicated in the original request. For example, the user requested local Italian food. The system provides a set of restaurant options and uses them to provide a list of popular tags used by reviewers or taglines from guidebooks (e.g., "a nice spot for a date," "great pasta"). This allows the user to select a particular item and complete the task. Research shows that most users make decisions by evaluating specific instances rather than deciding according to criteria and reasonably accepting what appears at the top. It also shows that users learn about features from detailed examples. For example, when selecting a car, the buyer will not care about the navigation system until they see that some cars have it (and the navigation system becomes an important criterion). The assistant 1002 presents key characteristics of the listed items that help the user select the best one or suggests aspects along which to optimize.

[0452] Conceptual Data Model In one embodiment, the assistant 1002 provides assistance with conditional selection tasks by simplifying a conceptual data model. The conceptual data model is an abstraction presented to the user in the assistant's 1002 interface. To overcome the psychological problems mentioned above, in one embodiment, the assistant 1002 provides a model that allows the user to describe their requests in terms of some easily understood and recalled characteristics of suitable options rather than constraint expressions. In this way, the characteristics are made easy to synthesize into natural language requests (e.g., adjectives modifying keyword markers) and understand in prompts ("you may also favor recommended restaurants..."). In one embodiment, a data model is used that allows the assistant 1002 to determine a general approach to guidance instantiated by the domain of interest (e.g., restaurants vs. hotels) and domain-specific characteristics.

[0453] In one embodiment, the conceptual data model used by the assistant 1002 includes a choice class, which is a representation of a space of things to choose from. For example, in a restaurant search application, the choice class is the class of restaurants. The choice class is abstract and has subclasses such as "things to do while in a destination." In one embodiment, the conceptual data model assumes that in a given problem-solving situation, the user is interested in choosing from a single choice class. This assumption simplifies the dialogue and allows the assistant 1002 to declare boundaries of authority ("I know about restaurants, hotels, and movies" as opposed to "I know about life in the city").

[0454] Given a selection class, in one embodiment, the data model presented to a user for a conditional selection task includes, for example, items, item features, selection criteria and constraints.

[0455] An item is an instance of a selection class.

[0456] An item feature is a characteristic, attribute, or calculated value that is presented and / or associated with at least one item. For example, a restaurant's name and phone number are item features. Features may be intrinsic (restaurant name or cuisine) or relational (e.g., distance from a current point of interest). Features may be static (e.g., restaurant name) or dynamic (ratings). Features may be composite values ​​calculated from other data (e.g., a "monetary value" score). Item features are abstractions to the user created by a domain modeler; that is, item features do not need to correspond to underlying data from backend services.

[0457] Selection criteria are characteristics of items that are used to compare the relevance or value of items; that is, selection criteria are ways of saying which items are preferred. Selection criteria are modeled as characteristics of the items themselves, whether they are intrinsic properties or calculated. For example, proximity (defined as distance from a place of interest) is a selection criterion. Location in space-time is a property rather than a selection criterion, and is used with a place of interest to calculate distance from the place of interest.

[0458] Selection criteria have an inherent preference order; that is, the value of any particular criterion is used to reserve items in the best priority order. For example, a proximity criterion has an inherent preference that closer is preferable, whereas location does not have an inherent preference value. This constraint allows the system to make default assumptions and guide the selection when the user states only a criterion. For example, a user interface may be provided to "sort by rating" and assume that higher ratings are preferable.

[0459] The one or more selection criteria are characteristics of an item that are relevant to choosing among possible items, but that are not necessarily related to preferences (e.g., the name and phone number of a restaurant are not generally relevant to choosing among).

[0460] In at least one embodiment, a constraint is a restriction on the desired value of a selection criterion. Formally, a constraint may be expressed as a set membership (e.g., cuisine type includes Italian), a pattern match (e.g., restaurant review text includes "romantic"), a fuzzy inequality (e.g., distance less than a few miles), a quality threshold (e.g., highly rated), or a more complex function (e.g., value for money). To keep things simple enough for the average person, the data model relaxes at least one or more constraints to symbolic values ​​that are matched as words. Time and distance are excluded from this relaxation. In one embodiment, the operators and thresholds used to realize the constraints are private to the user. For example, a constraint on a selection criterion called "cuisine" is expressed as a symbolic value such as "Italian" or "Chinese". A constraint on rating is "recommended" (a binary choice). In one embodiment, for time and distance, the assistant 1002 uses its own representation that deals with the range of constraint values ​​and inputs. For example, distance is "walking distance" and time is "tonight". In one embodiment, the Assistant 1002 uses special processing to match such input to high accuracy data.

[0461] In at least one embodiment, some constraints are required constraints, meaning that the task simply cannot be completed without this data - for example, it is difficult for a user to select a restaurant without some notion of the desired location even if they know the name.

[0462] In summary, a domain is modeled as a selection class that contains features of items that are important to a user. Some features are used to select and order the items offered to the user. These features are called selection criteria. Constraints are symbolic restrictions on the selection criteria that narrow the set of items to those that match.

[0463] The criteria will often conflict and the constraints will often partially overlap. The data model reduces the optimization selection problem (finding the best solution) to a matching problem (finding items that are appropriate for a given set of criteria and match a set of symbolic constraints). The algorithms for selecting criteria and constraints and for determining the ordering are described in the next section.

[0464] A methodology for conditional selection In one embodiment, the assistant 1002 performs conditional selection by taking as input an ordered list of criteria with an implicit or explicit constraint on at least one and selecting a set of candidate items that contain key features. Computationally, the selection task can be characterized as a nested search: first, identify the selection class, identify the important selection criteria, specify the constraints (the range of acceptable solutions), and search the instances in order of best fit to find an acceptable item.

[0465] Referring to FIG. 45, an example of an abstract model 4500 of a conditional selection task that is a nested search is shown. In this example, the assistant 1002 identifies (4505) a selection class from all place search types 4501. The identified class is restaurants. Within the set of all restaurants 4502, the assistant 1002 selects (4506) a criterion. In this example, the criterion is identified as distance. Within the set of restaurants 4503 in PA, the assistant 1002 specifies (4507) a constraint for the search. In the example, the identified constraint is "Italian cuisine." Within the set of Italian restaurants 4504 in PA, the assistant selects (4508) an item to present to the user.

[0466] In one embodiment, such nested searches are not a flow that derives data and presents results, but rather something that the assistant 1002 does when it has relevant input data. In one embodiment, such control flow is managed through a dialog between the user and the assistant 1002 that operates according to other procedures, such as dialog and task flow models. Conditional selection provides a framework for building dialog and task flow models at a level of abstraction (i.e., appropriate for conditional selection tasks regardless of domain).

[0467] Referring to FIG. 46, an example of a dialog 4600 is shown that facilitates guiding a user through the search process so that relevant input data is obtained.

[0468] In the example dialog 4600, the first step is for the user to specify the type of thing they are looking for, which is the selection class. The user does this by saying, for example, "dining in palo alto." This allows the assistant 1002 to infer the task and domain (4601).

[0469] Once the assistant 1002 understands the task and domain binding (selection class = restaurants), the next step is to understand the selection criteria that are important to the user, for example by soliciting criteria and / or constraints (4603). In the above example, "in palo alto" indicates a place of interest. In the context of restaurants, the system interprets the location as a proximity constraint (technically, a constraint on a proximity criterion). The assistant 1002 describes what is needed and receives input. If there is enough information to constrain the set of options to a reasonable size, the assistant 1002 rephrases the input and presents one or more restaurants that satisfy the proximity constraints and are sorted in some useful order (4605). The user selects from this list (4607) or refines the criteria and constraints (4606). The assistant 1002 reasons about the constraints already stated, uses domain-specific knowledge to suggest other criteria that may be helpful, and solicits constraints on those criteria. For example, when the assistant 1002 recommends restaurants within walking distance of a hotel, useful criteria to request are cuisine and table availability.

[0470] The conditional selection task is completed when the user selects (4607) an instance of the selection class. In one embodiment, additional follow-on tasks 4602 are enabled by the assistant 1002. Thus, the assistant 1002 provides a service to indicate the selection while providing some other value. Examples 4608 are making a restaurant reservation, setting a reminder in the calendar, and / or sharing the selection with other users by sending an invitation. For example, making a restaurant reservation definitely indicates that a selection has been made. Other options are to put the restaurant in the calendar or send an invitation with directions to a friend.

[0471] 47, a flow chart illustrating a method for conditional selection according to one embodiment is shown. In one embodiment, the assistant 1002 operates opportunistically and interactively, allowing the user to jump into an inner loop, for example, by specifying the task, domain, criteria and constraints one or more times at a time in the input.

[0472] The method begins (4701). Input is received from a user according to any of the modes described herein (4702). If the task is not known based on the input, the assistant 1002 requests clarifying input from the user (4705).

[0473] In step 4717, the assistant 1002 determines whether the user provides additional input. If so, the assistant 1002 returns to step 4702. If not, the method ends (4799).

[0474] If the task is known in step 4703, the assistant 1002 determines if the task is a conditional selection (4704). If it is not a conditional selection, the assistant 1002 proceeds to the specified task flow (4706).

[0475] If the task is a conditional selection in step 4704, the assistant 1002 determines whether the selection class is to be determined (4707). If it is not a conditional selection, the assistant 1002 provides choices of known selection classes (4708) and returns to step 4717.

[0476] If the selection class is determined in step 4707, the assistant 1002 determines whether all required constraints have been determined (4709). If all required constraints have not been determined, the assistant 1002 prompts for the required information (4710) and returns to step 4717.

[0477] If all required constraints are determined in step 4709, the assistant 1002 determines (4711) whether any result items can be found given the constraints. If no items satisfy the constraints, the assistant 1002 provides a way to relax the constraints (4712). For example, the assistant 1002 relaxes the constraints from lowest priority to highest priority using a filter / sort algorithm. In one embodiment, if there are items that satisfy some of the constraints, the assistant 1002 rewords the situation (e.g., outputting "I could not find Recommended Greek restaurants that deliver on Sundays in San Carlos. However, I found 3 Greek restaurants and 7 Recommend restaurants in San Carlos."). In one embodiment, if there are no items that match any of the constraints, assistant 1002 rephrases the situation and prompts for different constraints (e.g., outputting "Sorry, I could not find any restaurants in Anytown, Texas. You may pick a different location."). Assistant 1002 returns to step 4717.

[0478] If result items are found in step 4711, the assistant 1002 provides a list of items (4713). In one embodiment, the assistant 1002 restates the currently specified criteria and constraints (e.g., "Here are some recommended Italian restaurants in San Jose." (recommended=yes, cuisine=Italian, proximity=<in San Jose> )). In one embodiment, the assistant 1002 presents a sorted and paginated list of items that satisfy the known constraints. If an item exhibits only some of the constraints, such conditions are shown as part of the item display. In one embodiment, the assistant 1002 provides a way for the user to select an item by initiating another task on the item, such as, for example, reserving, storing, scheduling, or sharing. In one embodiment, for any given item, the assistant 1002 presents the main item features to select an instance of a selection class. In one embodiment, the assistant 1002 shows how an item satisfies the constraints. For example, a Zagat rating of 5 satisfies the Recommended=yes constraint, and "1 mile away" satisfies the "within walking distance of an address" constraint. In one embodiment, the assistant 1002 allows the user to drill down into more details about the item, which results in more item features being displayed.

[0479] The assistant 1002 determines (4714) whether the user selected an item. If the user selected an item, the task is complete. If so, any subsequent tasks are performed (4715) and the method ends (4799).

[0480] If the user does not select an item in step 4714, assistant 1002 provides the user with a way to select other criteria and constraints (4716) and returns to step 4717. For example, given the currently specified criteria and constraints, assistant 1002 provides the criteria that are most likely to constrain the set of options to the desired size. If the user selects a constraint value, the constraint value is added to the previously determined constraints when steps 4703-4713 are repeated.

[0481] Selecting a criterion adds information to the request, since one or more criteria have inherent preference values. For example, allowing the user to indicate that positive reviews are valued allows the assistant 1002 to sort by that criterion. Such information is taken into account when steps 4703-4713 are repeated.

[0482] In one embodiment, assistant 1002 allows the user to increase the importance of a criterion already specified, so that criterion takes higher priority. For example, if the user requests quick, cheap, and highly recommended restaurants within a block of their location, assistant 1002 requests that the user select the more important criteria. Such information is taken into account when steps 4703-4713 are repeated.

[0483] In one embodiment, the user provides additional input at any time while the method of Figure 47 is being performed. In one embodiment, assistant 1002 periodically or continuously checks for such input and returns to step 4703 to process the input in response.

[0484] In one embodiment, when outputting an item or list of items, the assistant 1002 indicates the features used to select and order the items during item presentation. For example, if a user requests nearby Italian restaurants, such item features for distance and cuisine are shown during item presentation. This includes highlighting matches as well as listing the selection criteria involved during item presentation.

[0485] Example Domain Table 1 provides an example of a conditional selection domain addressed by the assistant 1002 according to various embodiments. TIFF2024122975000015.tif161169Table 1

[0486] Filtering and sorting results In one embodiment, a filter / sort methodology is employed when presenting items that meet the currently specified criteria and constraints. In one embodiment, the selection constraints act as filter and sort parameters for the underlying service. Thus, any selection criteria are used to determine which items are in the list and to calculate the order in which they are paginated and presented. The sort order in this task is similar to the relevance rank in search. For example, proximity is a criterion that includes the general concept of sorting by distance and a symbolic constraint value such as "within driving distance". The "driving distance" constraint is used to select a group of candidate items. Within that group, closer items are sorted higher in the list.

[0487] In one embodiment, the selection constraints and associated filtering and sorting are at distinct "levels" and are a function of the underlying data and input from the user. For example, proximity is grouped into levels such as "walking distance," "texi distance," "driving distance," etc. When sorting, one or more items within walking distance are treated as if they are the same distance. Input from the user comes into play in the way the user specifies the constraints. For example, if the user enters "in palo alto," one or more items within the city limits of Palo Alto are an exact match and are equivalent. If the user enters "near the University Avenue train station," the matches depend on the distance from the address, and the match depends on the selection class (e.g., close to a restaurant is different from close to a hotel). Even within constraints specified by continuous values, discretization is applied. This is important for sorting operations, so multiple criteria are involved in determining the best priority order.

[0488] In one embodiment, the list of items may be shorter or longer than the number of items shown on one "page" of output; those items are considered to be "matches" or "good enough." Generally, the items on the first page will be of most interest, but there are conceptually long lists, and pagination is simply a function of the form factor of the output medium. This means, for example, that if a user is provided with a way to sort or view items by some criteria, it is the entire collection of items (which represents more than one page of items) that is sorted or viewed.

[0489] In one embodiment, there is prioritization among the selection criteria; that is, some criteria are more important than others in filtering and sorting. In one embodiment, user-selected criteria are given higher priority than other criteria, and there is a default ordering for one or more criteria. This allows for general lexicographical sorting. It is assumed that there is a meaningful a priori priority; for example, for restaurants, closeness is more important than not being expensive, unless the user specifies otherwise. In one embodiment, the a priori priority ordering is by domain. The model allows user-specific preferences to override domain default values, if desired.

[0490] Since the value of a constraint represents some internal data type, there are various ways of matching a constraint, which are specific to the constraint. For example, in one embodiment,

[0491] Binary constraints match one or more or none. For example, it is either true that a restaurant is "Fast" or it is not true.

[0492] Set membership constraints match one, many, or none based on property values. For example, cuisine=Greek means that the set of cuisines for a restaurant includes Greece.

[0493] Enumeration constraints match on thresholds. For example, a criterion can have constraint values ​​rated, highly rated, or top-rated. Constraining highly rated matches top-rated.

[0494] Numeric constraints are matched with thresholds by criteria. For example, "open late" is a criteria, and the user requests a place that is open after 10pm. This kind of constraint is slightly outside the scope of the conditional selection task, since it is not a symbolic constraint value. However, in one embodiment, the assistant 1002 recognizes examples of such numeric constraints and maps them to thresholds in symbolic constraints (e.g., "restaurants in palo alto open now" -> "here are 2 restaurants in palo alto that are open late").

[0495] · Location and time are specifically handled. Constraints on proximity are points of interest specified at a certain level of granularity to determine matches. If the user specifies a city, city level matching is appropriate, i.e. allowing for areas with zip codes. The Assistant 1002 understands places that are "nearby" other points of interest based on specific processing. Time is relevant as a constraint value for criteria with thresholds based on service calls such as table availability or flights at certain times.

[0496] In one embodiment, the constraints are modeled such that there is a single threshold for selection and a small set of distinct values ​​to sort. For example, the affordability criterion is modeled as a rough binary constraint, where affordable restaurants are in a price range of a certain threshold. If the data allows for multiple distinct levels for selection, the constraints are modeled using a matching gradient. In one embodiment, two match levels are provided (such as high match and low match). However, one skilled in the art will appreciate that in other embodiments, one or more match levels can be provided. For example, proximity is matched with fuzzy boundaries, so that those closer to the point of interest have a high match. The result of the operation of high match or low match is a filter / sort algorithm, as described below.

[0497] For at least one criterion, if relevant, a method for matching and default thresholds are constructed. The user can only say the name of the constraint, a symbolic constraint value, or a high-precision constraint expression (such as time and location) if specifically processed.

[0498] The ideal situation for conditional selection occurs when a user specifies constraints that result in a short list of candidates where one or more candidates satisfy the constraints. The user selects among the suitable ones based on the characteristics of the items. However, often the problem is over-constrained or under-constrained. When over-constrained, there are few or no items that satisfy the constraints. When under-constrained, there are so many candidates that inspecting the list is not convenient. In one embodiment, the general conditional selection model of the present invention can handle multiple constraints with robust matching and generally produces a selection. The user chooses to refine the criteria and constraints or simply complete the task with a "good enough" solution.

[0499] method In one embodiment, the following methods are used to filter and sort the results:

[0500] 1. Given an ordered list of selection criteria selected by the user, determine the constraints for at least one. a. If the user specifies a constraint value, use it. For example, if the user says "greek food", the constraint is cuisine=Greek. If the user says "san Francisco", the constraint is In the City of San Francisco. If the user says "south of market", the constraint is In the Neighborhood of SoMa. b. Use domain-specific defaults and criteria-specific defaults. For example, if a user says "a table at some thai place()", they are indicating that availability criteria is relevant, but they have not specified any constraint values. The default constraint values ​​for availability are some range of dates, times, such as tonight, and a default party size of 2.

[0501] 2. Select the minimum N results according to the specified constraints. a. Try to get N results with high concordance. b. If that fails, try relaxing the constraints in reverse priority order, i.e. matches at a higher level for one or more criteria excluding the last criterion that matches at a lower level. If there are no matches at a lower level for that constraint, try matches at lower levels in the line from lowest priority to highest priority. c. Iterate through a loop allowing for matching failures in the constraints from lowest priority to highest priority.

[0502] 3. After obtaining the minimum set of alternatives, perform a lexicographical sort across one or more criteria (including user-specific criteria and other criteria) in order of priority. Consider the set of user-specific criteria with the highest priority, and then consider one or more remaining criteria in a priori priority. For example, if the a priori priority is (availability, cuisine, proximity, rating) and the user provides constraints on proximity and cuisine, then the sorting priority is (cuisine, proximity, availability, rating). b. When the criteria are sorted using distinct match levels (high, low, no match), the full criteria list is applied using the same method as when relaxing constraints. i. If the set of options is retrieved without relaxing the constraints, then one or more of the sets of options will "tie up" in the sort because they match at a high level. The next criteria in the priority list then works to sort them. For example, if a user says cuisine=Italian, proximity=In San Francisco, and the sort priority is (cuisine, proximity, availability, rating), then one or more places in the list will have equal matching values ​​for cuisine and proximity. Thus, the list is sorted by availability (places with open tables appear at the top). Of the open places, the best rated places will be at the top. ii.When the set of options is obtained by relaxing the constraints, there will be one or more items that are exact matches at the top of the list, followed by the partially matching items. Within the matching group, the items are sorted by the remaining criteria, and the same is done for the partially matching groups. For example, if there are only two Italian restaurants in San Francisco, the restaurants that are available will be shown first, followed by the restaurants that are not available. The remaining restaurants in San Francisco will then be shown, sorted by availability and rating.

[0503] priority order The techniques described herein allow for great robustness when partially specified constraints and incomplete data are presented to the Assistant 1002. In one embodiment, the Assistant 1002 uses these techniques to generate a user's list of items in the best priority order, i.e., according to relevance.

[0504] In one embodiment, such relevance sorting is based on an a priori priority order; that is, a set of criteria is selected among those that are important with respect to the domain and arranged in order of importance. In the case of a tie, a criterion higher in the priority order is more strongly associated with conditional selection between items than a criterion lower in the priority order. The assistant 1002 may operate on one or more criteria. Furthermore, the criteria may be changed over time without disrupting existing behavior.

[0505] In one embodiment, the priority order between criteria is adjusted by domain-specific parameters because how criteria interact depends on the selection class: for example, when choosing a hotel, availability and price are the main constraints, while when choosing a restaurant, cuisine and proximity are more important.

[0506] In one embodiment, the user overrides the default criteria ordering in the dialog, so that the system can use the ordering to determine which constraints to relax and guide the user if the search is over-constrained. For example, if the user provides constraints on cuisine, proximity, recommendations, and food items, and there are no exact matches, the user can say that food items are more important than recommendations, and change the combination so that matches for the desired food items are sorted to the top.

[0507] In one embodiment, user-specific constraints take precedence over others when determining the priority order. For example, in one embodiment, proximity is a required constraint and as such is always specified and takes precedence over other unselected constraints. Thus, proximity does not need to be the highest priority constraint to be completely primary. Also, the priority of these criteria is only important within the criteria selected by the user, since many criteria will not match one or more unless a constraint is provided by the user. For example, if the user specifies cuisine, then cuisine is important, otherwise it is irrelevant for sorting items.

[0508] For example, below is a candidate priority sorting paradigm for the restaurant domain.

[0509] 1. Cuisine* (cannot be sorted unless a constraint value is given) 2. Availability* (sortable using default constraint value, e.g. time) 3. Recommended 4. Proximity* (constraint value is always given) 5. Affordability 6. Delivery available 7. Food items (cannot be sorted unless a constraint value, e.g. a keyword, is given) 8. Keywords (e.g. cannot be sorted unless a constraint value that is a keyword is given) 9. Restaurant Name

[0510] The following is an example of a design principle for the above sorting paradigm. If the user specifies a cuisine, I want to stick to that cuisine. · If more than one is equal, sort by the importance level (which is the highest priority of the criteria used to sort without constraints). In at least one embodiment, proximity is more important than most, but if proximity is matched at a separate level (such as city and walking distance) and is always specified, then most of the items that match the most in time will be "tied" by proximity. Availability (e.g. as determined by a search on a website such as open-table.com) is a useful sorting criterion, and is the default basis for sorting if not specified. If the user indicates a time for a reservation, only available locations are listed and sorting is based on recommendations.

[0511] · If the user specifically requests recommended places, we sort by the proximity and availability above and relax those criteria before making recommendations. Assume that if a user is looking for a satisfying place, they are willing to drive a little farther, which is more important than the default table availability. If a specific time for availability is specified and the user requests recommended places, then the recommended places that are available will come first and the recommendations are relaxed to lower level matches until one or more availability matches are not found. The remaining constraints other than the name are one or more constraints based on incomplete data or matches, so they default to a weak sorting heuristic: given a constraint, there will be one or more matches or no matches. The name is used as a constraint to handle the example where a user mentions a restaurant name, for example to find one or more Hobee's restaurants near Palo Alto, where one or more items match the name and are sorted by proximity (the other specified constraint in this example).

[0512] Domain modeling: Mapping selection criteria to the underlying data It is desirable to distinguish between data available for computation by the assistant 1002 and data used to make a selection. In one embodiment, the assistant 1002 uses a data model that reduces complexity for the user by integrating one or more types of data used to differentiate items into a single selection criteria model. Internally, these data take several forms. Instances of selection classes have inherent characteristics and attributes (such as restaurant cuisine), are compared along aspects (such as distance from a location), and are found by a query (such as matching a text pattern or being open at a given time). They are computed from other data that are not exposed to the user as selection criteria (e.g., a weighted combination of ratings from multiple sources). While these data are one or more pieces of data relevant to the task, the distinction between these three types of data is not relevant to the user. Because the user thinks in terms of characteristics of the desired choice, not characteristics and aspects, the assistant 1002 makes these various criteria actionable into item characteristics. The assistant 1002 provides the domain data model that is presented to the user and maps it to data found in web services.

[0513] A kind of mapping is an isomorphism from the underlying data to the criteria presented to the user, such as the availability of tables for reservation as seen by the user, exactly as online reservation websites such as opentable.com provide, using the same granularity of time and party size.

[0514] Another type of mapping is to normalize data from one or more services to a common set of values ​​by unifying potentially equal values. For example, one or more restaurant dishes are represented as a single ontology in the assistant 1002 and mapped to different vocabularies used in different services. The ontology is hierarchical, with leaf nodes pointing to specific values ​​from at least one service. For example, one service may have a dish value for "Chinese", another value for "Szechuan" and a third value for "Asian". The ontology used by the assistant 1002 semantically matches a reference to "Chinese food" or "Szechuan" with one or more of those nodes. The confidence reflects the degree of match.

[0515] Normalization is relevant when resolving differences in precision (e.g., restaurant locations are given at street level in one service but city level in another). In one embodiment, assistant 1002 uses deep structured representations of location and time that map to different surface data values.

[0516] In one embodiment, the assistant 1002 uses a special kind of mapping for open-ended qualifiers (e.g., romantic, quiet) that are mapped to full-text search matches, tags, or other open texture features. The name of the selection constraint in this case is a qualifier like "is described as".

[0517] In at least one embodiment, constraints are mapped to an order of action preferences: given the name of a selection constraint and its constraint value, assistant 1002 can interpret the criteria as an ordering over the possible items. There are several technical issues to address in such a mapping, for example:

[0518] · Conflicting ordering of preferences. The ordering given by one constraint is contradictory or inversely correlated with the ordering given by another constraint. For example, price and quality tend to be in conflict. In one embodiment, the assistant 1002 interprets the constraints selected by the user in a weighted or combined order that reflects the user's desires but is faithful to the data. For example, the user may ask "cheap fast food French restaurants within walking distance rated highly." In many locations, such restaurants may not exist. However, in one embodiment, the assistant 1002 presents a list of items that it tries to optimize against at least one constraint and explains why at least one is listed. For example, one item is "highly rated French cuisine" and another item is "cheap fast food within walking distance."

[0519] Data is used as hard or soft constraints. For example, the price range of a restaurant is important for selecting a restaurant, but it is difficult to specify a price threshold in advance. A constraint that appears to be a hard constraint, such as cuisine, may actually be a soft constraint due to partial matching. In one embodiment, the assistant 1002 uses a data modeling strategy that attempts to smooth one or more criteria into symbolic values ​​(such as "cheap" or "close") so that the constraints are mapped to a function that makes the criteria and order appropriate without being strict with respect to matching-specific thresholds. For symbolic criteria that contain explicit objective truth values, the assistant 1002 gives the objective criteria more weight than other criteria and makes clear in the explanation that it knows that some items do not exactly match the requested criteria.

[0520] · Items can match several constraints instead of one or more, and the "best fit" item is shown. In general, the Assistant 1002 determines the item features that are key for the domain and serve as selection criteria and possible constraint values ​​for at least one criterion. Such information is provided, for example, via operational data and API calls.

[0521] Paraphrasing and prompt text As mentioned above, in one embodiment, the Assistant 1002 acts on the user's goals by providing and indicating feedback, understanding the user's intent, and generating a restatement of the current understanding. In the conversational dialog model of the present invention, a restatement is what the Assistant 1002 outputs after a user's input, either as a prelude (e.g., Restate 4003 in FIG. 40) or as a subsequent summary of results (e.g., List 3502 in FIG. 35). Prompts are suggestions to the user about what they can do to refine the request or explore the choice space along some dimension.

[0522] In one embodiment, the purpose of the paraphrase and prompt text includes, for example: · Demonstrate that the assistant 1002 understands the concepts of the user's input, not just the text. · Demonstrate the extent of the assistant's 1002 understanding. Guide the user to enter the text required for the given task. · To help users explore the space of possibilities in conditional selection. Explaining the current results obtained from the service with respect to the user's stated criteria and the assistant's 1002 assumptions (e.g., explaining the results of under-constrained and over-constrained requests)

[0523] For example, the following paraphrases and prompts illustrate some of these purposes:

[0524] User input: indonesian food in menlo park System interpretation: Task=constrained Selection SelectionClass=restaurant Constraints: Location=menlo park,CA Cuisine=Indonesian (known in the ontology) Results from the service: No high level matches Paraphrase: Sorry, I can't find any Indonesian Restaurants Nearby Menlo Park .(sorry. Menlo Park No Indonesian restaurants found nearby. Prompt:You could try other Cuisines or locations (You can try other dishes and places.) Prompt below hypertext link: Indonesian :You can try other food categories such as Chinese,or a favorite food item such as steak.( Indonesian cuisine : You can try other categories of food, such as Chinese food, or your favorite food item, such as steak. Menlo Park :Enter a location such as a city,neighborhood,street address,or "near" followed by a landmark.( Menlo Park :Enter a location such as a city, neighborhood, address, or "near" a landmark. Cuisines:Enter a food category such as Chinese or Pizza.( cooking :Please enter the type of food, such as Chinese food or pizza.) Locations :Enter a location:a city,zip code,or "near" followed by the name of a place.( place Enter your location: city, zip code, or place name ("nearby")

[0525] In one embodiment, the assistant 1002 responds relatively quickly to user input with paraphrases. The paraphrases are updated after results are known. For example, an initial response might be, "Looking for Indonesian Restaurants Nearby Menlo Park ...(I'm looking for an Indonesian restaurant near Menlo Park). Once the results are retrieved, assistant 1002 updates the text to say, "Sorry, I can't find any Indonesian Restaurants Nearby Menlo Park .You could try other Cuisines or locations (sorry. Menlo Park No Indonesian restaurants found near you. cooking , or place (You can try it out here.) Note that certain items are highlighted (here, underlined) to indicate that they represent constraints that can be relaxed or changed.

[0526] In one embodiment, special formatting / highlighting is used for paraphrased keywords. This is useful to facilitate training of users for interaction with the intelligent automated assistant 1002 by showing the user the words that are most important to the assistant 1002 and are more likely to be understood by the assistant 1002. The user will be more likely to use such words in the future.

[0527] In one embodiment, the paraphrases and prompts are generated using any relevant contextual data, such as any of the following data items, used alone or in combination:

[0528] Parse - a tree of ontology nodes associated with matching input tokens along with annotations and exceptions. For each node in the parse, this includes every token in the input that provides evidence for the node's metadata and / or the node's value. · Tasks, if known. ·Selection classes. · Location constraints independent of selection class. · Required parameters that are unknown for a given selection class (e.g. location is a required constraint for restaurants). The name of the named entity in the parse, which if present (e.g., a particular restaurant or movie name) is an instance of the selection class. Is this a follow-up improvement or the start of a conversation? (Reset starts a new conversation). What constraints of the parse are bound to the input values ​​that changed the constraint values? In other words, what constraints were changed by the latest input? · Is the choice class inferred or directly stated? · Sorted by quality, relevance or proximity? · How well did each specified constraint match? Are the improvements entered as text or clicked?

[0529] In one embodiment, the paraphrase algorithm takes into account the query, the domain model 1056, and the results of the service. The domain model 1056 contains features and classes that contain metadata used to determine how the text is generated. Examples of such metadata for paraphrase generation include:

[0530] IsConstraint={true|false} IsMultiValued={true|false} ·ConstraintType={EntityName,Location,Time,CategoryConstraint,AvailabilityConstraint,BinaryConstraint,SearchQualifier,GuessedQualifer} DisplayName=string DisplayTemplateSingular=string DisplayTemplatePlural=string ·GrammaticalRole={AdjectiveBeforeNoun,Noun,ThatClauseModifier}

[0531] For example, parsing includes these elements: Class:Restaurant IsConstraint=false DisplayTemplateSingular="restaurant" DisplayTemplatePlural="restaurants" Grammatical Role=Noun Feature: RestaurantName (e.g. "Il Fornaio") IsConstraint=true IsMultiValued=false ConstraintType=EntityName DisplayTemplateSingular="named$1" DisplayTemplatePlural="named$1" Grammatical Role=Noun Feature: RestaurantCuisine (e.g. "Chinese") IsConstraint=true IsMultiValued=false ConstraintType=CategoryConstraint GrammaticalRole=AdjectiveBeforeNoun Feature: RestaurantSubtype (e.g., "cafe") IsConstraint=true IsMultiValued=false ConstraintType=CategoryConstraint DisplayTemplateSingular="$1" DisplayTemplatePlural="$1s" GrammaticalRole=Noun Feature: RestaurantQualifiers (e.g., "romantic") IsConstraint=true IsMultiValued=true ConstraintType=SearchQualifier DisplayTemplateSingular="is described as $1" DisplayTemplatePlural="are described as$1" DisplayTemplateCompact="matching $1" GrammaticalRole=Noun Feature: FoodType (e.g., "burritos") IsConstraint=true IsMultiValued=false ConstraintType=SearchQualifier DisplayTemplateSingular="serves $1" DisplayTemplatePlural="serve $1" DisplayTemplateCompact="serving $1" Grammatical Role = That Clause Modifier Feature: Is Recommended (e.g., true) Is Constraint = true Is Multi-Valued = false Constraint Type = Binary Constraint Display Template Singular = "recommended" Display Template Plural = " recommended" Grammatical Role = Adjective Before Noun Feature: Restaurant Guessed Qualifiers (e.g., "spectacular") Is Constraint = true Is Multi-Valued = false Constraint Type = Guessed Qualifier Display Template Singular = "matches $1 in reviews" Display Template Plural = "matches $1 in reviews" Display Template Compact = "matching $1" Grammatical Role = That Clause Modifier

[0532] In one embodiment, the assistant 1002 can deal with unmatched input. To deal with such input, the domain model 1056 can provide a GuessedQualifier type node for each selected class, and a matching rule or a word that does not match if it is in the correct grammatical context. That is, the GuessedQualifiers are dealt with in the parser as a variety of nodes that indicate that there is a word that is not found in the ontology and is likely to be a qualifier for the selected class because it is in the correct context. The difference between GuessedQualifiers and SearchQualifiers is that the latter are matched against the lexicon of the ontology. This distinction allows the assistant 1002 to confidently identify intent with SearchQualifiers and may be more hesitant when echoing back GuessedQualifiers.

[0533] In one embodiment, the assistant 1002 performs the following steps when generating paraphrased text.

[0534] 1. If the task is unknown, the Assistant 1002 explains what can be done and asks for further input.

[0535] 2. If the task is a conditional selection task and the location is known, describe the domains that the Assistant 1002 knows about and prompt for the selection class.

[0536] 3. If the choice class is known but a required constraint is missing, prompt for that constraint (e.g. location is required for a conditional choice about restaurants).

[0537] 4.If the input contains the EntityName of the selected class, output "looking up" <name> in <location>.

[0538] 5. If this is the first question in the conversation, print a complex noun clause after "looking for" that describes the constraint.

[0539] 6. If this is a subsequent improvement step in the dialog If the user has completed the requested input, output "thanks" and rephrase successfully. (This will happen if there is a requested constraint that maps to the user input.) b. If the user has modified a constraint, check this and rephrase it successfully. c. If the user types the proper name of an instance of a selection class, handle this specially. d. If the user adds an unrecognized phrase, indicate how it should be combined into a search. If appropriate, the input is dispatched to the search service. e. If the user is adding a successful constraint, output "OK" and rephrase successfully.

[0540] 7. Use the same methods for paraphrasing to explain the results, but if the results are surprising or unexpected, use knowledge of the data and the service to explain the results, and request more input if the query is over- or under-constrained.

[0541] Grammar for constructing complex noun clauses In one embodiment, when rephrasing a conditional selection task query (734), the basis is a complex noun clause around a selection class that references the current constraint. Each constraint has a grammatical position based on its type. For example, in one embodiment, the assistant 1002 constructs a paraphrase such as:

[0542] Recommended romantic Italian Restaurants Nearby Menlo Park with open tables for 2 that serve osso buco and are described as " quiet "

[0543] The syntax for building this is as follows: <paraphrasenounclause> :== <binaryconstraint> <searchqualifier> <categoryconstraint> <itemnoun> <locationconstraint> <availabiltyconstraint> <adjectivalclauses> <binaryconstraint>:== A single adjective indicating the presence or absence of a BinaryConstraint (e.g., recommended (best), affordable (cheap)) You can list more than one with the same query.

[0544] <searchqualifier>:==One or more words that match the ontology for the selection class modifiers passed to the search engine service (e.g., romantic restaurants, funny movies) Used when ConstraintType=SearchQualifier.

[0545] <categoryconstraint>:==An adjective that identifies the genre, cuisine, or category of the selected class (e.g., Chinese restaurant or R-rated file) This is the last prefix adjective because it is the most specific. Use for features of type CategoryConstraint and GrammarticalRole=AdjectiveBeforeNoun.

[0546] <itemnoun> :== <namedentityphrase> | <selectionclass> | <selectionclasssubtype> Find the most accurate way to display the noun. NamedEntity <SubType<Class <selectionclass>:== a noun that is a common name for a selection class (e.g., restaurant, movie, place) <selectionclasssubtype>:== Noun clause that is a subtype of the selection class if known (e.g. diner, museum, store, bar for the selection class local businesses). Used for features with ConstraintType=CategoryConstraint and GrammarticalRole=AdjectiveBeforeNoun.

[0547] <namedentityphrase> :== <entityname>|"the"( <selectionclass> | <selectionclasssubtype> ) <entityname>:== the proper name of an instance of the selection class (e.g., "Il Fornaio", "Animal House", "Harry's Bar") <locationconstraint> :== <locationpreposition> <locationname> <locationpreposition>:=="in", "near" and "at", etc. <locationname>:== Data for a city, address, landmark, or GPS, such as "your current location" <availabilityconstraint>:== Availability constraints expressed as a prepositional phrase following a noun (e.g., "with open tables", "with seats available", "available online"). This comes immediately after the noun for emphasis.

[0548] <adjectivalclauses> :== <modiferverbphrase>|"that" <modiferverbphrase>"and" <modiferverbphrase> <modiferverbphrase>:= A verb phrase expressing a search keyword-style constraint on a selection class (e.g., "are described as quiet", "serve meat after 11", "restaurants that match 'tragically hip' in reviews", "contain violence", "movies that star Billy Bob Thornton"). If there is more than one, use a variant of "that...and" to contain all the constraints in a clause with GrammaticalRole=ThatClauseModifer. Use DisplayTemplatePlural to generate the "that" clause and put GuessedQualifier at the end. If there is only one such constraint, use a variant of DisplayTemplateCompact.

[0549] Table 2 provides some examples of paraphrases that are provided in response to a first input to a task according to one embodiment. TIFF2024122975000016.tif230158TIFF2024122975000017.tif238158TIFF2024122975000018.tif239158TIFF2024122975000019.tif246159TIFF2024122975000020.tif141157Table 2: Paraphrases in response to the first input

[0550] Improved places to eat queries Table 3 provides some examples of paraphrases in response to situations where the user's intent to find a place to eat is known, but they have not selected a specific place to eat. These include a list of restaurants that are presented and refined. TIFF2024122975000021.tif198169 Table 3: Rephrasing in response to improvements

[0551] Table 4 provides some examples of result summaries that are provided once the results are obtained. TIFF2024122975000022.tif212169TIFF2024122975000023.tif225169TIFF2024122975000024.tif211169TIFF2024122975000025.tif213169TIFF2024122975000026.tif242169TIFF2024122975000027.tif204169TIFF2024122975000028.tif138169Table 4: Summary of results

[0552] Table 5 provides some examples of prompts that are presented when a user clicks on an enabled link.

[0553] Prompt when user clicks on active link TIFF2024122975000029.tif240169TIFF2024122975000030.tif247169Table 5: Prompts when a user clicks on a valid link

[0554] Suggesting possible responses in a dialog In one embodiment, the assistant 1002 provides contextual suggestions: suggestions on how the assistant 1002 provides the user options moving forward from the current state of the dialog. The set of suggestions provided by the assistant 1002 depends on the context, and the number of suggestions provided depends on the medium and form factor. For example, in one embodiment, the most representative suggestions are provided in line in the dialog, an expanded list of suggestions ("more") is provided in a scrollable menu, and more suggestions can be obtained by typing a few characters and selecting from auto-complete options. Those skilled in the art will appreciate that other mechanisms may be used to provide suggestions.

[0555] In various embodiments, various suggestions are provided. Examples of the types of suggestions include:

[0556] Options to refine queries, including adding, removing or changing constraint values. Options to repair or recover from bad situations such as "not what I mean" or "start over" or "search the web". Disambiguation options. Audio interpretation. · Text interpretation, including spelling correction and semantic ambiguities. Context-specific commands like "show these on a map" or "send directions to my date" or "explain these results". · Providing suggested cross-selling such as next steps in meal or event planning examples. Option to reuse previous commands or parts of them.

[0557] In various embodiments, the context for determining the most relevant suggestions is derived, for example, from: Dialog state User state, including for example: ·Static characteristics (such as name, address, etc.) Dynamic characteristics (location, time, network speed) · History of interactions, including, for example: · Query History -Result History -Auto-completion of previously entered text

[0558] In various embodiments, suggestions may be generated by any number of mechanisms, such as: Rephrasing the domain, task or constraints based on the ontology model. · Prompts with auto-completion based on current domain and constraints. · Rephrasing ambiguous alternative interpretations. Alternative interpretation of voice-to-text -Handwrite based on special dialogue conditions.

[0559] According to one embodiment, suggestions are generated as actions for commands in the presence of completion. A command is an explicit regular expression of a request, and includes assumptions and inferences based on attempted interpretations of the user input. In situations where the user input is incomplete or ambiguous, suggestions are an attempt to help the user adjust the input to clarify the command.

[0560] In one embodiment, each command is an unconditional sentence that has some combination of the following:

[0561] Command verbs (commands such as "find" or "where is") Domain (a selection class such as "restaurants") · Restrictions such as location=Palo Alto and cuisine=Italian These parts of a command (verb, domain, constraints) correspond to nodes in the ontology.

[0562] A suggestion may be considered an action on a command, such as setting the command, modifying the command, or declaring the command relevant or irrelevant. Examples include:

[0563] Set the command verb or domain ("find restaurants") Change the verb of a command ("book it", "map it", "save it") Change your domain ("looking for a restaurant, not a local business") · Make it clear that constraints are relevant ("try refining by cuisine") Select the values ​​for the constraint (e.g. "Italian" and "French") Select both constraints and values ​​("near here", "tables for 2") · Indicate that the constraint value is incorrect ("not that Boston") · Indicate that the constraint is not relevant ("ignore the expense") · State your intention to change the constraint value ("try a different location") Change the constraint value ("Italian, not Chinese") ·Add to the constraint value ("and with a pool, too") Snap values ​​to grid ("Los Angeles, not los angeles") Start a new command and reuse the context ([after movies] "find nearby restaurants", "send directions to my friend") Start a command that is "meta" to the context ("explain these results" Start a new command and reset or ignore the context ("start over", "help with speech")

[0564] Suggestions may also include certain combinations of the above, for example: "The movie Milk is not the food item milk [served by restaurants]" ·「restaurants serving pizza,not just pizza joints」 ·"The place called Costco in Mountain View, I don't care whether you think it is a restaurant or local buisness" "Chinese in mountain view" [Recent Queries]

[0565] In one embodiment, the assistant 1002 includes a general mechanism for maintaining a list of suggestions ordered by relevance. The format in which the suggestions are provided varies depending on the current context, mode, and form factor of the device.

[0566] In one embodiment, the assistant 1002 determines which constraints to modify by considering any or all of the following factors: · Consider whether the constraint has a value. · Consider whether constraints are inferred or explicit. Consider the important points (suggestionIndex)

[0567] In one embodiment, the assistant 1002 determines the output format of the proposal. Examples of output formats include: Change domain If the autocomplete option is "find restaurants", try something different -Otherwise [inferred], "not looking for restaurants" Change name constraints · Provide an alternative, ambiguous interpretation when a name is inferred · Include the entity name of the current result in auto-completion Different names Consider that it was not a name reference (removing the constraint) - provide a category instead "not named" "Not in Berkeley" "some other day" It does not mean (using ambiguous alternatives) Inferred date: "any day, I don't need a reservation"

[0568] In one embodiment, the assistant 1002 attempts to resolve ambiguity through suggestions. For example, if the current set of interpretations of the user's intent is too ambiguous (310), suggestions are one way 322 to prompt for more information. In one embodiment, for a conditional selection task, the assistant 1002 removes common constraints from ambiguous interpretations of intent 290 and presents the differences in the interpretations to the user. For example, if the user input contains the word "cafe" and that word matches a restaurant name or type of restaurant, the assistant 1002 asks, "did you mean restaurants named 'cafe' or 'cafe restaurants'?"

[0569] In one embodiment, the assistant 1002 infers constraints under certain circumstances, i.e., for conditional selection tasks, not all constraints need to be explicitly stated in the user input. Some constraints are inferred from other information available in the active ontology 1050, short-term memory 1052, and / or other sources of information available to the assistant 1002. For example, these include:

[0570] Infer domain or location · Default assumptions like location -Low level matching constraints (fuzzy, less important places, etc.) Ambiguous criteria (matching constraint values ​​without prefixes (often ambiguous names vs. categories)) When the assistant 1002 infers constraint values, it offers those assumptions as suggestions that the user overrides. For example, the assistant tells the user, "I assumed you meant around here. Would you like to look at a different location?"

[0571] The present invention has been described in particular detail with reference to possible embodiments. Those skilled in the art will appreciate that the present invention may be practiced in other embodiments. First, the specific names of components, capitalization of terms, attributes, data structures, or any other programming or structural aspects are not essential or critical, and mechanisms for implementing the present invention or its features may have different names, forms, or protocols. Furthermore, the system may be implemented using a combination of hardware and software as described above, may be implemented entirely in hardware elements, or may be implemented entirely in software elements. Additionally, the particular division of functionality between the various system components described herein is merely exemplary and not required. Functions performed by a single system component may be performed by multiple components, and functions performed by multiple components may be performed by a single component.

[0572] In various embodiments, the invention is realized as a system or method that performs the techniques described above, either alone or in any combination. In another embodiment, the invention is realized as a computer program product that includes a non-transitory computer-readable storage medium and computer program code encoded on the medium for causing a processor of a computing device or other electronic device to perform the techniques described above.

[0573] References herein to "one embodiment" mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in at least one embodiment of the invention. The appearances of the phrase "in one embodiment" in various places in the specification do not necessarily all refer to the same embodiment.

[0574] Some portions above are presented in terms of algorithms and symbolic representations of operations on data bits within a memory of a computing device. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is generally conceived herein to be a self-consistent sequence of steps (instructions) leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, although not necessarily, these quantities take the form of electrical, magnetic or optical signals capable of being stored, transferred, combined, compared and otherwise manipulated. It is sometimes convenient, primarily for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. Further, without loss of generality, it is sometimes convenient to refer to particular arrangements of steps requiring physical manipulations of physical quantities as modules or coding devices.

[0575] It should be noted that all of these and similar terms are associated with the appropriate physical quantities and are merely convenient labels applied to those quantities. Unless otherwise indicated, as will be apparent from the following description, descriptions utilizing terms such as "processing" or "calculating" or "computing" or "displaying" or "determining" throughout the description are understood to refer to the actions and processing of a computer system or similar electronic computing module and / or device that manipulates and transforms data represented as physical (electronic) quantities within a computer system memory or registers, or other such information storage, transmission or display device.

[0576] Certain aspects of the present invention include the process steps and instructions described herein in the form of an algorithm that may be embodied in software, firmware and / or hardware, and when embodied in software, may be downloaded and reside therein and may be operated from a variety of platforms for use with a variety of operating systems.

[0577] The present invention further relates to an apparatus for performing the operations herein, which may be specially constructed for the required purposes or may comprise a general-purpose computing device selectively activated or reconfigured by a computer program stored on the general-purpose computing device. Such a computer program may be stored on a computer-readable storage medium such as, but not limited to, a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application specific integrated circuit (ASIC), or any type of medium suitable for storing electronic instructions and coupled to a computer system bus. Furthermore, the computing devices referred to herein may include a single processor or may be architectures employing a multiple processor design to increase computational capabilities.

[0578] The algorithms and displays presented herein are not inherently related to any particular computing device, virtualization system, or other apparatus. Various general-purpose systems may be used with programs in accordance with the techniques herein, or it may prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will be apparent from the description provided herein. Moreover, the present invention is not described with reference to any particular programming language. It will be understood that a variety of programming languages ​​may be used to implement the techniques of the present invention as described herein, and any references above to specific languages ​​are provided to disclose possible and best modes of the invention.

[0579] Thus, in various embodiments, the present invention is implemented as software, hardware and / or other elements controlling a computer system, computing device or other electronic device, or any combination or combinations thereof. Such electronic devices may include, for example, a processor, input devices (such as a keyboard, mouse, touchpad, trackpad, joystick, trackball, microphone and / or any combination thereof), output devices (such as a screen and / or speaker), memory, long-term storage (such as magnetic storage and / or optical storage), and / or network connectivity, in accordance with techniques well known in the art. Such electronic devices may be portable or non-portable. Examples of electronic devices that may be used to implement the present invention include mobile phones, personal digital assistants, smartphones, kiosks, desktop computers, laptop computers, tablet computers, consumer electronic devices, consumer entertainment devices, music players, cameras, televisions, set-top boxes, or electronic game units, etc. Electronic devices implementing the present invention may use any operating system, such as iOS or MacOS available from Apple Inc. of Cupertino, California, or any other operating system available for the device.

[0580] While the present invention has been described with respect to a limited number of embodiments, it will be understood by those skilled in the art having the benefit of the above description that other embodiments may be devised that do not depart from the scope of the invention as described herein. It should be noted that the language used in this specification has been selected primarily for purposes of readability and instruction, and has not been selected to illustrate or limit the subject matter of the invention. Accordingly, the disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the appended claims.< / modiferverbphrase> < / modiferverbphrase> < / modiferverbphrase> < / modiferverbphrase> < / adjectivalclauses> < / availabilityconstraint> < / locationname> < / locationpreposition> < / locationname> < / locationpreposition> < / locationconstraint> < / entityname> < / selectionclasssubtype> < / selectionclass> < / entityname> < / namedentityphrase> < / selectionclasssubtype> < / selectionclass> < / selectionclasssubtype> < / selectionclass> < / namedentityphrase> < / itemnoun> < / categoryconstraint> < / searchqualifier> < / binaryconstraint> < / adjectivalclauses> < / availabiltyconstraint> < / locationconstraint> < / itemnoun> < / categoryconstraint> < / searchqualifier> < / binaryconstraint> < / paraphrasenounclause>

Claims

1. 1. An automated assistant operating on a computing device, comprising: an input device for receiving user input; a language interpreter component that interprets the received user input to derive an expression of a user's intent; a dialog flow processor component that identifies at least one domain, at least one task, and at least one parameter for the task based at least in part on the derived expression of user intent; a service orchestration component that invokes at least one service to perform the identified task; an output processor component that renders an output based on data received from the at least one invoked service and further based at least in part on a current output mode; an output device for outputting the rendered output; An automated assistant comprising:

2. an active input derivation component that generates at least one prompt to actively derive input from a user; The automated assistant of claim 1 , wherein the output device outputs the generated at least one prompt.

3. the active input derivation component generates the at least one prompt to actively derive input from a user via a conversational interface; The automated assistant of claim 2 , wherein the input device receives the user input through the conversation interface.

4. The active input derivation component comprises: Get an ordered list of criteria, obtaining at least one constraint for at least one of the obtained criteria; generating a set of candidate items based on said at least one criterion and said at least one constraint; 3. The automated assistant of claim 2, further comprising: performing conditional selection to generate the at least one prompt.

5. an active ontology including a representation of concepts and relationships between concepts; The automated assistant of claim 2 , wherein the active input derivation component generates the at least one prompt using at least a subset of the representations in the active ontology.

6. the active input derivation component generates the at least one prompt to actively derive input from a user via a plurality of input modes; The automated assistant of claim 2 , wherein the input device receives the user input via the multiple input modes.

7. The plurality of input modes include: Typing and Voice input and Input provided via a graphical user interface; 7. The automated assistant of claim 6, further comprising at least one input selected from the group consisting of:

8. an event detector for detecting at least one event; 3. The automated assistant of claim 2, wherein the active input derivation component generates the at least one prompt in response to at least one detected event.

9. a task flow model component that identifies at least one task flow model representing steps for performing the identified at least one task; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the task flow model component.

10. an active ontology including a representation of concepts and relationships between concepts; The automated assistant of claim 9, wherein the at least one task flow model is organized according to the active ontology.

11. 10. The automated assistant of claim 9, wherein the dialog flow processor component performs conditional selection to identify the at least one task flow model.

12. a domain model component including at least one representation of a domain; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the domain model component.

13. Each representation of the domain is a representation of at least one concept; a representation of at least one entity; and a representation of at least one relationship; and 13. The automated assistant of claim 12, further comprising at least one representation selected from the group consisting of:

14. an active ontology including a representation of concepts and relationships between concepts; The automated assistant of claim 12, wherein at least one representation of the domain is organized according to the active ontology.

15. 13. The automated assistant of claim 12, wherein the domain model component uses modeling abstractions from conditional selection to define at least one representation of a domain.

16. a dialog flow model component including a representation of steps taken in a conversation between the assistant and a user; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the dialog flow model component.

17. a service capability model component including a representation of the functionality of the service; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the service function model component.

18. 20. The automated assistant of claim 17, wherein the service orchestration component selects at least one service to invoke based on at least one service model.

19. 20. The automated assistant of claim 17, wherein the service capability model component includes a declarative model of at least one service, and the service orchestration component dynamically selects from among available services according to the declarative model and further according to the derived expression of user intent.

20. a glossary database containing associations between words and concepts; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the glossary database.

21. a domain entity database including data describing domain entities; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the domain entity database to obtain data describing domain entities.

22. a short-term memory component that stores data describing at least one user interaction with the automated assistant; 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the short-term memory component to obtain data describing at least one user interaction with the automated assistant.

23. 23. The automated assistant of claim 22, wherein the language interpreter component interprets the received user input based at least in part on information from the short-term memory component.

24. Personal information associated with the user; information collected by said users; and a stored list of entities associated with the user; and a transaction history associated with the user; and and a long-term memory component for storing at least one piece of information selected from the group consisting of:

2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component interfaces with the long term memory component to retrieve stored data.

25. 25. The automated assistant of claim 24, wherein the language interpreter component interprets the received user input based at least in part on information from the long-term memory component.

26. 2. The automated assistant of claim 1, wherein the dialog flow processor component performs conditional selection to identify at least one task and at least one parameter for the task.

27. The dialog flow processor component includes: Get an ordered list of criteria, obtaining at least one constraint for at least one of the obtained criteria; identifying at least one task and at least one parameter for the task based on the at least one criterion and the at least one constraint; 27. The automated assistant of claim 26, characterized in that it performs conditional selection.

28. The automated assistant of claim 1 , wherein the service orchestration component performs conditional selection for invoking at least one service.

29. The service orchestration component comprises: Get an ordered list of criteria, obtaining at least one constraint for at least one of the obtained criteria; Invoking at least one service based on said at least one criterion and said at least one constraint; 30. The automated assistant of claim 28, further comprising:

30. 2. The automated assistant of claim 1, further comprising an active ontology that includes a representation of concepts and relationships between concepts.

31. 31. The automated assistant of claim 30, wherein the language interpreter component interprets the received user input using at least a subset of the representations in the active ontology.

32. 31. The automated assistant of claim 30, wherein the dialog flow processor component identifies the at least one domain, task, and parameter using at least a subset of the representations in the active ontology.

33. 31. The automated assistant of claim 30, wherein the service orchestration component invokes at least one service using at least a subset of the representations in the active ontology.

34. 31. The automated assistant of claim 30, wherein the output processor component renders output using at least a subset of the representations in the active ontology.

35. 31. The automated assistant of claim 30, wherein the active ontology is used as a semantic unifier for at least one database used by the automated assistant.

36. 31. The automated assistant of claim 30, wherein the active ontology is instantiated for each user session.

37. The active ontology is At least one domain model; At least one dialog flow model; At least one service model; At least one task model; 31. The automated assistant of claim 30, further comprising at least one model selected from the group consisting of:

38. an event monitor for receiving data regarding the event; 2. The automated assistant of claim 1, wherein the dialog flow processor component identifies at least one task and at least one parameter for the task based at least in part on received data regarding at least one event.

39. The input device is at least one microphone for receiving audio input; The assistant: The automated assistant of claim 1, further comprising a speech-to-text component that converts the received speech input into text.

40. The automated assistant of claim 1 , wherein the input device receives text input.

41. 2. The automated assistant of claim 1, wherein the language interpreter disambiguates between alternative parsing results for the received user input.

42. The automated assistant of claim 1 , wherein the service orchestration component invokes at least one service that performs an action on the computing device.

43. The automated assistant of claim 1 , wherein the service orchestration component invokes at least one service that performs an action over a computing network.

44. The automated assistant of claim 1 , wherein the service orchestration component invokes at least one service that performs an action over the Internet.

45. The automated assistant of claim 1 , wherein the service orchestration component receives results from the at least one invoked service and unifies the received results.

46. The automated assistant: A telephone set; A smartphone and A tablet computer and A laptop computer; Personal digital assistants and A desktop computer; Kiosk and A consumer electronic device; A consumer entertainment device; A music player and A camera and Television and An electronic game unit; A set-top box and 2. The automated assistant of claim 1, wherein the automated assistant operates on at least one device selected from the group consisting of:

47. the output processor component paraphrasing at least one representation of the user's intent; 2. The automated assistant of claim 1, wherein the output device outputs the paraphrased representation of the user's intent.

48. 2. The automated assistant of claim 1, wherein at least one of the language interpreter component, the dialog flow processor component, the service orchestration component, and the output processor component obtains parameters from a detected context of the computing device.

49. The detected context of the computing device includes: current software applications and their current state; Current location and current environmental conditions sensed via at least one environmental sensor; Usage history and information describing the user; 49. The automated assistant of claim 48, further comprising at least one piece of information selected from the group consisting of:

50. The automated assistant of claim 1 , wherein the output device outputs the rendered output using a combination of at least two output modes.

51. The at least two output modes are: Text output, Graphic output, Sound output and A synthetic speech output; A sampled audio output; Actuator output; 51. The automated assistant of claim 50, further comprising at least two outputs selected from the group consisting of:

52. 1. An automated assistant operating on a computing device, comprising: an input device for receiving user input; an active ontology that includes a representation of concepts and relationships between concepts; a language interpreter component that interprets the received user input to derive a representation of a user's intent, and obtains representations of concepts and relationships between concepts from the active ontology to derive a representation of the user's intent; an output processor component that renders an output based on the derived expression of user intent and based at least in part further on a current output mode; an output device for outputting the rendered output; An automated assistant comprising:

53. 53. The automated assistant of claim 52, wherein the language interpreter component parses the received user input based on representations of the concepts and relationships between concepts from the active ontology to derive a representation of the user's intent.

54. 53. The automated assistant of claim 52, wherein the language interpreter component disambiguates between at least two possible interpretations of the user input based on representations of the concepts and relationships between concepts from the active ontology.

55. an active input derivation component that generates at least one prompt to actively derive input from a user; 53. The automated assistant of claim 52, wherein the output device outputs the generated at least one prompt.

56. 56. The automated assistant of claim 55, wherein the active input derivation component generates the at least one prompt based on representations of concepts and relationships between concepts obtained from the active ontology.

57. 56. The automated assistant of claim 55, wherein the active input derivation component automatically completes the user input based on representations of concepts and relationships between concepts obtained from the active ontology.

58. a service orchestration component that invokes at least one service to perform a task based on the derived expression of user intent; 53. The automated assistant of claim 52, wherein the service orchestration component identifies services to be invoked based on the representation of concepts and relationships between concepts from the active ontology.

59. 1. An automated assistant operating on a computing device, comprising: an input device for receiving user input; a language interpreter component that interprets the received user input to derive an expression of a user's intent; an active input elicitation component that generates at least one prompt to actively elicit input from a user via a conversational interface and generates a restatement of the user's intent; an output processor component that summarizes a plurality of results based on the derived expression of user intent and generates an output representative of the summarized plurality of results based at least in part further on a current output mode; an output device for outputting the paraphrase of the user's intent and for outputting the generated output; An automated assistant comprising:

60. the input device includes an audio input device for receiving audio input; 60. The automated assistant of claim 59, wherein the output device further outputs text representing the voice input.

61. 1. A method for implementing an automated assistant in a computing device having at least one processor, comprising: Receiving user input at an input device; interpreting, in a processor, the received user input to derive a representation of a user's intent; identifying, at the processor, at least one domain, at least one task, and at least one parameter for the task based at least in part on the derived representation of user intent; invoking at least one service that performs the identified task on the processor; rendering, at the processor, an output based on data received from the at least one invoked service and further based at least in part on a current output mode; outputting the rendered output at an output device; and 23. A method comprising:

62. generating at least one prompt for actively eliciting user input at said processor; outputting the generated at least one prompt at the output device; 62. The method of claim 61 further comprising:

63. Receiving user input includes: prompting the user via a conversational interface; receiving user input via the conversational interface; 62. The method of claim 61, comprising:

64. paraphrasing at least one expression of the user's intent; and outputting, at the output device, the representation of the paraphrased user's intent; and 62. The method of claim 61 further comprising:

65. generating a plurality of alternative parsing results for the received user input; disambiguating between the alternative parsing results; and 62. The method of claim 61 further comprising:

66. The disambiguating between the alternative parsing results comprises: identifying at least two competing interpretations of the user input; outputting, at the output device, a prompt requesting additional information from the user; receiving additional information from the user at the input device; resolving the ambiguity based on the additional information; and 66. The method of claim 65, comprising:

67. Processing the received user input includes: data from a short-term memory describing at least one prior interaction in a current session; data from a long-term memory describing at least one characteristic of the user; 62. The method of claim 61, further comprising processing the user input using at least one data selected from the group consisting of:

68. 1. A computer program for implementing an automated assistant on a computing device having at least one processor, comprising: A non-transitory computer readable storage medium; At least one processor receiving a user input; interpreting the received user input to derive an expression of a user's intent; identifying at least one domain, at least one task, and at least one parameter for the task based at least in part on the derived expression of user intent; invoking at least one service to perform the identified task; rendering an output based on data received from the at least one invoked service and further based at least in part on a current output mode; outputting the rendered output; and a computer program code encoded on a medium for executing the program. A computer program comprising:

69. The at least one processor generating at least one prompt to actively elicit user input; outputting the generated at least one prompt; 69. A computer program product as claimed in claim 68, further comprising computer program code for causing the computer to execute:

70. The computer program code for receiving user input includes: prompting the user via a conversational interface; receiving user input via the conversational interface; 69. A computer program product as claimed in claim 68, comprising computer program code for causing the computer to execute the following:

71. The at least one processor paraphrasing at least one expression of the user's intent; outputting, at the output device, the representation of the paraphrased user's intent; 69. A computer program product as claimed in claim 68, further comprising computer program code for causing the computer to execute:

72. The at least one processor generating a plurality of alternative parsing results for the received user input; disambiguating between the alternative parsing results; 69. A computer program product as claimed in claim 68, further comprising computer program code for causing the computer to execute:

73. The computer program code for disambiguating between the alternative parsing results includes: identifying at least two competing interpretations of the user input; outputting, at the output device, a prompt requesting additional information from the user; receiving additional information from the user at the input device; resolving the ambiguity based on the additional information; and 73. A computer program product as claimed in claim 72, comprising computer program code for causing the computer to execute the following:

74. The computer program code for processing the received user input includes: data from a short-term memory describing at least one prior interaction in a current session; data from a long-term memory describing at least one characteristic of the user; 70. The computer program product of claim 68, further comprising computer program code for causing the computer to execute the step of processing said user input using at least one data selected from the group consisting of:

Citation Information

Patent Citations

  • Server providing navigation service, program memory medium used in the server, navigation system using the server and program memory medium used in car navigation device

    JP2003185452A

Cited By

  • Communication system and service processing method for the communication system

    JP2026167820A

  • COMMUNICATION SYSTEM AND SERVICE PROCESSING METHOD FOR COMMUNICATION SYSTEM

    JP7827339B1