A conversational natural language interface for data analysis.

A conversational natural language interface for data visualization integrated with messaging applications addresses the inefficiencies of traditional systems by allowing users to analyze data using natural language commands, enhancing user interaction and reducing cognitive burden.

JP7554288B2Active Publication Date: 2024-09-19TABLEAU SOFTWARE INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022572684
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-27
Filing Date
2021-07-08
Publication Date
2024-09-19
Estimated Expiration
2041-07-08

AI Technical Summary

Technical Problem

Existing data visualization systems require significant user training and are not seamlessly integrated with communication tools, leading to inefficiencies and increased cognitive burden in data analysis tasks.

Method used

A conversational natural language interface that integrates with messaging applications, allowing users to interact with data visualizations using natural language commands, enabling efficient data analysis within existing communication environments.

Benefits of technology

Facilitates easy and efficient data analysis by reducing cognitive burden and enhancing user interaction with data visualizations, while conserving power on battery-operated devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007554288000032
    Figure 0007554288000032
  • Figure 0007554288000007
    Figure 0007554288000007
  • Figure 0007554288000024
    Figure 0007554288000024
Patent Text Reader

Abstract

The computing system receives a first input from the messaging system identifying a data source. The computing system receives a second input from the messaging system specifying a natural language command related to the data source. The system converts the second input into a set of parameters for constructing a first data visualization from the data source. The system invokes one or more API functions provided by a data visualization server, and the computing system receives from the data visualization server a first data visualization including a first subset of data fields from the data source. The system generates a representation of the first data visualization and sends the representation to the messaging system, which in turn sends the representation to the electronic device for display on the device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Related Applications

[0001] This application is a continuation of U.S. Patent Application Publication No. 16 / 940,267, entitled "Conversational Natural Language Interfaces for Data Analysis," filed July 27, 2020, which is incorporated by reference in its entirety into this specification.

[0002] This application is related to the following applications, each of which is incorporated herein by reference in its entirety: (i) U.S. Patent Application Publication No. 15 / 486,265, entitled “Systems and Methods of Using Natural Language Processing for Visual Analysis of a Data Set,” filed April 12, 2017, now U.S. Patent No. 10,515,121; (ii) U.S. Patent Application Publication No. 15 / 804,991, entitled “Systems and Methods of Using Natural Language Processing for Visual Analysis of a Data Set,” filed on November 6, 2017; (iii) U.S. Patent Application Publication No. 15 / 978,062, entitled “Applying Natural Language Pragmatics in a Data Visualization User Interface,” filed on May 11, 2018; (iv) U.S. Patent Application Publication No. 15 / 978,066, entitled “Data Visualization User Interface Using Cohesion of Sequential Natural Language Commands,” filed on May 11, 2018; (v) U.S. Patent Application Publication No. 15 / 978,067, entitled “Updating Displayed Data Visualizations According to Identified Conversation Centers in Natural Language Commands,” filed on May 11, 2018; (vi) U.S. Patent Application Publication No. 16 / 219,406, entitled “Identifying Intent in Visual Analytical Conversations,” filed on December 13, 2018; (vii) U.S. Patent Application Publication No. 16 / 134,892, entitled “Analyzing Natural Language Expressions in a Data Visualization User Interface,” filed on September 18, 2018; (viii) U.S. Patent Application Publication No. 16 / 134,907, entitled “Natural Language Interface for Building Data Visualizations, Including Cascading Edits to Filter Expressions,” filed on September 18, 2018; (ix) U.S. Patent Application Publication No. 16 / 166,125, entitled “Determining Levels of Detail for Data Visualizations Using Natural Language Constructs,” filed on October 21, 2018; (x) U.S. Patent Application Publication No. 16 / 234,470, filed December 27, 2018, entitled “Analyzing Underspecified Natural Language Utterances in a Data Visualization User Interface”; (xi) U.S. Patent Application Publication No. 16 / 601,437, entitled “Incremental Updates to Natural Language Expressions in a Data Visualization User Interface,” filed on October 14, 2019; (xii) U.S. Patent Application Publication No. 16 / 680,431, entitled “Using Refinement Widgets for Data Fields Referenced by Natural Language Expressions in a Data Visualization User Interface,” filed on November 11, 2019; (xiii) U.S. Patent Application Publication No. 14 / 801,750, entitled “Systems and Methods for using Multiple Aggregation Levels in a Single Data Visualization,” filed on July 16, 2015; (xiv) U.S. Patent Application Publication No. 16 / 681,754, filed on November 12, 2019, entitled “Using Natural Language Expressions to Define Data Visualization Calculations that Span Across Multiple Rows of Data from a Database.”

[0003] Technical Field

[0003] The disclosed implementations relate generally to data visualization, and more specifically to systems, methods, and user interfaces for instant messaging systems that enable users to interact with data visualizations and analyze data using natural language expressions. [Background technology]

[0004] background

[0004] Data visualization applications allow users to visually understand data sets. Visual analysis of data sets, including distributions, trends, outliers, and other factors, is important for making business decisions. Some data sets are very large or complex and contain many data fields. Various tools, including dashboards with multiple data visualizations and natural language interfaces that aid visual analysis tasks, can be used to facilitate data understanding and analysis.

[0005] overview

[0005] Data analysis, including data visualization, is important for making business decisions. Using natural language expressions to generate data visualizations gives users greater accessibility to the features of the data visualization, including updating fields and changing how the data is filtered. Natural language interfaces allow users to create valuable data visualizations with little or no training. At the same time, in a typical workplace setting, users also rely on communication and collaboration tools, such as chat applications and / or customer relationship management (CRM) interfaces. Summary of the Invention

[0006]

[0006] There is a need for improved systems and methods that support data analysis in a user's existing environment and / or tools. This disclosure describes how a data visualization platform can be integrated with existing or future workplace tools (e.g., chat applications) to provide more efficient methods and interfaces for manipulating and generating graphical views of data using natural language input. Such methods and interfaces make data analysis as accessible as possible to users. Such methods and interfaces also reduce the cognitive burden on users, resulting in a more efficient human-machine interface. In battery-operated devices, such methods and interfaces conserve power and increase the time between charges. Such methods and interfaces can supplement or replace conventional methods for visualizing data. In light of the description and drawings herein, other implementations and advantages may become apparent to those skilled in the art.

[0007]

[0007] According to some implementations, the method is performed in a computer system communicatively connected to a messaging system and a data visualization server (e.g., a data visualization server system). The messaging system is communicatively connected to an electronic device. The computer system has one or more processors and a memory. The memory stores one or more programs configured to be executed by the one or more processors. The computer system receives a first input from the messaging system identifying a data source. The computer system receives a second input from the messaging system specifying a natural language command related to the data source. The computer system converts the second input into a set of parameters for constructing a first data visualization from the data source. The computer system invokes one or more API functions provided by the data visualization server. In response to invoking the API function, the computer system receives a first data visualization from the data visualization server, the first data visualization including a first subset of data fields from the data source. The computer system generates a first representation of the first data visualization. The computer system transmits the first representation to a messaging system, the messaging system configured to transmit the first representation to the electronic device for display on the electronic device.

[0008]

[0008] In some implementations, converting the second input into the set of parameters includes acquiring a dialogue state between the electronic device and the computer system. The dialogue state includes a plurality of characteristics of an analysis conversation between the electronic device and the computer system with respect to a data source. The computer system converts the second input into the set of parameters according to the acquired dialogue state. In some examples, prior to the first input, the computer system receives an initial input from a messaging system that initiates the analysis conversation between the electronic device and the computer system. The computer system stores a data entry for the analysis conversation that establishes the initial dialogue state.

[0009] In some examples, the computer system stores the first representation of the first data visualization and the set of parameters. In some examples, the set of parameters is stored as a representation in a predefined intermediate language (e.g., ArkLang).

[0010] In some implementations, the first and second inputs are received by calls to an API provided by the computer system. In some examples, the API calls are generated by a messaging system and represent interactions between the messaging system and the electronic device.

[0011]

[0011] In some implementations, the first representation of the first data visualization is an image file of the data visualization.

[0012] In some implementations, the method further includes generating and transmitting to the messaging system a plurality of candidate questions related to the data source after receiving a first input identifying the data source, and a second input including a user selection of one of the plurality of candidate questions.

[0013]

[0013] In some implementations, the first data visualization has a first data visualization type of a predetermined plurality of data visualization types. The computer system further receives a third input from the messaging system requesting a second data visualization type of the plurality of data visualization types. In response to the third input, the computer system invokes one or more of the API functions provided by the data visualization server to request the second data visualization type. The computer system receives a second data visualization from the data visualization server, the second data visualization having the second data visualization type. The second data visualization includes a first subset of data fields from the data source. The computer system generates a second representation of the second data visualization. The computer system sends the second representation to the messaging system.

[0014]

[0014] In some implementations, the method further includes receiving a third input from the messaging system specifying a request to share the first data visualization. In response to the third input, the computer system converts the third input into a command. The computer system sends the command to the data visualization server. The computer system receives a link to the first data visualization from the data visualization server. The computer system sends the link to the messaging system. The messaging system is configured to send the link to the electronic device for display on the electronic device. The electronic device is configured to retrieve the first data visualization upon user selection of the link and display the first data visualization via a browser of the electronic device.

[0015]

[0015] In some implementations, the first subset of data fields from the data source includes the first data field. The computer system receives a third input from the messaging system specifying replacing the selection of the first data field with a selection of the second data field (e.g., the second data field is not within the first subset of data fields). In response to the third input, the computer system invokes one or more of the API functions provided by the data visualization server to replace the selection of the first data field with the selection of the second data field. The computer system receives a second data visualization from the data visualization server, the second data visualization including the second subset of data fields. The second subset of data fields includes the second data field and does not include the first data field. The computer system generates a second representation of the second data visualization. The computer system sends the second representation to the messaging system.

[0016]

[0016] In some implementations, the first subset of data fields includes a first data field having a first plurality of distinct values. The method further includes receiving a third input from the messaging system specifying filtering of data rows from the data source into a subset of rows in which a data value of the first data field matches the first data value. In response to the third input, the computer system invokes one or more of the API functions provided by the data visualization server to filter the data rows into the subset of rows. The computer system receives a second data visualization from the data visualization server. The second data visualization includes data marks representing a first data value of the first data field, and omits data marks of the first plurality of values ​​corresponding to data values ​​other than the first data value. The computer system generates a second representation of the second data visualization. The computer system transmits the second representation to the messaging system.

[0017]

[0017] In some implementations, the first data visualization is an image.

[0018]

[0018] In some implementations, the first data visualization is a link to an image.

[0019]

