Data query method and apparatus, and electronic device

By receiving user data query requests in the session of the instant messaging tool, obtaining feedback information and outputting interactive controls, the problem of inconvenience in data query in the session is solved, and an efficient and flexible data query experience is achieved.

WO2024193582A9PCT designated stage expired Publication Date: 2025-02-13BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082718
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-22
Filing Date
2024-03-20
Publication Date
2025-02-13

AI Technical Summary

Technical Problem

In the session of an instant communication tool, when users need to query and share a large amount of data, the existing technology is difficult to provide efficient and convenient information query methods, resulting in inconvenient query process.

Method used

By receiving the data query request triggered by the user in the target session, obtaining corresponding feedback information, and outputting a response message including interactive controls in the target session, the user can adjust the query range through interactive controls.

Benefits of technology

It realizes the data query function in the session, which increases the flexibility and efficiency of data query and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082718_13022025_PF_FP_ABST
    Figure CN2024082718_13022025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present disclosure are a data query method and apparatus, and an electronic device. One particular embodiment of the method comprises: receiving a data query request triggered by a user by means of a session interface of a target session; acquiring feedback information corresponding to the data query request; and on the basis of the feedback information, outputting a response message in the target session, wherein the response message comprises an interaction control, such that the user adjusts a query range by means of the interaction control. In this embodiment, a data query function is provided in a session, such that the flexibility of data querying is increased, and the query range of data can be adjusted according to the requirements of a user, thereby improving the efficiency of data querying, and also improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Data query method, device and electronic equipment

[0001] This application claims priority to the Chinese invention patent application entitled “Data Query Method, Device and Electronic Device” and application number 202310284664.4, filed on March 22, 2023. The entire contents of that application are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to the field of computer technology, and in particular to a data query method, device, and electronic device. Background Art

[0003] With the continuous development of terminal and network technologies, instant messaging tools are increasingly used in people's lives and work. People can communicate with friends or group members in instant messaging conversations. Currently, if members of a conversation need to query and share data, they can usually share the data table to be queried with the conversation, and the user can open the data table to query the data. However, if the number of shared data tables and the content are too large, it will cause inconvenience to query the data. Currently, a more efficient and convenient information query method is needed.

[0004] Summary of the Invention

[0005] The present disclosure provides a data query method, device, and electronic device.

[0006] According to a first aspect, a data query method is provided, the method comprising:

[0007] Receiving a data query request triggered by a user through a session interface of a target session;

[0008] Obtaining feedback information corresponding to the data query request;

[0009] Based on the feedback information, a response message is output in the target session, wherein the response message includes an interactive control for the user to adjust the query scope through the interactive control.

[0010] According to a second aspect, a data query device is provided, the device comprising:

[0011] A receiving module, configured to receive a data query request triggered by a user through a session interface of a target session;

[0012] An acquisition module, configured to acquire feedback information corresponding to the data query request;

[0013] An output module is configured to output a response message in the target session based on the feedback information, wherein the response message includes an interactive control for the user to adjust the query scope through the interactive control.

[0014] According to a third aspect, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of the above-mentioned first aspects is implemented.

[0015] According to a fourth aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods described in the first aspect when executing the program.

[0016] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0017] Embodiments of the present disclosure provide a data query method and apparatus that, upon a user triggering a data query request in a target session, obtains feedback information corresponding to the data query request. Based on the feedback information, the method outputs a response message in the target session, including interactive controls, allowing the user to adjust the query scope through the interactive controls. This provides data query functionality within the session, increases data query flexibility, and enables the query scope to be adjusted according to user needs, improving data query efficiency and enhancing the user experience.

[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] FIG1 is a schematic diagram of an exemplary system architecture for applying an embodiment of the present disclosure;

[0021] FIG2 is a flow chart of an information query method according to an exemplary embodiment of the present disclosure;

[0022] FIG3 is a flow chart of another information query method according to an exemplary embodiment of the present disclosure;

[0023] FIG4A is a schematic diagram of an interface of an information query solution according to an exemplary embodiment of the present disclosure;

[0024] FIG4B is a schematic diagram of an interface of another information query solution according to an exemplary embodiment of the present disclosure;

[0025] FIG4C is a schematic diagram of an interface of another information query solution according to an exemplary embodiment of the present disclosure;

