Method and device for configuring message card, equipment and storage medium
By configuring the mapping relationship between the message card of the digital assistant and the data source, the problem of developers needing to write the same message card multiple times in traditional solutions is solved, achieving efficient reuse of message cards and reducing cost.
Patent Information
- Application Number
- CN202311433008.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-02
AI Technical Summary
Traditional solutions require developers to write the same message cards for different business contents multiple times, resulting in high time costs.
By obtaining configuration information for the digital assistant, the configuration information indicates the mapping relationship between the message card and the data source, and the digital assistant controls the display of the message card based on the configuration information.
Improve the reusability of message cards, and the same card style can be used for different types of business message display, reducing development and management costs.
Smart Images

Figure CN119922260A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for configuring message cards. Background Art
[0002] With the development of computer technology, various types of digital assistants are widely used in various aspects of people's daily life. For example, people can query weather, traffic and other information through digital assistants.
[0003] In the interactive process of digital assistants, message cards are an important content carrier that can intuitively present information in a structured style. Summary of the invention
[0004] In a first aspect of the present disclosure, a method for configuring a message card is provided. The method comprises: obtaining configuration information for a digital assistant, the configuration information indicating at least one message card for the digital assistant and a data source corresponding to the at least one message card, the configuration information further indicating a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source; and controlling the digital assistant to display the message card based on the configuration information.
[0005] In a second aspect of the present disclosure, a device for configuring a message card is provided. The device includes: an acquisition module configured to acquire configuration information for a digital assistant, the configuration information indicating at least one message card for the digital assistant and a data source corresponding to the at least one message card, and the configuration information further indicating a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source; and a control module configured to control the digital assistant to display the message card based on the configuration information.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0008] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart of a process for configuring a message card according to some embodiments of the present disclosure is shown;
[0012] FIG. 3A to FIG. 3C shows an example interface according to some embodiments of the present disclosure;
[0013] Figure 4 A block diagram showing an apparatus for configuring a message card according to some embodiments of the present disclosure; and
[0014] Figure 5 A block diagram of an electronic device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0015] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0016] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0017] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0018] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0019] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0020] The term "in response to" as used herein refers to a state in which a corresponding event occurs or a condition is satisfied. It will be understood that the timing of executing a subsequent action executed in response to the event or condition is not necessarily strongly related to the time when the event occurs or the condition is satisfied. For example, in some cases, the subsequent action may be executed immediately when the event occurs or the condition is satisfied; while in other cases, the subsequent action may be executed some time after the event occurs or the condition is satisfied.
[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0022] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this article, and any type of embodiment may be included under any section / subsection. In addition, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0023] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.
[0024] As briefly mentioned above, in the interaction process of digital assistants, message cards are an important content carrier that can intuitively present information in a structured style.
[0025] However, traditional solutions require developers to write corresponding message cards for specific business content. For example, although some cards have similar styles, they are associated with different business contents, so developers need to write corresponding message cards multiple times according to different business contents. This greatly increases the time cost of developers.
[0026] To this end, an embodiment of the present disclosure proposes a scheme for configuring a message card. According to various embodiments of the present disclosure, configuration information for a digital assistant can be obtained, the configuration information indicating at least one message card for the digital assistant and a data source corresponding to the at least one message card, the configuration information also indicating a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source; and the digital assistant is controlled to display the message card based on the configuration information.
[0027] In this way, by configuring the mapping between message cards and data sources, the embodiments of the present disclosure can improve the reusability of message cards. For example, the same message card style can be associated with the display of different types of business messages based on different mapping relationships.
[0028] Example embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0029] Example Environment
[0030] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. The environment 100 involves an assistant configuration platform 110 and an assistant application platform 130.
[0031] like Figure 1 As shown, the assistant configuration platform 110 can provide the user 105 with an environment for creating, configuring, and publishing a digital assistant. In some embodiments, the assistant configuration platform 110 can be a low-code platform that provides a collection of tools for creating digital assistants. The assistant configuration platform 110 can support visual development of digital assistants, allowing developers to skip the manual coding process and speed up the development cycle and cost of applications. The assistant configuration platform 110 can support any appropriate platform for users to develop digital assistants and other types of applications, such as a platform based on application platform as a service (aPaaS). Such a platform can support users to efficiently develop applications and implement operations such as application creation and application function adjustment.
[0032] The assistant configuration platform 110 can be deployed locally on the terminal device of the user 105, and / or can be supported by a remote server. For example, the terminal device of the user 105 can run a client of the assistant configuration platform 110, which can support the interaction between the user and the assistant configuration platform 110. In the case where the assistant configuration platform 110 runs locally on the user's terminal device, the user 105 can directly use the client to interact with the local assistant configuration platform 110. In the case where the assistant configuration platform 110 runs on a server-side device, the server-side device can, based on the communication connection with the terminal device, realize the supply of services to the client running in the terminal device. The assistant configuration platform 110 can present a corresponding page 122 to the user 105 based on the operation of the user 105 to output and / or receive information to the user 105.
[0033] In some embodiments, the assistant configuration platform 110 can be associated with a corresponding database, which stores the data or information required for the digital assistant creation process supported by the assistant configuration platform 110. For example, the database can store the code and description information corresponding to each functional module that constitutes the digital assistant. The assistant configuration platform 110 can also perform operations such as calling, adding, deleting, and updating on the functional modules in the database. The database can also store operations that can be performed on different functional blocks. Exemplarily, in a scenario where a digital assistant is to be created, the assistant configuration platform 110 can call the corresponding functional blocks from the database to build a digital assistant.
[0034] In an embodiment of the present disclosure, a user 105 can create a digital assistant 120 as needed on the assistant configuration platform 110 and publish the digital assistant 120. The digital assistant 120 can be published to any appropriate assistant application platform 130, as long as the assistant application platform 130 can support the operation of the digital assistant 120. After publishing, the digital assistant 120 can be used for dialogue interaction with the user 135. The client of the assistant application platform 130 can present an interactive window 132 of the digital assistant 120, such as a conversation window, in the client interface. As an intelligent assistant, the digital assistant 120 has intelligent dialogue and information processing capabilities. The user 135 can enter a conversation message in the conversation window, and the digital assistant 120 can determine the reply message based on the created configuration information and present it to the user in the interactive window 132. In some embodiments, depending on the configuration of the digital assistant 120, the interactive message with the digital assistant 120 may include a message card 140 presented based on the configuration information obtained at the assistant configuration platform 110.
[0035] The assistant configuration platform 110 and / or the assistant application platform 130 can run on appropriate electronic devices. The electronic device here can be any type of device with computing capabilities, including terminal devices or server devices. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. In some embodiments, the assistant configuration platform 110 and / or the assistant application platform 130 can be implemented based on cloud services.
[0036] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. Figure 1 A single user interacting with the assistant configuration platform 110 and a single user interacting with the assistant application platform 130 are shown, but in fact multiple users can access the assistant configuration platform 110 to each create a digital assistant, and each digital assistant can be used to interact with multiple users.
[0037] Some example embodiments of the present disclosure will be described in detail below with reference to the examples of the accompanying drawings. It should be understood that the pages shown in the accompanying drawings are only examples, and various page designs may actually exist. The various graphical elements in the page may have different arrangements and different visual representations, one or more elements may be omitted or replaced, and one or more other elements may also exist. The embodiments of the present disclosure are not limited in this respect.
[0038] Example Process
[0039] Figure 2 FIG. 2 is a flowchart of an example process 200 for configuring a message card according to some embodiments of the present disclosure. The process 200 may be implemented at the assistant configuration platform 110. Figure 1 The process 200 is described below.
[0040] like Figure 2As shown, in block 210, the assistant configuration platform 110 obtains configuration information for the digital assistant 120. The configuration information indicates at least one message card for the digital assistant 120 and a data source corresponding to the at least one message card. The configuration information also indicates a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source.
[0041] The following will refer to FIG. 3A to FIG. 3B To describe an example process of obtaining configuration information. In some embodiments, Figure 3A As shown, the digital assistant 120 can be associated with multiple plug-ins for providing messages, such as plug-in 310 and plug-in 320, for example.
[0042] Such plug-ins 310 and 320 may, for example, provide corresponding application programming interfaces (APIs) so that the digital assistant 120 can obtain corresponding messages by calling the APIs. For example, the digital assistant 120 may be associated with multiple APIs (e.g., API 1 and API 2) of the plug-in 310, and associated with API 3 of the plug-in 320. Such APIs may also be referred to as data sources of the digital assistant 120.
[0043] Furthermore, if Figure 3A As shown, the assistant configuration platform 110 can present a set of application program interface APIs, such as API 330, of a target plug-in (e.g., plug-in 310) associated with the digital assistant 120 in the interface 300A.
[0044] In some embodiments, based on the selection of a target API from a set of APIs, the assistant configuration platform 110 may present a card configuration interface for the target API. Figure 3A As an example, the assistant configuration platform 110 may be associated with the API 330 to provide a configuration entry 340. Upon receiving a selection for the configuration entry 340, the assistant configuration platform 110 may present a configuration entry 340 such as Figure 3B The card configuration interface 300B is shown.
[0045] In some embodiments, in some embodiments, the assistant configuration platform 110 can establish an association between a target data source of the digital assistant and a target message card in a set of preset message cards based on a first configuration operation in the card configuration interface 300B.
[0046] Specifically, Figure 3B As shown, the assistant configuration platform 110 can present a set of card templates for the API 330 in the card configuration interface 300B, for example, card templates 345 - 1 , 345 - 2 , and 345 - 3 (individually or collectively referred to as card templates 345 ).
[0047] In some embodiments, such different card templates may have different card styles, for example. The assistant configuration platform 110 may also present style information of the group of card templates 345 in the card configuration interface 300B.
[0048] In some embodiments, such style information may indicate the display style of the card template 345. For example, Figure 3B As shown, the style information may indicate the layout of a set of display elements in the card template 345 .
[0049] Such a set of display elements may include, for example, a title portion, a picture portion, and a body portion, which may correspond to a set of data fields associated with the card template, such as a title field, a picture field, and a body field.
[0050] In some embodiments, such a card template 345 may be developed by a card developer and published to the assistant configuration platform 110 so that different types of applications in the assistant configuration platform 110 may share the same card style, for example.
[0051] Based on this approach, the embodiments of the present disclosure can support the reuse of the same card style for different digital assistants or different APIs, thereby reducing the cost of card development and management.
[0052] In some embodiments, the assistant configuration platform 110 may also support the configuration party of the digital assistant 120 to create and publish new card styles, for example.
[0053] In some embodiments, the assistant configuration platform 110 may receive a first configuration operation. The first configuration operation may indicate a selection of a target card template from a set of card templates. Figure 3B As an example, the assistant configuration platform 110 may receive a selection for the card template 345 - 3 .
[0054] In some embodiments, the assistant configuration platform 110 may establish an association between the data source (i.e., API 330) of the digital assistant 120 and a target card template (e.g., card template 345-3) in a set of preset card templates. Further, the assistant configuration platform 110 may establish an association between the API 330 and the target message card to be configured corresponding to the card template 345-3.
[0055] In some embodiments, a target card template (e.g., card template 345-3) corresponding to a target message card may be associated with a first set of data fields. Figure 3B As an example, such a first set of fields may include, for example, the title field, picture field, and text field discussed above.
[0056] In some embodiments, the assistant configuration platform 110 may also establish a mapping between the first set of data fields and the second set of data fields based on the second configuration operation, wherein the target data source is associated with the second set of data fields.
[0057] In some embodiments, for different APIs of the plug-in, corresponding message structures may be defined. Taking API 330 as an example, the developer of the API 330 may specify the message structure of the message obtained through the API 330, that is, a set of data fields included in the message.
[0058] Furthermore, the assistant configuration platform 110 may, for example, utilize the card configuration interface 300B to establish a mapping between a first set of data fields of the card template 345 - 3 and a second set of data fields of the API 330 .
[0059] In some embodiments, the assistant configuration platform 110 may present a configuration control for the first data field in the first group of data fields in the card configuration interface 300B. Figure 3B As shown, the assistant configuration platform 110 can present a configuration control 350-1 for the “title field”, a configuration control 350-2 for the “picture field”, and a configuration control 350-3 for the “text field”. The configuration controls 350-1 to 350-3 can be individually or collectively referred to as configuration controls 350.
[0060] Further, the assistant configuration platform 110 may receive a second configuration operation via the configuration control 350. The second configuration operation may, for example, indicate a selection of a second data field in the second set of data fields.
[0061] by Figure 3B As an example, the assistant configuration platform 110 may use the configuration control 350-1 to input a field corresponding to the "title field" in the message structure returned by the API 330. For example, the assistant configuration platform 110 may present one or more data fields in the second group of data fields of the API 330 by a pull-down expansion, and may receive a selection of a second data field in the one or more data fields.
[0062] In some embodiments, the configuration control 350 is configured to present at least one data field in the second set of data fields that matches the first data field. Continuing with the configuration control 350-1 as an example, for the "title field", its data type in the card template 345-3 is a string type. Accordingly, the configuration control 350 can present one or more data fields in the second set of data fields of the API 330 whose data type is a string type or can be converted to a string type as candidates.
[0063] Based on this approach, the embodiments of the present disclosure can further improve the efficiency of card configuration and avoid possible errors caused by data type mismatch.
[0064] In some embodiments, the card configuration interface 300B may also receive other configuration items about the message card. For example, the assistant configuration platform 110 may determine the style of the message card by configuring the control 360, such as a single card, a vertical list, or a horizontal list.
[0065] In some embodiments, the assistant configuration platform 110 may also determine at least one interaction strategy associated with the target message card based on the third configuration operation. Figure 3B As an example, the assistant configuration platform 110 may utilize the configuration control 355 to determine the jump strategy of the target message card, that is, to specify the page after the jump.
[0066] In some embodiments, the assistant configuration platform 110 may also support the definition of other types of interaction strategies, such as click strategy, long press strategy, drag strategy, etc.
[0067] Based on this approach, the embodiments of the present disclosure can support the reuse of developed card styles by establishing a binding between message cards and data sources, thereby greatly reducing the development cost of message cards.
[0068] Although the above reference FIG. 3A to FIG. 3B A specific configuration interface is described. It should be understood that the assistant configuration platform 110 can also obtain configuration information through other appropriate interactive methods, for example, to establish a mapping relationship between a first data field associated with a message card and a second data field associated with a data source.
[0069] In some embodiments, the assistant configuration platform 110 may provide a card preview page based on the acquired configuration information. The card preview page may, for example, display a first message card corresponding to a first message, wherein the first message includes a preset message or a message from a data source.
[0070] In some embodiments, in order to facilitate the perception of the message card corresponding to the configuration information, the assistant configuration platform 110 can provide a preview of the message card corresponding to such configuration information. For example, the assistant configuration platform 110 can provide a debugging interface to support the display of the corresponding message card by obtaining the real-time message of the corresponding data source. As another example, the assistant configuration platform 110 can also display the corresponding message card based on the sample message corresponding to the API.
[0071] In this way, the embodiments of the present disclosure can help the configuration party to intuitively determine whether the input configuration information can obtain a message card that meets expectations, thereby facilitating the configuration party to complete the configuration of the message card more efficiently.
[0072] In some embodiments, the assistant configuration platform 110 can also generate a data object corresponding to at least one message card based on the acquired configuration information. In some embodiments, the data object indicates a second data field corresponding to the first data field of the message card, for example, a specific data field in the message structure of the API 330.
[0073] In some embodiments, the data object may also indicate at least one identification of a message card, such as its style identification, template identification, etc. Alternatively or additionally, the data object may also indicate at least one type of message card. Alternatively or additionally, the data object may also indicate at least one resource address of a message card. The terminal device may obtain the display resource of the template of the message card by accessing such a resource address, and may complete the display of the message card by filling the corresponding data into the template.
[0074] By establishing data objects of message cards, embodiments of the present disclosure can further improve the management efficiency of message cards available in a digital assistant.
[0075] Continue to refer Figure 2 , in box 220, the assistant configuration platform 110 controls the digital assistant 120 to display the message card based on the configuration information.
[0076] Specifically, when the digital assistant obtains a second message from the configured data source, the assistant configuration platform 110 can control the digital assistant 120 to determine a second message card corresponding to the second message based on the configuration information.
[0077] by Figure 3C As an example, when the digital assistant 120 calls the API 330 to obtain a message for providing to the user, the digital assistant 120 can determine based on the configuration information of the message card that the message can correspond to the second message card configured based on the card template 345-3.
[0078] Further, the assistant configuration platform 110 may control the digital assistant 120 to determine the value of at least one data field of the second message card based on the second message and the configuration information. For example, the digital assistant 120 may determine the specific value of the data field in the second message card according to the field mapping relationship indicated in the configuration information. Figure 3BAs an example, if the “Title Field” in the second message card corresponds to a specific field in the message of API 330, the digital assistant 120 can determine the value of the “Title Field” based on the value of the specific field in the message obtained using API 330.
[0079] Furthermore, the assistant configuration platform 110 can control the digital assistant 120 to obtain display resources corresponding to the second message card. For example, the digital assistant 120 can obtain the corresponding display resources based on the resource address defined in the card object of the second message card.
[0080] Additionally, the assistant configuration platform 110 can control the digital assistant 120 to display a second message card based on the display resource and the value of at least one data field. Figure 3C An example interface according to some embodiments of the present disclosure is shown, and the digital assistant 120 can, for example, display a message card 375 according to the display resource (e.g., the display resource of the template) and the value of each field of the message card. Such a message card 375 can be presented in the conversation window 370 of the digital assistant, for example.
[0081] Based on this approach, the embodiments of the present disclosure can support the digital assistant 120 to dynamically determine whether to use a message card for display and which message card to use for display according to the configuration information. Thus, the embodiments of the present disclosure can improve the processing efficiency of message cards in digital assistant interactions.
[0082] Example devices and equipment
[0083] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 4 A schematic structural block diagram of an apparatus 400 for configuring a message card according to some embodiments of the present disclosure is shown. The apparatus 400 may be implemented as or included in the assistant configuration platform 110. Each module / component in the apparatus 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0084] like Figure 4 As shown, the device 400 includes an acquisition module 410, which is configured to acquire configuration information for a digital assistant, the configuration information indicating at least one message card for the digital assistant and a data source corresponding to the at least one message card, and the configuration information also indicates a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source; and a control module 420, which is configured to control the digital assistant to display the message card based on the configuration information.
[0085] In some embodiments, the acquisition module 410 is also configured to: based on a first configuration operation, establish an association between a target data source of the digital assistant and a target message card in a set of preset message cards, wherein the target message card is associated with a first group of data fields, and the target data source is associated with a second group of data fields; and based on a second configuration operation, establish a mapping between the first group of data fields and the second group of data fields.
[0086] In some embodiments, the acquisition module 410 is also configured to: present a set of application programming interface APIs of a target plug-in associated with the digital assistant, the set of APIs corresponding to a set of data sources of the digital assistant; based on a selection of a target API from the set of APIs, present a card configuration interface for the target API, the target API corresponding to the target data source; and receive a first configuration operation and / or a second configuration operation via the card configuration interface.
[0087] In some embodiments, the acquisition module 410 is also configured to: present a set of card templates for the target API in a card configuration interface; and receive a first configuration operation, the first configuration operation indicating a selection of a target card template from a set of card templates, the target message card corresponding to the target card template.
[0088] In some embodiments, the acquisition module 410 is further configured to: present style information of a set of card templates in the card configuration interface.
[0089] In some embodiments, the style information indicates a layout of a set of display elements in a card template, the set of display elements corresponding to a set of data fields associated with the card template.
[0090] In some embodiments, the acquisition module 410 is also configured to: present a configuration control for a first data field in a first group of data fields in a card configuration interface; and receive a second configuration operation via the configuration control, the second configuration operation indicating a selection for a second data field in a second group of data fields.
[0091] In some embodiments, the configuration control is configured to present at least one data field in the second set of data fields that matches the first data field.
[0092] In some embodiments, the acquisition module 410 is further configured to: determine at least one interaction strategy associated with the target message card based on the third configuration operation.
[0093] In some embodiments, the acquisition module 410 is further configured to: provide a card preview page based on the configuration information, the card preview page displays a first message card corresponding to the first message, and the first message includes a preset message or a message from a data source.
[0094] In some embodiments, the apparatus 400 further includes a generating module configured to: generate a data object corresponding to at least one message card based on the configuration information, wherein the data object indicates a second data field corresponding to the first data field.
[0095] In some embodiments, the data object further indicates at least one of the following information: an identifier of at least one message card; a type of at least one message card; and a resource address of at least one message card.
[0096] In some embodiments, the control module 420 is also configured to: when the digital assistant obtains a second message from a data source, control the digital assistant to determine a second message card corresponding to the second message based on the configuration information; control the digital assistant to determine the value of at least one data field of the second message card based on the second message and the configuration information; control the digital assistant to obtain display resources corresponding to the second message card; and control the digital assistant to display the second message card based on the display resources and the value of at least one data field.
[0097] Figure 5 1 shows a block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 5 The electronic device 500 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 5 The electronic device 500 shown can be used to implement Figure 1 The assistant configures the platform 110 .
[0098] like Figure 5 As shown, the electronic device 500 is in the form of a general electronic device. The components of the electronic device 500 may include, but are not limited to, one or more processors or processing units 510, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processing unit 510 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 520. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 500.
[0099] The electronic device 500 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 500.
[0100] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 5 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0101] The communication unit 540 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0102] The input device 550 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 560 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 may also communicate with one or more external devices (not shown) through the communication unit 540 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 500, or communicate with any device that allows the electronic device 500 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0103] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0104] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0105] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0106] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0107] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0108] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for configuring a message card, comprising: Obtaining configuration information for a digital assistant, the configuration information indicating at least one message card for the digital assistant and a data source corresponding to the at least one message card, the configuration information further indicating a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source; as well as Control the digital assistant to display a message card based on the configuration information.
2. The method according to claim 1, wherein obtaining configuration information for a digital assistant comprises: Based on the first configuration operation, establishing an association between a target data source of the digital assistant and a target message card in a set of preset message cards, wherein the target message card is associated with a first set of data fields, and the target data source is associated with a second set of data fields; as well as Based on a second configuration operation, a mapping between the first set of data fields and the second set of data fields is established.
3. The method according to claim 2, further comprising: Presenting a set of application programming interfaces (APIs) of target plug-ins associated with the digital assistant, the set of APIs corresponding to a set of data sources of the digital assistant; Based on the selection of a target API from the set of APIs, presenting a card configuration interface for the target API, the target API corresponding to the target data source; as well as The first configuration operation and / or the second configuration operation is received via the card configuration interface.
4. The method according to claim 3, wherein receiving the first configuration operation via the card configuration interface comprises: Presenting a set of card templates for the target API in the card configuration interface; as well as The first configuration operation is received, the first configuration operation indicating selection of a target card template from the set of card templates, the target message card corresponding to the target card template.
5. The method according to claim 4, further comprising: The style information of the set of card templates is presented in the card configuration interface. 6 . The method of claim 5 , wherein the style information indicates a layout of a set of display elements in a card template, the set of display elements corresponding to a set of data fields associated with the card template.
7. The method according to claim 3, wherein receiving the second configuration operation via the card configuration interface comprises: Presenting, in the card configuration interface, a configuration control for the first data field in the first group of data fields; as well as The second configuration operation is received via the configuration control, the second configuration operation indicating a selection of the second data field in the second set of data fields.
8. The method of claim 7, wherein the configuration control is configured to present at least one data field of the second set of data fields that matches the first data field.
9. The method according to claim 2, further comprising: Based on the third configuration operation, at least one interaction strategy associated with the target message card is determined.
10. The method according to claim 1, further comprising: Based on the configuration information, a card preview page is provided, and the card preview page displays a first message card corresponding to a first message, where the first message includes a preset message or a message from the data source.
11. The method according to claim 1, further comprising: Based on the configuration information, a data object corresponding to the at least one message card is generated, and the data object indicates the second data field corresponding to the first data field.
12. The method according to claim 1, wherein the data object further indicates at least one of the following information: an identifier of the at least one message card; the type of the at least one message card; The resource address of the at least one message card.
13. The method according to claim 1, wherein controlling the digital assistant to display a message card based on the configuration information comprises: When the digital assistant obtains a second message from the data source, controlling the digital assistant to determine a second message card corresponding to the second message based on the configuration information; Controlling the digital assistant to determine a value of at least one data field of the second message card based on the second message and the configuration information; Controlling the digital assistant to obtain display resources corresponding to the second message card; as well as The digital assistant is controlled to display the second message card based on the display resource and the value of at least one data field.
14. A device for configuring a message card, comprising: an acquisition module configured to acquire configuration information for a digital assistant, the configuration information indicating at least one message card for the digital assistant and a data source corresponding to the at least one message card, the configuration information further indicating a mapping relationship between a first data field associated with the at least one message card and a second data field associated with the data source; as well as A control module is configured to control the digital assistant to display a message card based on the configuration information.
15. An electronic device, comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 13 when executed by the at least one processing unit.
16. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 13.
Citation Information
Cited By
Method and apparatus for configuring message card, device, and storage medium
EP4586598A1
Method and apparatus for configuring message card, device, and storage medium
WO2025091788A1