[0019] In some implementations, sending the first representation to a messaging service includes sending a message having a message payload that includes a link to an image of the first data visualization.

[0020] In some implementations, a computer system includes one or more processors, a memory, and one or more programs stored in the memory. The programs are configured to be executed by the one or more processors. The one or more programs include instructions for performing any of the methods described herein.

[0021] In some implementations, a non-transitory computer-readable storage medium stores one or more programs configured to be executed by a computer system having one or more processors and a memory. The one or more programs include instructions for performing any of the methods described herein.

[0022]

[0022] Thus, a method, system and graphical user interface are disclosed that allows a user to easily interact with data visualizations and analyze the data using natural language expressions.

[0023] BRIEF DESCRIPTION OF THE DRAWINGS

[0023] For a better understanding of the above-described systems, methods and graphical user interfaces, as well as additional systems, methods and graphical user interfaces for providing data visualization analysis, reference should be made to the following description of implementations in conjunction with the following drawings, in which like reference numbers refer to corresponding parts throughout the drawings. [Brief description of the drawings]

[0024] [Figure 1] 1 illustrates an example of an environment in accordance with some implementations. [Figure 2A]

[0025] 1 illustrates an example sequence of operations according to some implementations. [Figure 2B]

[0025] An example of an operational sequence according to some implementations is shown. [Diagram 3]

[0026] FIG. 1 is a block diagram of a computer system according to some implementations. [Figure 4]

[0027] 1 is a block diagram of an electronic device according to some implementations. [Diagram 5]

[0028] FIG. 2 is a block diagram of a data visualization server according to some implementations. [Figure 6A]

[0029] 1 illustrates a graphical user interface for interactive data analysis according to some implementations. [Figure 6B] 1 illustrates a graphical user interface for interactive data analysis according to some implementations. [Figure 7A]

[0030] 1 illustrates a series of screenshots of an interaction between an electronic device and a computer system, according to some implementations. [Figure 7B] 1 shows a series of screenshots relating to interactions between an electronic device and a computer system, according to some implementations. [Figure 7C]1 shows a series of screenshots relating to interactions between an electronic device and a computer system, according to some implementations. [Figure 7D] 1 shows a series of screenshots relating to interactions between an electronic device and a computer system, according to some implementations. [Figure 7E] 1 shows a series of screenshots relating to interactions between an electronic device and a computer system, according to some implementations. [Figure 7F] 1 shows a series of screenshots relating to interactions between an electronic device and a computer system, according to some implementations. [Figure 7G] 1 shows a series of screenshots relating to interactions between an electronic device and a computer system, according to some implementations. [Figure 8A]

[0031] 1 illustrates a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8B] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8C] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8D] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8E] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8F] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8G]1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8H] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8I] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8J] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8K] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8L] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8M] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8N] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8O] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8P] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8Q]1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8R] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8S] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8T] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8U] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8V] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8W] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8X] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8Y] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8Z] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8AA]1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8AB] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8AC] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8A-D] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8AE] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8AF] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 8A-G] 1 shows a series of screenshots regarding interactions between an electronic device and a computer system based on a data source, according to some implementations. [Figure 9A]

[0032] 1 shows a series of screenshots for interacting with a data visualization using a web browser of an electronic device, according to some implementations. [Figure 9B]

[0032] A series of screenshots are shown for interacting with data visualization using a web browser on an electronic device, according to some implementations. [Figure 9C]

[0032] A series of screenshots are shown for interacting with data visualization using a web browser on an electronic device, according to some implementations. [Figure 9D]

[0032] A series of screenshots are shown for interacting with data visualization using a web browser on an electronic device, according to some implementations. [Figure 9E]

[0032] A series of screenshots are shown for interacting with data visualization using a web browser on an electronic device, according to some implementations. [Figure 9F]

[0032] A series of screenshots are shown for interacting with data visualization using a web browser on an electronic device, according to some implementations. [Figure 10A]

[0033] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. [Figure 10B] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. [Figure 10C] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. [Figure 10D] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. [Figure 10E] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. [Figure 10F] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. [Figure 10G] 1 illustrates a flowchart of a method for a conversational natural language interface for data analysis, according to some implementations. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025]

[0034] Reference will now be made to implementations, examples of which are illustrated in the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art that the present invention may be practiced without the need for these specific details.

[0026] Implementation Description

[0035] Some methods and apparatus disclosed herein improve data visualization methods and systems by integrating a data visualization platform with a user's messaging (e.g., instant messaging or chat) application with a computer system that interfaces between the data visualization platform and the messaging application. A user interacts with the computer system by exchanging instant messages with the computer system using the messaging application. The computer system translates natural language input by the user and queries the data visualization platform, which creates data visualizations for display on the messaging application's interface. Some methods and apparatus disclosed herein also improve data visualization methods and systems by automatically updating existing data visualizations based on natural language input by the user.

[0027] environment

[0036] 1 illustrates an example of an environment 100 according to some implementations. The environment 100 includes one or more electronic devices 102. In some implementations, the electronic device 102 includes a display. For example, the electronic device 102 can be a desktop computer with a display, a laptop computer with a display, a mobile phone, a tablet, a wearable device (e.g., a watch), a display support device, and / or other device with a display screen.

[0028]

[0037] In some implementations, the electronic device 102 may include and execute one or more applications. In some implementations, the applications include a messaging application that enables the electronic device 102 to send and receive messages (e.g., instant messages, chat messages, audio and / or video messages), share files, and / or stream audio and / or video over a communications network 120 (e.g., a local area network and / or the Internet) with other electronic devices that also include similar messaging applications. In some implementations, the messaging application may include one or more of the Slack application 106, customer relationship management (CRM) application 110, and / or chat application 114 shown in FIG. 1. In some implementations, the messaging application may include applications such as Google™ Chat, Microsoft™ Teams, and / or messaging applications from other providers that enable sharing of content and files.

[0029]

[0038] In some implementations, electronic device 102 running a messaging application is communicatively connected to a server of the messaging application. In FIG. 1, electronic device 102-1 is communicatively connected to a Slack server 108 (e.g., a Slack server system). Slack application 106 transmits and receives interactions (e.g., messages, chats, commands, requests, and / or files) between electronic device 102-1 and Slack server 108. Similarly, electronic device 102-2 including CRM application 110 is communicatively connected to CRM server 112, and electronic device 102-3 including chat application 114 is communicatively connected to chat server 116. In some implementations, each of Slack server 108, CRM server 112, and chat server 116 is also known as a "messaging server." In other words, the messaging server is the server of the messaging application.

[0030]

[0039] In some implementations, the messaging server is also communicatively connected to a corresponding messaging service. For example, FIG. 1 shows that the Slack server 108 is communicatively connected to the Slack service 130 via a communication network 120. The communication network 120 also connects the CRM server 112 to the CRM service 132 and the chat server 116 to the chat service 134. In some implementations, each of the Slack service 130, the CRM service 132, and the chat service 134 is also known as a "messaging service." In some implementations, the messaging service may be part of a system that provides the messaging service. In some implementations, the functionality of the messaging service may be combined with the functionality of a corresponding messaging server to form a messaging system.

[0031]

[0040] In some implementations, an electronic device 102 running a messaging application can interact directly with a messaging service (eg, bypassing a messaging server).

[0032]

[0041] 1, each of the messaging services is communicatively connected to a computer system 140 that includes a chat application programming interface (API) 142 and a conversation store 144 (e.g., a database). The computer system 140 is also communicatively connected to a data visualization server 160 (e.g., a data visualization server system) that includes a natural language processing interface 162, a data visualization platform 164, and one or more data sources 166. The functionality of these components is discussed in more detail with respect to FIGS. 2A, 2B, 3, and 5.

[0033]

[0042] In some implementations, the computer system 140 is part of (integrated with) a data visualization server 160.

[0034]

[0043] 1, in some implementations, electronic device 102 can interact directly with data visualization server 160 (e.g., by bypassing messaging servers, messaging services, and computer system 140). As described in more detail with respect to FIGS. 2B, 8AF, 8AG, and 9, in some implementations, direct communication is enabled by a web browser (e.g., web browser 428, FIG. 4) running on electronic device 102 that directs electronic device 102 to a web interface (e.g., data visualization web application 522, FIG. 5) of data visualization server 160.

[0035]

[0044] According to some implementations of the present disclosure, the computer system 140 (e.g., chat API 142) interfaces between the data visualization server 160 and a messaging application running on the electronic device 102 to provide visual analytics to a user of the electronic device 102 via the messaging application. At a high level, the computer system 140 receives events (e.g., interactions) from a messaging system (e.g., a messaging service). In some implementations, the events include user interactions with the messaging application and include natural language expressions. The computer system 140 (e.g., chat API 142) translates the events and issues one or more queries to the data visualization server 160. The natural language processing interface 162 interprets the natural language expressions. The data visualization platform 162 identifies data sources and generates data visualizations (e.g., based on the interpretations from the natural language processing interface 162). The data visualization server 160 returns the data visualization to the computer system 140 in response to one or more queries. The computer system 140 sends the data visualization to the electronic device 102 (e.g., via a messaging system) for display within a messaging application. In some implementations, the computer system 140 generates one or more representations of the data visualization and sends the representations to the electronic device 102 for display within the messaging application. The computer system 140 further stores the interaction state between the messaging service (e.g., the electronic device 102) and the data visualization server 160.

[0036] Process Flow

[0045] 2A and 2B show process flow between an electronic device 102, a messaging system (eg, a messaging service and / or a combination messaging server and service system), a computer system 140, and a data visualization server 160 according to some implementations.

[0037]

[0046] FIG. 2A illustrates an exemplary process flow 200 during the initialization and data source selection phase.

[0038]

[0047] In some implementations, a user of the electronic device 102 enters (202) an initial setting event using a messaging application (e.g., messaging application 430 of FIG. 4, Slack application 106, CRM application 110, and / or chat application 114 of FIG. 1). In some implementations, the initial setting event initiates an interaction with the data visualization server 160 for data visualization analysis on the messaging application. In some implementations, the initial setting event includes an initial conversational message from the user and includes a natural language expression. For example, in FIG. 6A, the user enters "Hello" into the user interface 700 of the messaging application.

[0039]

[0048] In response to the input, the electronic device 102 sends (204) an initialization event to a messaging service (eg, the Slack service 130, the CRM service 132, and / or the chat service 134).

[0040]

[0049] The messaging service processes the initialization event (206). In some implementations, the messaging service converts the event into one or more API calls (208). The messaging service sends the API calls to the computer system 140 (210).

[0041]

[0050] The computer system 140 (eg, chat API 142) translates (212) the further API call into an appropriate action.

[0042]