[0026] FIG4D is a schematic diagram of an interface of another information query solution according to an exemplary embodiment of the present disclosure;

[0027] FIG5 is a block diagram of an information query device according to an exemplary embodiment of the present disclosure;

[0028] FIG6 is a schematic block diagram of an electronic device provided by some embodiments of the present disclosure;

[0029] FIG7 is a schematic block diagram of another electronic device provided by some embodiments of the present disclosure;

[0030] FIG8 is a schematic diagram of a storage medium provided by some embodiments of the present disclosure. DETAILED DESCRIPTION

[0031] To help those skilled in the art better understand the technical solutions in this specification, the following will provide a clear and complete description of the technical solutions in the embodiments of this specification, in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. All other embodiments derived by those skilled in the art based on the embodiments in this specification without creative effort shall fall within the scope of protection of this specification.

[0032] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0033] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms "a," "the," and "the" used in this disclosure are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0034] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining."

[0035] See FIG1 , which is a schematic diagram of an exemplary system architecture applying an embodiment of the present disclosure.

[0036] As shown in FIG1 , system architecture 100 may include terminal devices 101 and 102, a network 103, and a server 104. It should be understood that the number or types of terminal devices, networks, and servers in FIG1 are merely illustrative. Any number or type of terminal devices, networks, and servers may be used as needed.

[0037] The network 103 is used to provide a medium for communication links between terminal devices and servers. The network 103 can include various connection types, such as wired or wireless communication links or optical fiber cables.

[0038] The terminal devices 101 and 102 can interact with the server via the network 103 to receive or send requests or information, etc. The terminal devices 101 and 102 can be various electronic devices, including but not limited to smart phones, tablet computers, smart wearable devices, and personal digital assistants, etc.

[0039] The server 104 can store, analyze, and process the received data, and can also send control commands or requests to terminal devices or other servers. The server can provide services in response to user service requests. It is understood that a server can provide one or more services, and the same service can be provided by multiple servers.

[0040] Based on the system architecture shown in FIG1 , in an embodiment of the present disclosure, after a user triggers a data query request in a conversation interface, terminal device 101 or terminal device 102 may send a data query request to server 104 via network 103. After receiving the data query request, server 104 may obtain feedback information corresponding to the data query request and return the feedback information to terminal device 101 or terminal device 102, causing terminal device 101 or terminal device 102 to output a response message including an interactive control in the target conversation based on the feedback information, allowing the user to adjust the query scope through the interactive control.

[0041] The present disclosure will be described in detail below with reference to specific embodiments.

[0042] Figure 2 is a flow chart of an information query method according to an exemplary embodiment. The execution subject of this method can be implemented as any terminal device, platform, server or device cluster with computing and processing capabilities. The method includes the following steps:

[0043] As shown in FIG2 , in step 201 , a data query request triggered by a user through a session interface of a target session is received.

[0044] In this embodiment, the target session can be a window in an instant messaging client for transmitting messages between users. The target session can be a one-on-one chat session between two users or a group session between multiple users. After logging into the instant messaging client, the user can send messages to friends / group members in the target session. The user who triggers the data query request is a session member of the target session. This user can be the administrator of the target session, a member designated by the administrator, or any ordinary member of the target session. It will be understood that this embodiment does not limit the specific identity of the target user.

[0045] In one implementation, the data query request triggered by a user in the conversation interface of the target conversation can be a conversation message sent by the user in the target conversation containing preset characters. The conversation message can also include information such as keywords used for the query. For example, the preset characters can include characters that refer to a chatbot, and the conversation message can include the characters that refer to the chatbot followed by information such as keywords used for the query.

[0046] In another implementation, the data query request triggered by the user in the session interface of the target session may also be a data query request entered on a page associated with a preset control after the preset control is triggered in the target session. For example, the preset control may be a control for querying data in a session. The user may trigger the preset control in the target session, causing the instant messaging client to display the page associated with the preset control. The user may enter a data query request including keywords on the page associated with the preset control.

[0047] In step 202, feedback information corresponding to the data query request is obtained.