[0051] The computer system 140 (e.g., chat API 142) generates 214 an initialization response. The computer system 140 also stores 216 a state of the interaction (e.g., an interaction between the computer system 140 and the electronic device 102) in a database (e.g., conversation storage 144). In some implementations, storing the state of the interaction includes creating a data entry in the database that represents the initialization event.

[0043]

[0052] The computer system 140 (e.g., chat API 142) returns (218A) an initialization response to the messaging service, which transmits (218B) the initialization response (e.g., via a messaging server) to the electronic device 102 for display (220) on the electronic device 102. This is shown in Figure 7C. As also shown in Figure 7C, in some implementations, the initialization response includes an option for the user to select a data source from one or more data sources (e.g., data source 166).

[0044]

[0053] 7D, the electronic device 102 receives user input identifying (e.g., selecting) a data source (222). The electronic device 102 transmits (224) the user input to a messaging service.

[0045]

[0054] The messaging service processes the user input (226). In some implementations, the messaging service converts the user input into one or more API calls (228). The messaging service sends the API calls (230) to a computer system 140 (e.g., a chat API 142).

[0046]

[0055] A computer system 140 (eg, chat API 142) translates 232 the API calls into actions.

[0047]

[0056] The computer system 140 (e.g., chat API 142) issues (233) one or more queries for actions to the data visualization server 160 (e.g., data visualization platform 164).

[0048]

[0057] The data visualization platform 164 identifies (234) the data sources and obtains (234) information (e.g., metadata) about the identified data sources.

[0049]

[0058] The data visualization platform 164 returns (236) information about the data source (eg, identification and / or metadata of the data source) to the computer system 140.

[0050]

[0059] The computer system 140 stores 238 the identification and / or metadata of the data source in the conversation store 144 .

[0051]

[0060] FIG. 2B illustrates an example process flow 240 for interacting with a data source that has been identified by the electronic device 102 according to some implementations.

[0052]

[0061] The electronic device 102 receives 242 user input (e.g., an interaction event) that includes an interaction with a data source.

[0053]

[0062] In some implementations, the user input includes a natural language expression (e.g., an input or command). In some implementations, interactions with the data source include asking one or more candidate questions about the data source (e.g., FIG. 7F), generating a data visualization using data fields of the data source (e.g., FIG. 7G), querying data fields of the data source (e.g., FIGS. 8I-8O), changing the data visualization type (e.g., FIG. 8D), modifying aggregations and / or groupings in the data visualization (e.g., FIG. 8AF), adding, removing, and / or replacing filters in the data visualization (e.g., FIGS. 8A-8C), adding, removing, and / or replacing data fields (e.g., measurement and / or dimension data fields) in the data visualization, initiating a new query about the data source (e.g., “clear” shown in FIG. 8G), displaying alternative interpretations about the data source (e.g., FIG. 8P), and sharing the data visualization (e.g., FIG. 8AG).

[0054]

[0063] Some implementations may be implemented using techniques disclosed in U.S. Patent Application Publication No. 15 / 486,265, filed April 12, 2017, entitled "Systems and Methods of Using Natural Language Processing for Visual Analysis of a Data Set," U.S. Patent Application Publication No. 15 / 804,991, filed November 6, 2017, entitled "Systems and Methods of Using Natural Language Processing for Visual Analysis of a Data Set," U.S. Patent Application Publication No. 16 / 234,470, filed December 27, 2018, entitled "Analyzing Underspecified Natural Language Utterances in a Data Visualization User Interface," U.S. Patent Application Publication No. 16 / 601,437, filed October 14, 2019, entitled "Incremental Updates to Natural Language Expressions in a Data Visualization User Interface," U.S. Patent Application Publication No. 16 / 601,437, filed November 11, 2019, entitled "Using Refinement As described in U.S. Patent Application Publication No. 16 / 680,431, entitled "Widgets for Data Fields Referenced by Natural Language Expressions in a Data Visualization User Interface," and U.S. Patent Application Publication No. 14 / 801,750, filed July 16, 2015, entitled "Systems and Methods for using Multiple Aggregation Levels in a Single Data Visualization," interactions with data sources include interactions possible using a data visualization application running on a computing device.

[0055]

[0064] The electronic device 102 sends (244) the interaction event to the messaging service.

[0056]

[0065] In some implementations, the messaging service converts the interaction events into one or more API calls (246). The messaging service sends the API calls (248) to the computer system 140 (e.g., the chat API 142).

[0057]

[0066] The chat API 142 translates (250) one or more API calls into actions.

[0058]

[0067] The chat API 142 issues one or more queries for the action to the data visualization system 160 (e.g., the natural language processing interface 162 and the data visualization platform 164) (252). In some implementations, issuing the one or more queries includes invoking an API function provided by the data visualization server 160.

[0059]

[0068] The natural language processing interface 162 interprets the natural language input in the dialogue events (256). In some implementations, to resolve the natural language input, the natural language processing interface 162 uses syntactic and semantic constraints imposed by an intermediate language (e.g., ArkLang). Further details of the intermediate language can be found in U.S. Patent Application Publication No. 16 / 166,125, entitled “Determining Levels of Detail for Data Visualizations Using Natural Language Constructs,” filed October 21, 2018, and U.S. Patent Application Publication No. 16 / 681,754, entitled “Using Natural Language Expressions to Define Data Visualization Calculations that Span Across Multiple Rows of Data from a Database,” filed November 12, 2019, each of which is incorporated herein by reference in its entirety.

[0060]

[0069] In some implementations, the natural language processing interface 162 also generates an intermediate representation from the natural language input. In some implementations, the intermediate representation includes a canonical form in the intermediate language. The intermediate language converts the natural language input into a query that is processed by the data visualization platform 164 to generate the data visualization.

[0061]

[0070] The natural language processing interface 162 returns a natural language interpretation (258). In some implementations, the natural language processing interface 162 also converts the natural language input (e.g., using an intermediate representation) into a query that is processed by the data visualization platform 164 to generate a data visualization.

[0062]

[0071] The data visualization platform 164 queries the data sources based on the interpretation (260). The data visualization platform 164 generates a data visualization (262).

[0063]

[0072] In some implementations, the data visualization platform 164 returns (264) the generated data visualization to the computer system 140, which then transmits the generated data visualization to the electronic device 102 (e.g., via a messaging service) for display on the electronic device 102.

[0064]

[0073] In some implementations, after generating the data visualization, the data visualization server 160 generates a representation of the data visualization (e.g., using the visualization representation generation module 536 shown in FIG. 5 ). The data visualization server 160 returns the representation to the computer system 140, which sends the representation to the electronic device 102 by way of a messaging service.

[0065]

[0074] In some implementations, the representation of the data visualization includes an image of the data visualization. In some implementations, the representation is an image file of the data visualization (e.g., the image file is a .png, .tiff, or .jpg file). In some implementations, the representation of the data visualization includes a link to the image of the data visualization.

[0066]

[0075] In some implementations, sending the representation includes sending a message with a message payload that includes an image of the data visualization or a link to an image of the data visualization.

[0067]

[0076] In some implementations, the data visualization platform 164 returns (264) the generated data visualization to the computer system 140. The computer system 140 generates (266) a representation of the data visualization (e.g., using the visualization representation generator 346). The computer system 140 returns (270A) the representation to the messaging service, which in turn transmits (270B) the representation to the electronic device 102 for display (272) on the electronic device 102.

[0068]

[0077] In some implementations, the computer system 140 also stores the interaction state 268. In some implementations, such storage includes storing the data visualization, a representation of the data visualization, data fields used to generate the visualization, intermediate representations, filters, aggregations, groupings, and / or aggregated data fields.

[0069]

[0078] 8AF and 8AG, the user input at step 242 includes a request to share the data visualization. In this example, the data visualization platform 164 generates a link to the data visualization (274) (e.g., in addition to generating the data visualization itself). The data visualization platform 164 returns (e.g., transmits) (276A) the link of the visualization to the computer system 140, which transmits (276C) the link (e.g., via a messaging service (276B)) to the electronic device 102 for display (280) on the electronic device 102.

[0070]

[0079] In some implementations, the electronic device 102 receives user input including a selection (282) of a link. In response to the user selection, the electronic device 102 retrieves (284) the data visualization via a browser (e.g., web browser 428, FIG. 4) on the electronic device 102. In this example, the user interacts directly with the data visualization platform 164 via the browser. The data visualization platform 164 can generate (286) an updated data visualization based on the user interaction. The data visualization platform returns (288) the updated data visualization for display (290) on the browser of the electronic device 102.

[0071] architecture

[0080] This section describes an example architecture of the computer system 140, the electronic device 102, and the data visualization server 160. In some implementations, the elements described in this architecture relate to the elements and flows of FIGS.

[0072]

[0081] FIG. 3 is a block diagram illustrating an example of a computer system 140 in accordance with some implementations.

[0073]

[0082] Computer system 140 typically includes one or more processing units (processors or cores, CPUs) 302, one or more network or other communication interfaces 304, memory 314, and one or more communication buses 312 for interconnecting these components (sometimes referred to as a chipset). Computer system 140 may optionally include a user interface 306. User interface 306 may include a display 308 and one or more input devices 310, such as a keyboard, a mouse, and / or other input buttons.

[0074]

[0083] Memory 314 includes high speed random access memory such as DRAM, SRAM, DDR RAM or other random access solid state memory devices, and optionally includes non-volatile memory such as one or more magnetic disk storage devices, one or more optical disk storage devices, one or more flash memory devices or other non-volatile solid state storage devices. Memory 314 optionally includes one or more storage devices located remotely from the one or more processing devices. Memory 314, or alternatively the non-volatile memory within memory 314, includes a non-transitory computer readable storage medium. In some implementations, memory 314 or the non-transitory computer readable storage medium of memory 314 stores the following programs, modules and data structures, or a subset or extension thereof: An operating system 316 that contains procedures for handling various basic system services and for performing hardware-dependent tasks; a network communications module 318 for connecting the computer system 140 to other devices (e.g., messaging services such as the Slack service 130, the CRM service 130, the chat service 134, and the data visualization server 160) via one or more network interfaces 304 (wired or wireless) and a communications network 120, such as the Internet, other wide area networks, local area networks, metropolitan area networks, etc.; · A Chat API 142 for receiving events (e.g., API calls) from one or more messaging services described in Figures 1 and 2. In some implementations, the Chat API 142 manages the state of the conversation, translates the API calls into appropriate actions, and takes one or more actions (e.g., the "Clear" and "Cancel" actions described in Figure 8). In some implementations, the Chat API 142 supports the list of actions described in Appendix A. A messaging interface 320 for communication (e.g., interactions or events) between the computer system 140 and a messaging service. In some implementations, the messaging interface 320 includes: a Slack interface 322 for interacting with the Slack service 130; a CRM interface 324 for interacting with the CRM service 132; and Chat interface 326 for interacting with the chat service 134 Includes. Conversation store 144 for storing state and data of interactions between computer system 140 (e.g., chat API 142) and messaging services. In some implementations, the data is grouped by type of messaging service, and within each messaging service, the data is further organized by electronic device (e.g., electronic device 102). In some implementations, conversation store 144 includes: o Slack data 328, which includes data from an interaction between the chat API 142 and the electronic device 102 running the Slack application 106. In the example of FIG. 3, the slack data 328 for the electronic device 102-1 includes an interaction state 330 between the chat API 140 and the electronic device 102-1. The interaction state 330 further includes an identification (331) of one or more data sources (e.g., data sources identified by the electronic device 102), an identification (332) of data fields within the data sources, and a user query 333. In some implementations, this includes data fields that have been identified by the electronic device 102 and the data visualization, a natural language interpretation 334 (e.g., from the natural language processing interface 162), data fields used to generate the representation including the data visualization 336 and / or images 338 and links 340. In some implementations, the natural language interpretation 334 includes an intermediate representation generated by the natural language processing interface 162 using an intermediate language (e.g., ArkLang). In some implementations where there are multiple interactions between the chat API 142 and the electronic device 102, the slack data 328 may be further grouped according to the date and / or time of the interaction. ○ CRM data 342, which includes data from interactions between the chat API 142 and one or more electronic devices 102 running the CRM application 110. In some implementations, the CRM data 342 includes data structures similar to those of the Slack data 328. Chat data 344, which includes data from interactions between the chat API 142 and one or more electronic devices 102 running the chat application 114. In some implementations, the chat data 344 includes data structures similar to those of the slack data 328. A visualization representation generator 346 that generates a representation of the data visualization received from the data visualization server 160 and sends the generated representation to a messaging system for display on an electronic device. In some implementations, the representation of the data visualization is an image file of the data visualization (e.g., the image file is a .png, .tiff, or .jpg file). In some implementations, the representation of the data visualization includes a link to the image. In some implementations, the representation of the data visualization is a link (e.g., a URL link) to the data visualization.

[0075]

[0084] Each of the above-identified elements can be stored in one or more of the memory devices mentioned above and corresponds to a set of instructions for performing the functions described above. The above-identified modules or programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures, modules, or data structures, and thus various subsets of these modules can be combined or otherwise reconfigured in various implementations. In some implementations, memory 314 optionally stores a subset of the above-identified modules and data structures. Additionally, memory 314 optionally stores additional modules and data structures not described above.

[0076]

[0085] 3 illustrates a computer system 140, which is intended more as a functional description of the various features that may be present, rather than a structural schematic of the implementations described herein. In practice, items shown separately may be combined and some items may be separated, as will be recognized by those skilled in the art.

[0077]

[0086] 4 is a block diagram illustrating an example of an electronic device 102 according to some implementations. Various examples of electronic device 102 include desktop computers, laptop computers, tablet computers, mobile phones, display assist devices, wearable devices, and other computing devices having a display and a processor capable of running applications (e.g., messaging applications). An electronic device typically includes one or more processing units (processors or cores) 402, one or more network or other communication interfaces 404, memory 406, and one or more communication buses 408 for interconnecting those components. The communication bus 408 optionally includes circuitry (sometimes referred to as a chipset) that interconnects and controls communication between system components.

[0078]