[0048] In some embodiments, data queries can be managed by the instant messaging server corresponding to the instant messaging client, or by other servers connected to the instant messaging server. The server for managing data queries can access a designated database, which stores at least one information set (for example, the information set can be an online data table), and each information set corresponds to a corresponding object (for example, each online data table can correspond to a chatbot, or a preset control). The target information set is an information set bound to the corresponding object corresponding to the target session (for example, a chatbot added in the target session, or a preset control added in the target session). The target information set includes a first information set (for example, the first information set can be at least a portion of a subtable in an online data table, or the first information set can be information in some rows or columns of at least a portion of a subtable in the first online data table), and the first information set has an association relationship with the target session.

[0049] In step 203, based on the feedback information, a response message is output in the target session, and the response message includes an interactive control for the user to adjust the query scope through the interactive control.

[0050] In this embodiment, the feedback information may be obtained based on a data query request and may include query results and the data source of the queried data. A response message may be output in the target session based on the feedback information. The response message may include an interactive control through which the user can adjust the query scope. After the user adjusts the query scope through the interactive control, a target query result may be obtained based on the adjusted query scope and displayed to the user.

[0051] This disclosure provides a data query method that, upon a user triggering a data query request in a target session, obtains feedback information corresponding to the data query request. Based on the feedback information, the method outputs a response message in the target session, including interactive controls, allowing the user to adjust the query scope through the interactive controls. This provides data query functionality within the session, increases data query flexibility, and enables the query scope to be adjusted based on user needs, improving data query efficiency and user experience.

[0052] Figure 3 is a flow chart of another information query method according to an exemplary embodiment. This embodiment describes the process of obtaining feedback information. The execution subject of this method can be implemented as any terminal device, platform, server or device cluster with computing and processing capabilities. The method includes the following steps:

[0053] As shown in FIG3 , in step 301 , after the chatbot is added as a member of the target session, a conversation message sent by the user through the target session and mentioning the chatbot is received as a data query request.

[0054] In this embodiment, the data query request may be triggered by a user in the target session's conversation interface after the chatbot has been added as a member of the target conversation. Specifically, the data query request may be a conversation message sent by the user in the target conversation that mentions the chatbot and includes information such as the query keyword. For example, the conversation message may include the characters that mention the chatbot followed by the query keyword.

[0055] In step 302, query information is sent to a server, and in step 303, feedback information for the query information is received from the server.

[0056] In this embodiment, data queries can be managed by a server. The server stores at least one information set (e.g., an online data table), each of which can be associated with a chatbot. The chatbot added to a target session is associated with a target information set, which includes a first information set associated with the target session.

[0057] In this embodiment, the instant messaging client may send query information to the server. The query information may include a keyword for querying data, and the query information may also include an identifier of the chatbot and / or an identifier of the target session.

[0058] In one implementation, the server can search for a target information set bound to the chat robot from a stored information set based on the identifier of the chat robot included in the query information, obtain feedback information based on the target information set, and then return the feedback information to the instant messaging client.

[0059] In another implementation, the server may also search for an information set associated with the identifier of the target session from a stored information set based on the identifier of the target session included in the query information, obtain feedback information based on the information set, and then return the feedback information to the instant messaging client.

[0060] In another implementation, the server may also search for a target information set associated with the chatbot from stored information sets based on the chatbot identifier included in the query information. The server then searches the target information set for a first information set associated with the target session identifier. Feedback information is obtained based on the first information set and returned to the instant messaging client.

[0061] In step 304, based on the feedback information, a response message is output in the target session, and the response message includes an interactive control for the user to adjust the query scope through the interactive control.

[0062] In this embodiment, the feedback information may be obtained from a data set associated with the chatbot and / or the target session. The feedback information may include query results and the data source of the queried data. Based on the feedback information, the chatbot may send a response message including an interactive control in the target session via a conversation message, allowing the user to adjust the query scope using the interactive control.

[0063] Since this embodiment performs data query through the chat robot after adding the chat robot as a member of the target session, the flexibility of data query is further increased, which helps to improve the efficiency of data query and user experience.

[0064] FIG4A is a flowchart of another data query method according to an exemplary embodiment. This embodiment describes a process of outputting a response message. The execution subject of this method can be implemented as any terminal device, platform, server, or device cluster with computing and processing capabilities, and includes the following steps:

[0065] As shown in FIG4A , in step 401 , a data query request triggered by a user through a session interface of a target session is received, and in step 402 , feedback information corresponding to the data query request is obtained.