[0087] The electronic device 102 includes a user interface 410. The user interface 410 typically includes a display device 412 (e.g., a display screen). In some implementations, the electronic device 102 includes input devices such as a keyboard, a mouse, and / or other input buttons 416. Alternatively or in addition, in some implementations, the display device 412 includes a touch-sensitive surface 414, in which case the display device 412 is a touch-sensitive display. In some implementations, the touch-sensitive surface 414 is configured to detect various swipe gestures (e.g., vertical and / or horizontal continuous gestures) and / or other gestures (e.g., single / double taps). In electronic devices with a touch-sensitive display 414, a physical keyboard is optional (e.g., a soft keyboard may be displayed when keyboard input is required). The user interface 410 also includes an audio output device 418, such as a speaker or an audio output connection connected to a speaker, earphones, or headphones. Additionally, some electronic devices 102 use a microphone and voice recognition to supplement or replace a keyboard. In some implementations, the electronic device 102 includes an audio input device 420 (e.g., a microphone) for capturing audio (e.g., a user's speech).

[0079]

[0088] In some implementations, memory 406 includes high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid-state memory devices. In some implementations, memory 406 includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. In some implementations, memory 406 includes one or more storage devices located remotely from processor 202. Memory 406, or alternatively a non-volatile memory device within memory 406, includes a non-transitory computer-readable storage medium. In some implementations, memory 406 or the computer-readable storage medium of memory 406 stores the following programs, modules, and data structures, or a subset or extension thereof: An operating system 422 that contains procedures for handling various basic system services and for performing hardware-dependent tasks; A communications module 424 used to connect the electronic device 102 to other computers and devices via one or more communications interfaces 404 (wired or wireless), such as the Internet, other wide area networks, local area networks, metropolitan area networks, etc.; · An audio input module 425 (e.g., a microphone module) for processing audio captured by the audio input device 420. The captured audio may be transmitted to a remote server and / or processed by an application executing on the computing device 200 (e.g., the Slack application 106). 426 applications, including: ○ A web browser 428 (or other application capable of displaying web pages) that allows the user to communicate with remote computers or devices over the network; and o Messaging application 430 (e.g., Slack application 106, CRM application 110, and / or chat application 114 of FIG. 1, and / or any messaging application that enables a user of electronic device 102 to communicate with other users via direct messaging, file sharing, live streaming, and / or participation in chat rooms (e.g., channels) organized by topics and / or groups). In some implementations, messaging application 430 executes as a standalone application (e.g., a mobile application designed to execute on a mobile device). In some implementations, messaging application 430 executes within web browser 428 or another application using web pages provided by a web server.

[0080]

[0089] Each of the above-identified executable modules, applications, or sets of procedures can be stored in one or more of the memory devices and correspond to a set of instructions for performing the functions described above. The above-identified modules or programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures, or modules, and thus, various subsets of these modules can be combined or otherwise reconfigured in various implementations. In some implementations, memory 206 stores a subset of the above-identified modules and data structures. Additionally, memory 206 may store additional modules or data structures not described above.

[0081]

[0090] 4 illustrates electronic device 102, which is intended more as a functional description of the various features that may be present, rather than a structural schematic of the implementations described herein, in which, in practice, items shown separately may be combined and some items may be separated, as will be recognized by those skilled in the art.

[0082]

[0091] 5 is a block diagram illustrating an example of a data visualization server 160 according to some implementations. The data visualization server 160 may host one or more databases / data sources 166 or may provide various executable applications or modules. The data visualization server 160 typically includes one or more processing units / cores (CPUs) 502, one or more network interfaces 504, memory 514, and one or more communication buses 512 for interconnecting those components. In some implementations, the data visualization server 160 includes a user interface 506 including a display device 508 and one or more input devices 510 such as a keyboard and mouse. In some implementations, the communication bus 512 may include circuitry (sometimes referred to as a chipset) that interconnects and controls communication between system components.

[0083]

[0092] In some implementations, memory 514 includes high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid-state memory devices, and may include non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. In some implementations, memory 514 includes one or more storage devices located remotely from CPU 502. Memory 514, or alternatively a non-volatile memory device within memory 514, includes a non-transitory computer-readable storage medium.

[0084]

[0093] In some implementations, memory 514 or the computer-readable storage medium of memory 514 stores the following programs, modules and data structures, or a subset thereof: An operating system 516 that contains procedures for handling various basic system services and for performing hardware-dependent tasks; one or more communication network interfaces 504 (wired or wireless) and a network communication module 518 used to connect the data visualization server 160 to other computers via one or more communication networks, such as the Internet, other wide area networks, local area networks, metropolitan area networks, etc.; A web server 520 (such as an HTTP server) that receives web requests from users and responds by providing responsive web pages or other resources; A data visualization web application 522 that may be downloaded and executed by the web browser 428 on the user's electronic device 102. Generally, the data visualization web application 522 has the same functionality as a desktop data visualization application (e.g., data visualization application 600 in FIG. 6A and FIG. 6B and described in the patent applications incorporated by reference herein), but provides the flexibility of access from any device in any location with network connectivity and does not require installation and maintenance. In some implementations, the data visualization web application 522 includes various software modules for performing specific tasks. In some implementations, the web application 522 includes a user interface module 524 that provides a user interface for all aspects of the web application 522. In some implementations, the web application 522 includes a data acquisition module 526 that constructs and executes queries to acquire data from one or more data sources 542. The data sources 542 may be stored locally on the data visualization server 160 or in an external database. In some implementations, data from two or more data sources can be blended. In some implementations, the data acquisition module 526 uses the visual specification 538 to construct a query. In some implementations, the data visualization web application 522 also includes a data visualization compiler and a data visualization virtual machine (not shown). A natural language processing interface 162 that receives and parses queries provided by the computer system 140. In some implementations, the queries include natural language input provided by a user of the electronic device 102 (e.g., via the Slack application 106). In some implementations, the natural language processing interface 162 can identify parsing expressions 528, such as aggregate expressions, group expressions, filter expressions, limit expressions, and / or sort expressions. These parsing expressions are described in more detail in U.S. Patent Application Publication No. 16 / 601,437, filed October 14, 2019, entitled “Incremental Updates to Natural Language Expressions in a Data Visualization User Interface,” and U.S. Patent Application Publication No. 16 / 680,431, filed November 11, 2019, entitled “Using Refinement Widgets for Data Fields Referenced by Natural Language Expressions in a Data Visualization User Interface,” which are incorporated herein by reference in their entireties. The natural language processing interface 162 may also include a dependency determination module 530 that searches for dependencies in the database / data source 542 to determine how particular terms and / or phrases are related (e.g., dependent). In some implementations, the natural language processing interface 162 includes a filter generation module 532 that determines whether one or more filters are relevant to the field being modified by the user. The filter generation module 532 generates one or more filters based on the user selection. 164 Data Visualization Platforms including: a data visualization generation module 534 that uses user input (e.g., natural language input) to automatically generate and display corresponding visual graphics (sometimes called "data visualizations" or "data viz"); o A visual representation generation module 536 (optional) that generates a representation of the data visualization and transmits the generated representation to the computer system 140, which is configured to transmit the representation to an electronic device (e.g., via the Slack service 130 and the Slack server 108). In some implementations, the representation of the data visualization is an image file of the data visualization (e.g., the image file is a .png, .tiff, or .jpg file). In some implementations, the representation of the data visualization includes a link to the image. In some implementations, the representation of the data visualization is a link (e.g., a URL link) to the data visualization. o Visual specification 538 used to define characteristics of the desired data visualization. In some implementations, information provided by computer system 140 (e.g., via user input) is stored as a visual specification. In some implementations, visual specification 538 includes past natural language commands received by the user or properties specified by the user from the natural language commands. In some examples, visual specification 538 includes two or more aggregations based on different levels of detail. More information regarding levels of detail can be found in U.S. Patent Application Publication No. 14 / 801,750, entitled "Systems and Methods for using Multiple Aggregation Levels in a Single Data Visualization," filed July 16, 2015, and U.S. Patent Application Publication No. 16 / 166,125, entitled "Determining Levels of Detail for Data Visualizations Using Natural Language Constructs," filed October 21, 2018, each of which is incorporated herein by reference in its entirety. Zero or more databases or data sources 542. In some implementations, the data sources are stored as spreadsheet files, CSV files, XML files, flat files, or JSON files, or in relational databases. For example, a user selects one or more databases or data sources 542 (which may be stored on the data visualization server 160 or remotely), selects data fields from the data sources, and uses the selected fields to define a visual graphic.

[0085]

[0094] In some implementations, the data visualization server 160 further includes an inference module (not shown) that is used to resolve unspecified (e.g., omitted information) or unclear (e.g., vague) natural language commands (e.g., expressions or utterances) directed to the database or data source 258 using one or more inference rules. More information regarding the inference module can be found in U.S. Patent Application Publication No. 16 / 234,470, filed December 27, 2018, entitled “Analyzing Underspecified Natural Language Utterances in a Data Visualization User Interface,” which is incorporated herein by reference in its entirety.

[0086]

[0095] In some implementations, to address the problem of proliferation of ambiguous syntactic parses inherent in natural language queries, regular expressions are assigned (e.g., by the natural language processing module 236) to the parsed representation 528. Regular structures are ambiguous from the perspective of a parser, and the natural language processing module 238 can quickly select among multiple syntactic parses to form the intermediate representation. More information regarding regular expressions can be found in U.S. Patent Application Publication No. 16 / 234,470, filed December 27, 2018, entitled "Analyzing Underspecified Natural Language Utterances in a Data Visualization User Interface," which is incorporated herein by reference in its entirety.

[0087]

[0096] 6A and 6B show a graphical user interface 600 for interactive data analysis according to some implementations. In some implementations, the graphical user interface 600 is an interface for a data visualization application, which may be a desktop data visualization application installed on a user's computing device or a web-based data visualization application accessed from a web browser on the computing device (e.g., data visualization web application 522).

[0088]

[0097] In the example of FIG. 6A, the user interface 600 includes a data tab 614 and an analysis tab 616. When the data tab 614 is selected, the user interface 600 displays a schema information area 610, also called a data pane. The schema information area 610 provides named data elements (e.g., field names) that can be selected and used to build a data visualization. In some implementations, the list of field names is divided into dimensions (e.g., categorical data) and measures (e.g., quantities). Some implementations also include a list of parameters. When the analysis tab 616 is selected, the user interface 600 displays a list of analysis functions instead of data elements (not shown).

[0089]

[0098] As further shown in FIG. 6A, the graphical user interface 600 also includes a data visualization area 612. The data visualization area 612 includes multiple shelf areas, such as a column shelf area 620 and a row shelf area 622, which are also referred to as the column shelf 620 and the row shelf 622. As shown in this figure, the data visualization area 612 also has a large space for displaying visual graphics (also referred to herein as data visualization). This space initially has no visual graphics because no data elements have been selected yet. In some implementations, the data visualization area 612 has multiple layers, called sheets. In some implementations, the data visualization area 612 includes an area 626 for data visualization filters.

[0090]

[0099] In some implementations, the graphical user interface 600 also includes a natural language input box 624 (also referred to as a command box) for accepting natural language commands. A user can interact with the command box to provide a command. For example, a user can provide a natural language command by typing into the box 624. In addition, a user can indirectly interact with the command box by speaking into a microphone (e.g., a microphone of a computing device) to provide a command. In some implementations, data elements are initially associated with the columns shelf 620 and the rows shelf 622 (e.g., using a drag-and-drop operation from the schema information area 610 to the columns shelf 620 and / or the rows shelf 622). After the initial association, a user can use natural language commands (e.g., in the natural language input box 624) to further explore the displayed data visualization. In some examples, a user creates an initial association using the natural language input box 624, which results in one or more data elements being placed on the columns shelf 620 and the rows shelf 622. For example, a user may provide a command to create a relationship between data element X and data element Y. In response to receiving the command, the columns shelf 620 and the rows shelf 622 may be populated with data elements (e.g., the columns shelf 620 may be populated with data element X and the rows shelf 622 may be populated with data element Y, or vice versa).

[0091]

[0100] 6B illustrates another view of a graphical user interface 600 according to some implementations. In the example of FIG. 6B, the user interface 600 displays a list 630 of data fields of a data source (e.g., data source 166). The data visualization area 612 displays suggestions 632 (e.g., guidelines, hints, pointers, and / or possible queries) to assist the user in interacting with the data source. In some implementations, in response to a user selecting a data field in the list 630 of data fields (e.g., the user selects "quantity" of data field 634), the data visualization area 612 displays a panel 636 containing details of the data field 634 to further facilitate the user's understanding.

[0092]

[0101] According to some implementations of the present disclosure, the electronic device 102 (e.g., as depicted in FIGS. 1, 2, and 4) does not include the data visualization application described with respect to FIGS. 6A and 6B. In some implementations (e.g., when the electronic device 102 includes a mobile phone or a wearable device), the form factor (e.g., limited screen size) of the electronic device 102 also makes it difficult to access the user interface 600 and tools associated with the user interface 600. In some implementations, even if the electronic device 102 does not include a data visualization application, the electronic device 102 can still perform interactive data analysis through applications such as the messaging application described with respect to FIGS. 1 and 2.

[0093]

[0102] In light of these principles, specific implementations will now be considered.

[0094] Implementation

[0103] 7A-7G show a series of screenshots of interactions between an electronic device 102 and a computer system 140, according to some implementations.

[0095]

[0104] 7A illustrates a user interface 700 displayed on electronic device 102. In some implementations, user interface 700 is an interface for a messaging application (e.g., Slack application 106, CRM application 110, and / or chat application 114 of FIG. 1 or other messaging application) running on electronic device 102.

[0096]

[0105] In the example of FIG. 7A, the user interface 700 displays a partial list 702 of messages being sent by the electronic device 102 to other electronic devices (e.g., devices running a corresponding messaging application) and / or being received by the electronic device 102 from other devices. In some implementations and as shown in FIG. 7A, the messages are arranged in chronological order, with the most recently sent or received messages appearing at the bottom of the list 702. In some implementations, the messages in the list 702 can be arranged in reverse chronological order, with the most recently sent or received messages appearing at the top of the list 702. In some implementations and as shown in FIG. 7A, each of the messages on the list 702 comprises a thread of a conversation between the user of the electronic device 102 and another entity (e.g., another user, a service, a chatbot, or a group of users and / or services). For example, message 702-1 in FIG. 7A is a thread that includes 85 replies.

[0097]

[0106] In some implementations, the list 702 includes one or more messages including interactions between the electronic device 102 and the computer system 140 (e.g., a bot of the computer system 140) via a messaging service, such as the Slack service 130, CRM service 132, and / or chat service 134 shown in FIGS. 1 and 2, or other messaging services. In some implementations, a user can interact with the user interface 700 by composing (e.g., typing) a message in the input box 704. In some implementations, a user can also indirectly interact with the input box 704 by speaking into a microphone (e.g., voice input device 420) of the electronic device 120 to provide a natural language command. In the example of FIG. 7A, the user enters the natural language command (e.g., a natural language expression) of "Hello."

[0098]

[0107] Figure 7B shows an updated view of user interface 700 in response to user input. In the example of Figure 7B, the user is interacting with computer system 140 for the first time, and thus the natural language command of "hello" starts a new conversation thread 710 (Figure 7C) (e.g., initialization event 202 of Figure 2A).

[0099]

[0108] In some implementations, the conversation thread represents an interaction between a user and computer system 140 to enable a data visualization analysis to be displayed in user interface 700. In some implementations, the data visualization analysis is provided by a data visualization server 160 to which computer system 140 is communicatively connected.

[0100]

[0109] Referring again to FIG. 7B, interaction between the user and computer system 140 causes a new message 702-2 to be displayed. FIG. 7B also shows the user pointing (706) over the “View Thread” option. As shown in FIG. 7C, in response to the user selecting “View Thread,” a conversation thread 710 corresponding to the message 702-2 is displayed on the user interface 700. In some implementations and as shown in FIG. 7C, the conversation thread 710 is displayed in the user interface 700 simultaneously with the message history 702. In some implementations, in response to the user selecting the “View Thread” option, the user interface 700 displays the conversation thread 710 instead of the list of messages 702.

[0101]

[0110] 7C further illustrates a message 712 that is automatically generated and displayed on user interface 700 in response to the user input of "Hello." The message 712 includes an option 714 for the user to select a data source from one or more data sources (e.g., data source 166). The conversation thread 710 also includes an input box 716 for replying to the thread, as well as an option 718 for the user to send a response as a direct message (e.g., instead of replying to the conversation thread).

[0102]

[0111] 7D illustrates a drop-down menu 720 that is displayed in response to a user selecting option 714. In this example, the user selects the "Supermarket" data source.

[0103]

[0112] 7E illustrates a first message 722 and a second message 724 automatically generated by computer system 140 (e.g., chat API 142) and displayed on user interface 700 in response to a user selection of the “Supermarket” data source. Message 722 includes a confirmation of the data source selection. Message 724 includes the number of data fields in the data source (e.g., “27 fields”), the data fields in the data source (e.g., “estimated delivery time” and “actual delivery time”), and a candidate question (e.g., a query). User interface 700 also displays an affordance 726 next to each of the candidate questions. In some implementations, a user selection of each affordance 726 causes a visualization (e.g., a data visualization or a representation of a data visualization) corresponding to the question to be displayed on user interface 700. In some implementations and as shown in Figure 7E, message 724 may also include suggestions regarding commands that the user may issue to computer system 140 (e.g., by entering a command in input box 716). Figure 7E also shows that user interface 700 displays that the number of answers in message 702-2 has been updated as a result of the response from computer system 140 (e.g., from "1 Answer" in Figure 7B to "2 Answers" in Figure 7E).

[0104]

[0113] FIG. 7F illustrates a user selection (728) of affordance 726-1 of FIG. 7E, which corresponds to the candidate question "Filter total sales by state, category to furniture."

[0105]

[0114] In some implementations, computer system 140 (e.g., chat API 142) is configured to automatically generate a reply (e.g., an acknowledgment) in response to user input. For example, in FIG. 7F, user interface 700 displays message 730 (e.g., "Please wait, crunching data...") while computer system 140 interacts with data visualization server 160 to process user selections.

[0106]

[0115] Figure 7G shows visualization 732 generated and displayed on user interface 700 in response to a user selecting affordance 726-1 in Figure 7E. In this example, visualization 732 is a map of the United States. The map includes a respective color for each state, with the color representing the total furniture sales for the state.

[0107]

[0116] In some implementations, the visualization 732 is the actual data visualization generated by the data visualization server 160 that is sent to the electronic device 102 (e.g., via the computer system 140, messaging service, and messaging server as shown in the environment 100 of FIG. 1).

[0108]

[0117] In some implementations, the visualization 732 is a representation of the actual data visualization. For example, the representation can be an image of the data visualization, an image file of the data visualization (e.g., in a .png, .tiff, .bmp, .jpg, .gif, or .pdf file format) and / or a link to an image of the data visualization.

[0109]

[0118] In examples where visualization 732 is a representation of an actual data visualization, the representation may be generated by data visualization server 160 (e.g., using visualization representation generation 538) or by computer system 140 (e.g., using visualization representation generator 346).

[0110]

[0119] 7G , in some implementations, the user interface 700 also displays one or more phrases 733 (e.g., "Total Sales by State and Region, Filter Category to Furniture") that define the visualization 732 along with the visualization 732. As shown in FIG. 7G , the visualization 732 also includes affordances (736) that allow the user to add an emotive icon, affordances (738) that allow the user to label the visualization 732 as important, and / or affordances (740) that allow the user to perform one or more predefined actions, such as storing the visualization 732 on the electronic device 102 and / or on the cloud and / or sharing the visualization 732 with other users.

[0111]

[0120] 8A-8AG show a series of screenshots regarding interactions between electronic device 102 and computer system 140 based on the data sources selected in FIG. 7, according to some implementations.

[0112]

[0121] 8A illustrates a user interaction with user interface 700. In this example, the user enters in input box 716 the natural language expression 802 "filter to western regions."

[0113]

[0122] Figure 8B shows that in response to a user selecting the "send" affordance 804 of Figure 8A, the natural language expression 802 of Figure 8A is sent to the chat API 142 (e.g., via the messaging server and messaging service of Figure 1). The natural language expression 802 is also added to the conversation thread 710 as a message 806.

[0114]

[0123] 8C illustrates the display of a message 808 (e.g., "Okay, add a region filter to the West") and visualization 810 in response to natural language expression 802. In this example, visualization 810 is an enlarged version of visualization 732, showing a map of the Western region of the United States.

[0115]

[0124] 2A and 2B, the computer system 140 stores (e.g., in the conversation store 144) data that represents the state of the interaction between the electronic device 102 and the data visualization system 160. As also described in FIG. 3, the data may include an identification of the data source, data fields, and data visualization being generated by the data visualization system 160. Here, the computer system 140 (e.g., chat API 142) keeps the original context of the query ("Total Sales by State, Filter Category to Furniture" in FIG. 7F) and adjusts the visualization 732 accordingly by adding a filter to the "West" region.

[0116]

[0125] 8D illustrates another user interaction with user interface 700. In this example, the user enters a natural language command 812 (e.g., "as a bar graph") in input box 716.

[0117]

[0126] Figure 8E shows a message 814 (e.g., "OK, add as a bar graph") that is automatically generated by the computer system 140 in response to the natural language input 812 of Figure 8D and displayed on the user interface 700. The user interface 700 also displays an updated visualization 816 (e.g., a bar graph). In this example, each of the data bars in the bar graph 816 is a state in the "Western" region of the United States. The data bars are arranged in descending order based on furniture sales totals.

[0118]

[0127] In some implementations, a user interaction with visualization 816 (e.g., a user touch) causes the display of a "zoom" affordance 818 on user interface 700. In some implementations, visualization 816 is an image. The user can zoom the image (e.g., by touching the image with their finger and moving the finger outward or clicking affordance 818) to see some of the finer details of visualization 816, as shown in FIG.

[0119]

[0128] Figure 8G illustrates another user interaction with the user interface 700. In this example, the user enters a natural language command 820 (e.g., "clear") in the input box 716 to initiate a new query. Figure 8H illustrates that in response to the natural language command 820, the user interface 700 displays a message 822 indicating that the chat API 142 is "ready to answer your new question."

[0120]

[0129] FIG. 8I illustrates another user interaction with the user interface 700 (eg, the user enters the natural language command 824 "list fields").

[0121]

[0130] FIG. 8J shows that in response to the natural language command 824, the user interface displays a list 826 of data fields within the "Supermarket" data source.

[0122]

[0131] FIG. 8K shows a user inputting a natural language command 828 (e.g., “show me the product name”). FIG. 8L shows that in response to the natural language command 828, the user interface 700 displays a message 830 including the top value of the data field for “product name”. In this example, the natural language processing interface 162 interprets the phrase “product name” in the natural language command 828 as a data field in the data source (e.g., data field 832 in FIG. 8L). The natural language processing interface 162 further interprets the words “show me” in the natural language command 828 as “provide more details”. In some implementations, for string fields (e.g., dimensional data fields such as “product name” having categorical data), the data visualization server 160 can return the top data values ​​of the data field (e.g., data values ​​such as “staple envelope”, “easy staple paper”, and “staples”) to be included as further details for the data field for “product name”.

[0123]

[0132] FIG. 8M illustrates that in response to a user selecting the “Show More” option 834 in FIG. 8L, user interface 700 displays more information (e.g., more data values) regarding the “Product Name” data field.

[0124]

[0133] 8N illustrates another user interaction with user interface 700. In this example, the user enters a natural language command 836 (e.g., "show me benefits").

[0125]

[0134] 8O shows that in response to the natural language command 836, the user interface 700 displays a message 838 including a range of values ​​(e.g., from minimum to maximum) for the data field of "profit." In some implementations, in response to determining (e.g., by the natural language processing interface 162) that the natural language input includes a numeric data field (e.g., a measurement with a quantity), the data visualization server 160 can return a range of values ​​corresponding to the numeric data field.

[0126]

[0135] 8P illustrates another user interaction with user interface 700. In this example, the user enters a natural language command 840 (e.g., "profit margin for staples").

[0127]

[0136] 8Q shows that in response to natural language command 840, user interface 700 displays visualization 841. In this example, visualization 841 is a line graph with "profit" on the y-axis and "ship date year" on the x-axis. Visualization 841 includes phrase 842 (e.g., "Total profit by ship date year, filter product name to staples") that suggests the line graph represents a data value of "staples" in the data field of "product name."

[0128]

[0137] In some implementations, the data visualization server 160 may not interpret the question as the user desires. For example, FIG. 8Q suggests that the data visualization server 160 interpreted the user input 840 such that the phrase 842 means "year of shipping date," but the user may actually want something else. In some implementations, if the computer system 140 returns an interpretation different from what the user expected, the user can enter a natural language command 844 (e.g., "that's not true") as shown in FIG. 8R.

[0129]

[0138] 8S shows that in response to the natural language command 844, the user interface 700 displays alternative interpretations 846, each of which includes a corresponding affordance for selecting the interpretation 848. The user interface 700 also displays a request 850 to the user to select one of the interpretations.

[0130]

[0139] FIG. 8T shows the user selecting (852) affordance 848-2 that corresponds to interpretation 846-2 (eg, "Filter Profit Sum by Order Date Year, Product Name to Staples").

[0131]

[0140] 8U shows an updated visualization 854 displayed within user interface 700 in response to a user selecting affordance 848-2. In this example, visualization 854 is a line graph of staple profit by year of order. The line graph includes "profit" on the y-axis and "year of order date" on the x-axis.

[0132]

[0141] 8V illustrates a user interaction with user interface 700. In this example, the user enters a natural language input 856 (e.g., "monthly instead") in input box 716.

[0133]

[0142] FIG. 8W shows that in response to the natural language input 856, the user interface 700 displays a message 858 indicating that "Order Date Year" in the visualization 854 is replaced by "Order Date Month." The user interface 700 also displays an updated visualization 860. In this example, the visualization 860 is a line graph of staple profit based on order date month. The visualization 860 includes "Profit" on the y-axis and "Order Date Month" on the x-axis. In this example, by aggregating staple profit according to month instead of year (e.g., in visualization 854), the data visualization server 160 generates a data visualization corresponding to visualization 860.

[0134]

[0143] 8X illustrates another user interaction with user interface 700. In this example, the user enters a natural language command 862 (e.g., "cancel").

[0135]

[0144] FIG. 8Y shows that in response to natural language command 862, user interface 700 displays visualization 854 that corresponds to the previous visualization, visualization 860.

[0136]

[0145] FIG. 8Z shows a user input 864 (eg, "Clear") to start a new query.

[0137]

[0146] FIG. 8AA shows a user input 866 (eg, "month over month profit").

[0138]

[0147] 8AB shows that in response to user input 866, user interface 700 displays visualization 868. In this example, visualization 868 is a line graph of "Month-over-month difference in total profit across order dates," as indicated by phrase 870. Visualization 870 includes "Profit Difference" on the y-axis and "Order Date Month" on the x-axis.

[0139]

[0148] FIG. 8AC shows a user entering natural language input 872 into input box 716 (eg, “March 2017 - September 2018”).

[0140]

[0149] FIG. 8AD shows that in response to the natural language input 872, the user interface 700 displays an updated visualization 874, in which the x-axis has been modified (e.g., filtered) to months from March 2017 to September 2018.

[0141]

[0150] 8AE and 8AF show user input 876 (e.g., "By Category"), and in response to user input 876, user interface 700 displays visualization 878. In this example, natural language processing interface 164 interprets "By Category" as grouping the data field of "Category" by data value (e.g., Technology, Furniture, and Office Supplies). Visualization 878 includes a line graph composed of three lines corresponding to the data values ​​of "Technology," "Furniture," and "Office Supplies."

[0142]

[0151] 8AF also shows the user typing the word “share” 880 into input box 716 indicating a request to share visualization 878. In some implementations, in response to this request, user interface 700 returns a message 882 that includes a link 884, as shown in FIG. 8AG. In some implementations, in response to a user selecting link 884, electronic device 102 opens a web browser (e.g., web browser 428) and directs the user to a web interface (e.g., data visualization web application 522) of data visualization server 160, bypassing the messaging server, messaging service, and communication channels with computer system 140.

[0143]

[0152] 9A-9F show a series of screenshots for interacting with a data visualization using the web browser 428 of the electronic device 102 according to some implementations.

[0144]

[0153] Figure 9A illustrates a graphical user interface 900 for the data visualization web 522 of Figure 5 according to some implementations. In some implementations, a user of the electronic device 102 can access the graphical user interface 900 using a web browser on the electronic device 102 (e.g., web browser 428). In the example of Figure 9A, the user's graphical interface 900 is displayed in response to the user selecting (e.g., clicking) a link in messaging user application 700 (e.g., link 884 in Figure 8AG).

[0145]

[0154] In some implementations, the user interface 900 includes a data visualization area 902. In the example of FIG. 9A, the data visualization area 902 displays a data visualization 904 (e.g., a line graph) that includes three line graphs: "Technology," "Office Supplies," and "Furniture." The line graph 904 includes "Profit Difference" on the y-axis and "Order Date Month (2017)" on the x-axis. The line graph 904 is the actual data visualization of the visualization 878 in FIG. 8AF.

[0146]

[0155] 9A , in some implementations, the graphical user interface 900 includes a schema information region 906 that provides named data elements (e.g., field names) of the "supermarket" data source. The user interface 900 also includes a command box 908 for accepting natural language input (e.g., commands) from a user. The graphical user interface 900 also displays phrases 912 that define the data visualization 904 in a region 910 separate from (e.g., above) the command box 908.

[0147]

[0156] In some implementations, a user can directly interact with phrase 912 to modify (e.g., add, remove, or replace) data fields of an existing data visualization. For example, in FIG. 9B, a user selects (914) (e.g., clicks) the word "March" in phrase 912-3 (e.g., "has order dates between March 2017 and September 2018"). In some implementations, in response to the user's interaction, the graphical user interface 900 displays a drop-down menu 916 that includes a first choice 918 and a second choice 920. In some implementations, instead of selecting a choice from a drop-down menu, the user can manually modify the phrase (e.g., by selecting (922) a word in the phrase and typing a new word), as shown in the transition from FIG. 9C to FIG. 9D. In some implementations, a user can also interact with data marks in the data visualization, as shown in FIG. 9E and FIG. 9F.

[0148]

[0157] Further details regarding data field refinement are provided in U.S. Patent Application Publication No. 16 / 680,431, entitled “Using Refinement Widgets for Data Fields Referenced by Natural Language Expressions in a Data Visualization User Interface,” filed November 11, 2019, which is incorporated by reference in its entirety.

[0149]

[0158] 10A-10G show a flowchart of a method 1000 for a conversational natural language interface for data analysis. The method 1000 may also be referred to as a process.

[0150]

[0159] The method 1000 is executed 1002 on a computer system 140. The computer system 140 has one or more processors 302 and memory 314 1004. The computer system 140 is communicatively coupled 1006 to a messaging system and data visualization server 160. In some implementations, the messaging system includes a messaging service (e.g., the Slack service 130, the CRM service 132, and / or the chat service 134). In some implementations, the messaging system includes a messaging service and a messaging server (e.g., the messaging system includes the chat service 134 and the chat server 116).

[0151]

[0160] Referring again to FIG. 10A, the messaging system is communicatively coupled to the electronic device 102 (1008). The memory 314 stores one or more programs configured to be executed by the one or more processors 302 (1010). In some implementations, the operations illustrated in FIGS. 2A, 2B, 7A-9F correspond to instructions stored in the memory 314 of the computer system 140 or other non-transitory computer-readable storage medium. The computer-readable storage medium may include magnetic or optical disk storage devices, solid-state storage devices such as flash memory, or other non-volatile memory devices. The instructions stored on the computer-readable storage medium may include one or more of source code, assembly language code, object code, or other instruction formats interpreted by one or more processors. Some operations in the method 1000 may be combined and / or the order of some operations may be changed.

[0152]

[0161] In some implementations, an initial input is received by the computer system 140 from the messaging system that initiates an analysis conversation between the electronic device and the computer system (1044). In some implementations, the computer system stores data entries for the analysis conversation that establish an initial dialogue state (1046).

[0153]

[0162] The computer system 140 receives 1012 a first input from a messaging system identifying a data source.

[0154]

[0163] The computer system 140 receives 1016 a second input from the messaging system specifying a natural language command related to the data source.

[0155]

[0164] In some implementations, the first and second inputs are received (1018) via a call to an API provided by the computer system 140 (eg, chat API 142).

[0156]

[0165] In some examples, the API calls are generated by a messaging system and represent interactions between the messaging system and the electronic device 102 (1020).

[0157]

[0166] The computer system 140 converts the second input into a set of parameters for constructing a first data visualization from the data source (1022). In some implementations, the computer system obtains an interaction state between the electronic device and the computer system (1023). The interaction state includes a number of characteristics of an analytical conversation between the electronic device and the computer system regarding the data source (1023). In some implementations, the computer then converts the second input into a set of parameters according to the obtained interaction state (1024).

[0158]

[0167] The computer system 140 invokes (1025) one or more API functions provided by the data visualization server 160.

[0159]

[0168] In response to invoking the API function, the computer system 140 receives 1026 a first data visualization from the data visualization server 160, the first data visualization including a first subset of the data fields of the data source.

[0160]

[0169] In some implementations, the first data visualization is an image (1028).

[0161]

[0170] In some implementations, the first data visualization is a link to an image (1030).

[0162]

[0171] The computer system 140 generates a first representation of the first data visualization (1032) (e.g., using the visualization representation generator 346). In some implementations, the first representation of the first data visualization is generated by the data visualization server 160 (e.g., using the visualization representation generator 534). In some implementations, the first representation of the first data visualization is an image file of the data visualization (1034). For example, the image file may be in a .png, .tiff, .bmp, .jpg, .gif, or .pdf file format.

[0163]

[0172] The computer system 140 sends the first representation to a messaging system (1036). The messaging system is configured to send the first representation to the electronic device 102 for display on the electronic device 102. This is shown, for example, in Figures 8A-8E and 8Q-8X. In some implementations, the first representation is displayed on an interface of a messaging application executing on the electronic device 102. In some implementations, sending the first representation to the messaging system includes sending a message having a message payload that includes a link to an image of the first data visualization (1038).

[0164]

[0173] In some implementations, the computer system 140 stores (1040) a current dialogue state between the electronic device 104 and the data source in a database communicatively coupled to the computer system 140. Obtaining (1042) the current dialogue state includes obtaining the current dialogue state from the database. For example, the computer system 140 stores the current dialogue state in a conversation storage area 144.

[0165]

[0174] In some examples, after generating the first representation, the computer system 140 stores the first representation of the first data visualization and the set of parameters in a database (1048). In some implementations, the set of parameters includes one or more of the data fields of the data sources identified by the user and / or used to generate the data visualization, the parameters (e.g., filters, aggregation and / or grouping operators) used to create the data visualization or modify an existing data visualization, the natural language interpretation 334 and the intermediate representation generated by the natural language processing interface 162 using an intermediate language (e.g., ArkLang).

[0166]

[0175] In some examples, the set of parameters is stored 1050 as an expression in a default intermediate language.

[0167]

[0176] In some implementations, after receiving a first input identifying a data source, the computer system 140 generates and transmits to the messaging system a number of candidate questions related to the data source (1052). A second input includes a user selection of one of the candidate questions (1054). This is shown in Figures 7F and 7G.

[0168]

[0177] In some implementations, the first data visualization has a first data visualization type of the predetermined plurality of data visualization types (1056). The computer system 140 receives a third input from the messaging system requesting a second data visualization type of the plurality of data visualization types (1058). In response to the third input (1060), the computer system 140 invokes one or more of the API functions provided by the data visualization server 160 to request the second data visualization type. The computer system 140 receives a second data visualization from the data visualization server 160 having the second data visualization type (1064). The second data visualization includes a first subset of data fields of the data source. The computer system 140 generates a second representation of the second data visualization (1066). The computer system 140 sends 1068 the second representation to the messaging system, as shown in Figures 8D and 8E.

[0169]

[0178] In some implementations, the computer system 140 receives (1070) a third input from the messaging system specifying a request to share the first data visualization. In response to the third input (1072), the computer system 140 converts (1074) the third input into a command. The computer system 140 sends (1076) the command to the data visualization server 160. The computer system 140 receives (1078) a link to the first data visualization from the data visualization server 160. The computer system 140 sends (1080) the link to the messaging system. The messaging system is configured to send (1082) the link to the electronic device 102 for display on the electronic device 102. The electronic device 102 is configured to retrieve (1084) the first data visualization upon user selection of the link and display (1084) the first data visualization via the electronic device's browser. This is shown in Figures 8AF, 8AG and 9A.

[0170]

[0179] In some implementations, the first subset of data fields of the data source includes the first data field (1086). The computer system 140 receives a third input from the messaging system to replace the selection of the first data field with a selection of a second data field (e.g., the second data field is not within the first subset of data fields) (1088). In response to the third input (1090), the computer system 140 invokes one or more of the API functions provided by the data visualization server 160 to replace the selection of the first data field with a selection of the second data field (1092). The computer system 140 receives a second data visualization from the data visualization server 160 that includes the second subset of data fields (1094). The second subset of data fields includes the second data field and does not include the first data field (1096). The computer system 140 generates a second representation of the second data visualization (1098). The computer system 140 sends 10100 the second representation to the messaging system, as shown in Figures 8U, 8V, and 8W.

[0171]

[0180] In some implementations, the first subset of data fields includes a first data field having a first plurality of distinct values ​​(10102). The method 1000 further includes receiving a third input from the messaging system specifying filtering of data rows from the data source into a subset of rows in which data values ​​of the first data field match the first data value (10104). In response to the third input (10106), the computer system 140 invokes one or more of the API functions provided by the data visualization server 160 to filter the data rows into the subset of rows (10108). The computer system 140 receives a second data visualization from the server 160 (10110). The second data visualization includes data marks representing the first data value of the first data field and omits data marks of the first plurality of values ​​corresponding to data values ​​other than the first data value (10112). The computer system 140 generates 10114 a second representation of the second data visualization. The computer system 140 transmits 10116 the second representation to the messaging system. This is shown in Figures 8A-8C.

[0172]

[0181] Each of the above-identified executable modules, applications, or procedure sets can be stored in one or more of the memory devices mentioned above and correspond to a set of instructions for performing the functions described above. The above-identified modules or programs (i.e., instruction sets) need not be implemented as separate software programs, procedures, or modules, and thus, various subsets of these modules can be combined or otherwise reconfigured in various implementations. In some implementations, memory 206 stores a subset of the above-identified modules and data structures. Additionally, memory 206 may store additional modules or data structures not described above.

[0173]

[0182] The terms used in the description of the invention herein are merely for the purpose of describing particular implementations and are not intended to limit the invention. When used in the description of the invention and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms "comprise" and / or "comprising" as used herein specify the presence of stated features, steps, operations, elements and / or components but do not exclude the presence or addition of one or more other features, steps, operations, elements, components and / or groups thereof.

[0174]

[0183] The above description has been set forth for purposes of illustration with respect to specific implementations. However, the above exemplary discussion is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The implementations have been chosen and described to best explain the principles of the invention and its practical application, and thereby enable others skilled in the art to best utilize the invention and its various implementations, along with various modifications suited to the particular uses contemplated. A conversational natural language interface for data analysis. Appendix A func (s *Server) processMessage( ctx emitter.MessageContext, e *events.MessageEvent, ) (recoveredErr error) { / / ... switch strings.ToLower(e.Text) { case “hello”, “hey there”, “yo”, “howdy”: err := s.slackServiceEmitter.Greeting(ctx) / / ... case “nice”, “that’s awesome”, “awesome”, “good work”, “nice job”, “great”, “thanks”, “thank you”, “you’re the best”: err := s.slackServiceEmitter.GratitudeResponse(ctx) / / ... / ****** * ALTERNATIVE INTERPRETATIONS * / case “wrong”, “correction”, “not quite”, “not what i meant”, “that’s not what i meant”, “try again”, “alternatives”, “other options”, “alternative interpretations”: / / ... options, err := s.chatAPI.GetInterpretationOptions(ctx.ConversationID) / / ... err = s.slackServiceEmitter.SendInterpretationOptions(ctx, options) / / ... / ****** * CLEAR * / case “clear”, “start over”, “reset”, “clean slate”, “new question”: / / ... err = s.chatAPI.Clear(ctx.ConversationID) / / ... err = s.slackServiceEmitter.SendMessage(ctx, “Ready to answer a new question!”) / / ... / ****** * DESCRIBE DATASOURCE * / case “describe datasource”, “describe data source”, “describe”, “help”, “help me”, “what can I do?”: err := s.describeDatasource(ctx) / / ... / ****** * LIST FIELDS * / case “list fields”: / / ... fields, err := s.chatAPI.ListFields(ctx.ConversationID) / / ... err = s.slackServiceEmitter.ListFields(ctx, fields) / / ... / ****** * LIST DATASOURCES * / case “list data sources”, “list datasources”, “change data source”, “change datasource”, “select data source”, “select datasource”: return s.listDatasources(ctx, false) / ****** * SHARE * / case “share”, “link”, “share link”, “give me a link”, “ask data”, “go to ask data”, “view in ask data”: / / ... url, questionTitle, err := s.chatAPI.Share(ctx.ConversationID) / / ... err = s.slackServiceEmitter.SendShareLink(ctx, url, questionTitle) / / ... / ****** * UNDO * / case “undo”, “oops”, “undo that”, “rewind”: / / ... questionState, err := s.chatAPI.Undo(ctx.ConversationID) / / ... err = s.slackServiceEmitter.SendMessage(ctx, “No problem! Let’s rewind.”) / / ... err = s.slackServiceEmitter.SendAnswer(ctx, questionState) / / ... default: / ****** * DESCRIBE FIELD * / if strings.HasPrefix(e.Text, “describe ”) { / / ... parts := strings.Split(e.Text, “describe ”) if len(parts) == 0 { err := s.slackServiceEmitter.SendMessage(ctx, “Sorry, what field?”) / / ... } fieldDesc, found, err := s.chatAPI.DescribeField(ctx.ConversationID, parts[1]) / / ... err = s.slackServiceEmitter.DescribeField(ctx, fieldDesc) / / ... } / ****** * CONVERSE * / / / ... err = s.slackServiceEmitter.PendingNotification(ctx) / / ... questionState, interpreted, err := s.chatAPI.Converse( ctx.ConversationID, e.Text, ) / / ... if interpreted { err = s.slackServiceEmitter.SendAnswer(ctx, questionState) / / ... } else { err = s.slackServiceEmitter.QueryMisunderstood(ctx) / / ... } } return nil }

Claims

1. 1. A method executed on a computer system communicatively coupled to a messaging system and a data visualization server, the messaging system communicatively coupled to an electronic device, the computer system having one or more processors and a memory storing one or more programs configured to be executed by the one or more processors, the method comprising: receiving a first input from the messaging system identifying a data source; receiving a second input from the messaging system specifying a natural language command related to the data source; converting the second input into a set of parameters for constructing a first data visualization from the data source; Invoking one or more API functions provided by the data visualization server; receiving a first data visualization from the data visualization server in response to invoking the API function, the first data visualization including a first subset of data fields from the data source; generating a first representation of the first data visualization; and sending the first representation to the messaging system, the messaging system being configured to send the first representation to the electronic device for display on the electronic device. A method comprising:

2. Transforming the second input into a set of parameters includes: acquiring a dialogue state between the electronic device and the computer system, the dialogue state including a plurality of characteristics of an analytical conversation between the electronic device and the computer system with respect to the data source; and Transforming the second input into the set of parameters according to the obtained dialogue state. The method of claim 1 , comprising:

3. receiving an initial input from the messaging system prior to the first input that initiates the analysis conversation between the electronic device and the computer system; and storing data entries for said analysis conversation that establishes an initial dialogue state; The method of claim 2 further comprising:

4. The method of claim 1 , further comprising storing the first representation of the first data visualization and the set of parameters.

5. The method of claim 4 , wherein the set of parameters is stored as a representation in a predefined intermediate language.

6. The method of claim 1 , wherein the first and second inputs are received as calls to an API provided by the computer system.

7. The method of claim 6 , wherein calls to the API are generated by the messaging system and represent interactions between the messaging system and the electronic device.

8. The method of claim 1 , wherein the first representation of the first data visualization is an image file of the first data visualization.

9. generating and transmitting a plurality of candidate questions related to the data source to the messaging system after receiving the first input identifying the data source; 2. The method of claim 1, further comprising: wherein the second input comprises a user selection of one of the plurality of candidate questions.

10. The first data visualization has a first data visualization type of a predetermined plurality of data visualization types, and the method further comprises: receiving a third input from the messaging system requesting a second data visualization type of the plurality of data visualization types; In response to the third input, invoking one or more of the API functions provided by the data visualization server to request the second data visualization type; receiving a second data visualization from the data visualization server, the second data visualization having the second data visualization type, the second data visualization including a first subset of the data fields from the data source; generating a second representation of the second data visualization; and Sending the second representation to the messaging system. The method of claim 1 further comprising:

11. receiving a third input from the messaging system specifying a request to share the first data visualization; In response to the third input, converting the third input into a command; sending said command to said data visualization server; receiving a link to the first data visualization from the data visualization server; and Sending the link to the messaging system. Further comprising: the messaging system is configured to transmit the link to the electronic device for display on the electronic device; and 2. The method of claim 1, wherein the electronic device is configured to retrieve the first data visualization upon user selection of the link and display the first data visualization via a browser of the electronic device.

12. The first subset of data fields of the data source includes a first data field, and the method further comprises: receiving a third input from the messaging system specifying replacement of the first data field selection with a second data field selection; In response to the third input, invoking one or more of the API functions provided by the data visualization server to replace a selection of the first data field with a selection of the second data field; receiving a second data visualization from the data visualization server, the second data visualization including a second subset of data fields, the second subset of data fields including the second data fields and not including the first data fields; generating a second representation of the second data visualization; and Sending the second representation to the messaging system. The method of claim 1 further comprising:

13. The first subset of data fields includes a first data field having a first plurality of distinct data values, and the method further comprises: receiving a third input from the messaging system specifying filtering of data rows from the data source into a subset of rows in which a data value of the first data field matches a first data value; In response to the third input, Invoking one or more API functions provided by the data visualization server to filter the data rows into a subset of the rows; receiving a second data visualization from the data visualization server, the second data visualization including data marks representing the first data value of the first data field and omitting data marks of the first plurality of values ​​corresponding to data values ​​other than the first data value; generating a second representation of the second data visualization; and Sending the second representation to the messaging system. The method of claim 1 further comprising:

14. The method of claim 1 , wherein the first data visualization is an image.

15. The method of claim 1 , wherein the first data visualization is a link to an image.

16. The method of claim 1 , wherein sending the first representation to the messaging system comprises sending a message having a message payload that includes a link to an image of the first data visualization.

17. one or more processors; a memory coupled to the one or more processors; wherein the memory stores one or more programs configured to be executed by the one or more processors; the computer system is communicatively coupled to a messaging system and a data visualization server, and the messaging system is communicatively coupled to an electronic device; and The one or more programs are receiving a first input from the messaging system identifying a data source; receiving a second input from the messaging system specifying a natural language command related to the data source; converting the second input into a set of parameters for constructing a first data visualization from the data source; Invoking one or more API functions provided by the data visualization server; receiving a first data visualization from the data visualization server in response to invoking the API function, the first data visualization including a first subset of data fields from the data source; generating a first representation of the first data visualization; and sending the first representation to the messaging system, the messaging system being configured to send the first representation to the electronic device for display on the electronic device. A computer system comprising instructions for performing the steps of:

18. The computer system of claim 17, further comprising instructions that, when executed by the computer system, cause the computer system to perform any one of the methods of claims 2 to 16.

19. When executed by a computer system having one or more processors, memory and a communication connection to a messaging system and a data visualization server, receiving a first input from the messaging system identifying a data source; receiving a second input from the messaging system specifying a natural language command related to the data source; converting the second input into a set of parameters for constructing a first data visualization from the data source; Invoking one or more API functions provided by the data visualization server; receiving a first data visualization from the data visualization server in response to invoking the API function, the first data visualization including a first subset of data fields from the data source; generating a first representation of the first data visualization; and transmitting the first representation to the messaging system, the messaging system configured to transmit the first representation to the electronic device for display on the electronic device. A program comprising instructions for causing the computer system to perform operations including:

20. The program of claim 19, further comprising instructions that, when executed by the computer system, cause the computer system to execute any one of the methods of claims 2 to 16.

Citation Information

Patent Citations

  • System, method, program for analyzing and visualizing team conversation data and computer device

    JP2019121348A

  • Systems and methods for applying pragmatic principles for interaction with visual analytics

    JP2020520485A

  • Determining levels of detail for data visualizations using natural language constructs

    WO2020076811A1