[0066] In this embodiment, based on a data query request triggered by a user through a session interface of a target session, keywords for the query may be obtained, a query scope may be determined, and feedback information may be obtained based on the query scope and the keywords.

[0067] In step 403, based on the feedback information, a response message including an interactive control is output in the target session, and in step 404, a target query result is obtained according to the user's operation of adjusting the query range through the interactive control.

[0068] In one scenario, if the feedback information includes multiple data sources, the interactive control output by the target session may include multiple data source options. These multiple data sources may be multiple different information sets, such as multiple different online data tables, or multiple different sub-tables within a single online data table. It will be appreciated that this embodiment does not limit the specific form of the data source. Specifically, multiple data source options may be provided in the interactive control output by the target session. The user may select a target data source from the multiple data source options, for example, by using a drop-down menu or by checking a box, thereby narrowing the query scope. After the user selects the target data source, the target query results may be obtained from the target data source based on the keywords included in the data query request, and the target query results may be output in the target session.

[0069] As shown in Figure 4B, user a can send a data query request in the conversation of group A. The data query request is the message "@chatbot r technology", where the chatbot r in the message has been added as a conversation member of group A, and "technology" in the message is the query keyword. After the instant messaging client receives feedback information for the data query request, it can output an interactive control 401 in the form of a message sent by the chatbot r in the conversation of group A. If the feedback information includes multiple data sources, the multiple data sources can be displayed in the drop-down menu 402 in the interactive control 401 for the user to select. For example, as shown in Figure 4B, the multiple data sources are a data table named "Customer Relationship Management" and a data table named "Sales Personnel Management".

[0070] In another case, if the feedback information includes multiple query results, for example, the number of query results is less than or equal to a preset number, the interactive control output by the target session may include multiple options corresponding to the multiple query results, so that the user can select a target query result for displaying details from the multiple options. Each query result corresponds to an option, and the content displayed in the interactive control for the option corresponding to any query result may include part of the content in the query result. For example, if the query result is obtained from a data record, the content displayed in the interactive control for the option corresponding to the query result may include the field values ​​of some fields in the data record (such as a field representing a name, a field representing a category, or a field representing an area, etc.) of the query result. The user can select a target query result from the multiple options through the interactive control, and the details of the target query result selected by the user can be displayed in the interactive control.

[0071] As shown in FIG. 4C, also taking the data query request with the content of "@Chatbot r Technology" sent by user a in the conversation of group A as an example, after the instant messaging client receives the feedback information for this data query request, the interactive control 401 is output in the conversation of group A in the form of a message sent by Chatbot r. If the feedback information includes multiple query results, partial contents of the multiple query results (such as the field values of the field for customer name) can be listed in the drop-down menu 403 in the interactive control 401 for the user to select.

[0072] In another case, if the feedback information includes multiple query results, for example, the number of the query results is greater than a preset number (such as 8), one or more filter condition setting controls can be included in the interactive control output in the target conversation. The user can further filter the query results from the feedback information through the filter condition setting control. For example, if the query results are obtained from data records, the filter conditions corresponding to the filter condition setting control can include but are not limited to the creator of the data record, the creation time of the data record, and the field values of one or more fields in the data record (such as the field representing the name, or the field representing the category, or the field representing the region, etc.). The user can set the filter conditions for the data through the filter condition setting control in the interactive control, further filter from the multiple query results according to the filter conditions set by the user to obtain the target query results, and display the target query result details information in the interactive control.

[0073] As shown in FIG. 4D, also taking the data query request with the content of "@Chatbot r Technology" sent by user a in the conversation of group A as an example, after the instant messaging client receives the feedback information for this data query request, the interactive control 401 is output in the conversation of group A in the form of a message sent by Chatbot r. If the feedback information includes multiple query results, the filter condition setting control 404 can be included in the interactive control 401. The user can set the filter conditions for the query data through the filter condition setting control 404 to narrow the query scope based on the filter conditions. As shown in FIG. 4, the filter condition setting control 404 can be used to set filter conditions such as the creation time of the data record and the creator of the data record.

[0074] In this embodiment, since the user can narrow the query scope through the interactive control, the query results can be filtered according to the user's wishes and needs, avoiding searching for data from the query scope that the user is not interested in. This not only improves the efficiency of data query but also improves the user experience.

[0075] It should be noted that although the operations of the methods of the embodiments of the present disclosure are described in a specific order in the above embodiments, this does not require or imply that the operations must be performed in this specific order, or that all of the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flowcharts may be performed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0076] Corresponding to the aforementioned data query method embodiment, the present disclosure also provides an embodiment of a data query device.

[0077] As shown in FIG5 , FIG5 is a block diagram of a data query device according to an exemplary embodiment of the present disclosure. The device may include: a receiving module 501 , an acquiring module 502 and an output module 503 .

[0078] The receiving module 501 is configured to receive a data query request triggered by a user through a session interface of a target session.

[0079] The acquisition module 502 is configured to acquire feedback information corresponding to the data query request.

[0080] The output module 503 is configured to output a response message in the target session based on the feedback information, wherein the response message includes an interactive control for the user to adjust the query scope through the interactive control.

[0081] In some implementations, an interactive control may include multiple data source options.

[0082] The device may further include a display module (not shown in the figure) configured to output query results in the target session in response to a user selecting a data source based on multiple data source options, wherein the query results are obtained from the data source selected by the user based on the data query request.

[0083] In other embodiments, if the feedback information includes multiple query results, the interactive control includes multiple options corresponding to the multiple query results, so that the user can select a target query result for displaying details from the multiple options.

[0084] In other implementations, if the feedback information includes multiple query results, the interactive control includes one or more filter condition setting controls, and the filter condition setting controls are used to further filter the query results from the feedback information.

[0085] In other embodiments, the filtering conditions corresponding to one or more filtering condition setting controls may include one or more of the following: the creator of the data record; the creation time of the data record; and the values ​​of one or more fields in the data record.

[0086] In other implementations, the data query request may include: a conversation message including preset characters sent by the user in the target session; or a data query request input by the user in a page associated with a preset control after the user triggers the preset control in the target session.

[0087] In other embodiments, if the above-mentioned data query request includes a conversation message including preset characters sent by the user in the target conversation, the data query request is triggered after the chat robot is added as a member of the target conversation, the conversation message is a conversation message mentioning the chat robot, and the conversation message includes keywords used for the query.

[0088] In some other embodiments, the acquisition module 502 is configured to send a query message to a server, the query message including a keyword and an identifier of the chatbot and / or an identifier of a target session. The server receives feedback information in response to the query message, the feedback information being obtained from a data set associated with the chatbot and / or the target session.

[0089] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment scheme of the present disclosure. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0090] Figure 6 is a schematic block diagram of an electronic device provided by some embodiments of the present disclosure. As shown in Figure 6, the electronic device 910 includes a processor 911 and a memory 912, which can be used to implement a client or server. The memory 912 is used to store computer-executable instructions (e.g., one or more computer program modules) non-transiently. The processor 911 is used to run the computer-executable instructions, which can execute one or more steps in the data query method described above when the processor 911 runs the computer-executable instructions, thereby implementing the data query method described above. The memory 912 and the processor 911 can be interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0091] For example, the processor 911 may be a central processing unit (CPU), a graphics processing unit (GPU), or other processing units with data processing capabilities and / or program execution capabilities. For example, the central processing unit (CPU) may be an X86 or ARM architecture. The processor 911 may be a general-purpose processor or a dedicated processor, and may control other components in the electronic device 910 to perform desired functions.

[0092] For example, the memory 912 may include any combination of one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), a hard disk, an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, a flash memory, etc. One or more computer program modules may be stored on the computer-readable storage medium, and the processor 911 may execute one or more computer program modules to implement various functions of the electronic device 910. Various applications and various data, as well as various data used and / or generated by the applications, may also be stored in the computer-readable storage medium.

[0093] It should be noted that, in the embodiment of the present disclosure, the specific functions and technical effects of the electronic device 910 can be referred to the above description of the data query method, which will not be repeated here.

[0094] Figure 7 is a schematic block diagram of another electronic device provided by some embodiments of the present disclosure. The electronic device 920 is, for example, suitable for implementing the data query method provided by the embodiment of the present disclosure. The electronic device 920 may be a terminal device, etc., which can be used to implement a client or a server. The electronic device 920 may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable electronic devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc. It should be noted that the electronic device 920 shown in Figure 7 is only an example and does not impose any restrictions on the functions and scope of use of the embodiments of the present disclosure.

[0095] As shown in FIG7 , the electronic device 920 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 921, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 922 or a program loaded from a storage device 928 into a random access memory (RAM) 923. Various programs and data required for the operation of the electronic device 920 are also stored in the RAM 923. The processing device 921, the ROM 922, and the RAM 923 are connected to each other via a bus 924. An input / output (I / O) interface 925 is also connected to the bus 924.

[0096] Typically, the following devices may be connected to the I / O interface 925: an input device 926 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 927 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 928 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 929. The communication device 929 may allow the electronic device 920 to communicate with other electronic devices wirelessly or by wire to exchange data. Although FIG. 7 shows the electronic device 920 having various devices, it should be understood that it is not required to implement or have all of the devices shown, and the electronic device 920 may alternatively implement or have more or fewer devices.

[0097] For example, according to an embodiment of the present disclosure, the above-mentioned data query method can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the above-mentioned data query method. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 929, or installed from the storage device 928, or installed from the ROM 922. When the computer program is executed by the processing device 921, the functions defined in the data query method provided in the embodiment of the present disclosure can be implemented.

[0098] Figure 8 is a schematic diagram of a storage medium provided in some embodiments of the present disclosure. For example, as shown in Figure 8, storage medium 930 may be a non-transitory computer-readable storage medium for storing non-transitory computer-executable instructions 931. When non-transitory computer-executable instructions 931 are executed by a processor, the data query method described in the embodiments of the present disclosure may be implemented. For example, when non-transitory computer-executable instructions 931 are executed by a processor, one or more steps of the data query method described above may be performed.

[0099] For example, the storage medium 930 may be applied to the above electronic device. For example, the storage medium 930 may include a memory in the electronic device.

[0100] For example, the storage medium may include a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a flash memory, or any combination of the above storage media, or other applicable storage media.

[0101] For example, the description of the storage medium 930 can refer to the description of the memory in the embodiment of the electronic device, and the repeated parts are not repeated. The specific functions and technical effects of the storage medium 930 can refer to the description of the data query method above, and are not repeated here.

[0102] It should be noted that in the context of the present disclosure, a computer-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0103] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

[0104] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data query method, the method comprising: Receiving a data query request triggered by a user through a session interface of a target session; Obtaining feedback information corresponding to the data query request; Based on the feedback information, a response message is output in the target session, wherein the response message includes an interactive control for the user to adjust the query scope through the interactive control.

2. The method according to claim 1, wherein: The interactive control includes a plurality of data source options; The method further includes: in response to the user's data source selection operation based on the multiple data source options, outputting a query result in the target session, wherein the query result is obtained from the data source selected by the user based on the data query request.

3. The method according to claim 1, wherein: If the feedback information includes multiple query results, the interactive control includes multiple options corresponding to the multiple query results, so that the user can select a target query result for displaying details from the multiple options.

4. The method according to claim 1, wherein: If the feedback information includes multiple query results, the interactive control includes one or more filter condition setting controls; the filter condition setting controls are used to further filter the query results from the feedback information.

5. The method according to claim 4, wherein: The filtering conditions corresponding to the one or more filtering condition setting controls include one or more of the following: The creator of the data record; The creation time of the data record; The value of one or more fields in a data record.

6. The method according to any one of claims 1 to 5, wherein: The data query request includes: A conversation message including preset characters sent by the user in the target conversation; or The user triggers the preset control in the target session and inputs a data query request in the page associated with the preset control.

7. The method according to claim 6, wherein: If the data query request includes a conversation message including preset characters sent by the user in the target conversation, The data query request is triggered after the chat robot is added as a member of the target conversation, the conversation message is a conversation message mentioning the chat robot, and the conversation message includes a keyword used for the query.

8. According to the method of claim 7, the step of obtaining feedback information corresponding to the data query request comprises: Send query information to the server; The query information includes the keyword and the identifier of the chat robot and / or the identifier of the target session; Feedback information for the query information is received from the server, where the feedback information is obtained from a data set associated with the chatbot and / or the target session.

9. A data query device, comprising: A receiving module, used to receive a data query request triggered by a user through a session interface of a target session; An acquisition module, used to acquire feedback information corresponding to the data query request; An output module is used to output a response message in the target session based on the feedback information, wherein the response message includes an interactive control for the user to adjust the query scope through the interactive control.

10. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 8.

11. An electronic device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 8 is implemented.