Artificial intelligence-based recharging two-dimensional code generation method and device, storage medium and program product

Through AI intelligent customer service, renewal guidance information and QR codes are generated based on merchant portraits, the complex recharge process in Internet customer service is solved, and user experience and operation flexibility is improved.

CN119477304AInactive Publication Date: 2025-02-1858 CHANG LIFE (BEIJING) INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411253472.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-07
Publication Date
2025-02-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In existing Internet customer service, when users purchase and recharge service information, the interactive links are complex, affecting the user experience.

Method used

Through AI intelligent customer service, it actively generates renewal guidance information based on the merchant’s portrait. Merchants enter renewal description information on the interactive page, and AI intelligent customer service generates QR codes to simplify the recharge process.

Benefits of technology

It simplifies user operation processes, reduces the complexity of interactive links, and improves operational flexibility and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119477304A_ABST
    Figure CN119477304A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a recharging two-dimensional code generation method and device based on artificial intelligence, a storage medium and a program product. In the embodiment of the invention, the merchant interacts with the AI intelligent customer service through the interaction page, and the AI intelligent customer service actively pushes the renewal guide information for the target service product to the target merchant based on the merchant portrait of the target merchant, so that the merchant inputs the renewal description information on the interaction page; a two-dimensional code corresponding to renewal description information is generated through an AI intelligent customer service and is returned to a merchant on an interaction page, so that the merchant performs resource recharging for a target service product based on the two-dimensional code, the merchant interacts with the AI intelligent customer service on the interaction interface, and the AI intelligent customer service actively pushes services to the merchant and generates the two-dimensional code, so that resource recharging is performed on the target service product based on the two-dimensional code. The method and device help merchants to carry out resource recharging, and are beneficial to simplifying the operation process of users, reducing the complexity of interaction links, improving the operation flexibility, reducing the user interaction cost and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a recharge QR code generation method, device, storage medium and program product based on artificial intelligence. Background Art

[0002] In the Internet industry, online customer service is increasingly being used. In particular, the intelligent customer service provided by the intelligent customer service system can replace the manual customer service to interact with users and solve their problems. The intelligent customer service system can push some service information to all users to recommend the service information to users. However, the service information recommended to users may not match their needs, which may cause interference to users.

[0003] Furthermore, if the user needs to use the service information, he can purchase the service information. For example, by clicking on the service information to jump to the order page of the service information, searching for the service information on the page, browsing and selecting the recharge method, recharge amount, resource type, etc. of the service information, and then paying the corresponding amount to purchase the service product. The entire purchase process has problems such as complex and diverse interactive links and inflexibility, which affects the user experience. Summary of the invention

[0004] Multiple aspects of the present application provide a recharge QR code generation method, device, storage medium and program product based on artificial intelligence, which is conducive to simplifying the user's operation process, reducing the complexity of the interactive link, improving operation flexibility, reducing user interaction costs, and improving user experience.

[0005] The embodiment of the present application provides a resource recharge method based on artificial intelligence, which is applicable to a terminal device. The terminal device runs a target application, which is a life service application or a social application. The target application provides a first page, and the first page is used for the target merchant to interact with the AI ​​intelligent customer service. The method includes: in the process of running the target application, receiving renewal guidance information for the target service product sent by the server device; the renewal guidance information is generated based on the merchant portrait of the target merchant by the AI ​​intelligent customer service; on the first page currently visited, displaying reminder information of the renewal guidance information; in response to the triggering operation of the reminder information, displaying the renewal guidance information on the second page to guide the target merchant to enter the renewal description information; in response to the input operation of the target merchant on the second page, obtaining the renewal description information; providing the renewal description information to the AI ​​intelligent customer service, so that the AI ​​intelligent customer service generates the QR code information corresponding to the renewal description information based on the intent recognition model and the AI ​​language model, and sends it to the terminal device; receiving the QR code information sent by the server, and displaying it on a third page, the third page is the same as or different from the second page; recharging resources for the target service product according to the QR code information.

[0006] The embodiment of the present application also provides a QR code generation method based on artificial intelligence, which is applicable to a server-side device. The server-side device runs an artificial intelligence (AI) smart customer service. The AI ​​smart customer service provides target service products to various merchants. The target service products have validity period attributes and resource attributes. The method includes: determining a target merchant using the target service product; determining the remaining validity period and remaining resource amount of the target service product used by the target merchant based on the validity period attribute and resource attribute of the target service product used by the target merchant; if it is identified that at least one of the remaining validity period and the remaining resource amount of the target service product used by the target merchant meets the corresponding renewal reminder condition, obtaining a merchant portrait of the target merchant; calling the intent recognition model and the AI ​​language model included in the AI ​​smart customer service through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, and providing it to the terminal device corresponding to the target merchant; receiving renewal description information sent by the terminal device corresponding to the target merchant, the renewal description information is initiated by the target merchant based on the renewal guidance information; calling the AI ​​language model through the renewal description information to call the renewal tool based on the renewal description information to generate QR code information corresponding to the renewal description information; returning the QR code information to the terminal device so that the target merchant can recharge resources for the target service product based on the QR code.

[0007] An embodiment of the present application also provides an electronic device, comprising: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program to implement each step in the artificial intelligence-based resource recharge method provided in the embodiment of the present application.

[0008] The embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements each step of the artificial intelligence-based resource recharge method provided in the embodiment of the present application.

[0009] The embodiment of the present application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the processor implements each step in the artificial intelligence-based resource recharge method provided in the embodiment of the present application.

[0010] In an embodiment of the present application, the merchant interacts with the AI ​​intelligent customer service through an interactive page. The AI ​​intelligent customer service actively pushes renewal guidance information for the target service product to the target merchant based on the merchant portrait of the target merchant, so that the merchant enters the renewal description information on the interactive page, generates a QR code corresponding to the renewal description information through the AI ​​intelligent customer service, and returns it to the merchant on the interactive page, so that the merchant can recharge resources for the target service product based on the QR code. The merchant interacts with the AI ​​intelligent customer service on the interactive interface, and the AI ​​intelligent customer service actively pushes services to the merchant, generates QR codes, and assists the merchant in recharging resources, which is conducive to simplifying the user's operating process, reducing the complexity of the interactive link, improving operational flexibility, reducing user interaction costs, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0012] Figure 1 A flowchart of a resource recharge method based on artificial intelligence provided for an exemplary embodiment of the present application;

[0013] Figure 2a A schematic diagram of a third page provided for an exemplary embodiment of the present application;

[0014] Figure 2b An architectural diagram of a server and a terminal device provided for an exemplary embodiment of the present application;

[0015] Figure 2c A network communication diagram of a server and a terminal device provided for an exemplary embodiment of the present application;

[0016] Figure 3 A flowchart of another artificial intelligence-based resource recharge method provided for an exemplary embodiment of the present application;

[0017] Figure 4 A schematic diagram of the structure of a resource recharge device based on artificial intelligence provided by an exemplary embodiment of the present application;

[0018] Figure 5 A schematic structural diagram of an electronic device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0021] The various models involved in this application (including but not limited to language models or large models) are in compliance with relevant laws and standards.

[0022] In response to the above technical problems, in an embodiment of the present application, the merchant interacts with the AI ​​intelligent customer service through an interactive page. The AI ​​intelligent customer service actively pushes renewal guidance information for the target service product to the target merchant based on the merchant portrait of the target merchant, so that the merchant enters the renewal description information on the interactive page, generates a QR code corresponding to the renewal description information through the AI ​​intelligent customer service, and returns it to the merchant on the interactive page, so that the merchant can recharge resources for the target service product based on the QR code. The merchant interacts with the AI ​​intelligent customer service on the interactive interface, and the AI ​​intelligent customer service actively pushes services to the merchant, generates QR codes, and assists the merchant in recharging resources, which is conducive to simplifying the user's operation process, reducing the complexity of the interactive link, improving operational flexibility, reducing user interaction costs, and improving user experience.

[0023] A solution provided by an embodiment of the present application is described in detail below in conjunction with the accompanying drawings.

[0024] Figure 1 A flow chart of a resource recharge method based on artificial intelligence provided for an exemplary embodiment of the present application is applicable to a terminal device, the terminal device runs a target application, the target application is a life service application or a social application, the target application provides a first page, and the first page is used for the target merchant to interact with the AI ​​intelligent customer service, such as Figure 1 As shown, the method includes:

[0025] 101. During the operation of the target application, the renewal guidance information for the target service product sent by the server device is received. The renewal guidance information is generated by the AI ​​intelligent customer service based on the merchant portrait of the target merchant;

[0026] 102. Displaying a reminder message of renewal guidance information on the first page currently visited;

[0027] 103. In response to the triggering operation of the reminder information, display renewal guidance information on the second page to guide the target merchant to enter renewal description information;

[0028] 104. Responding to the input operation of the target merchant on the second page, obtaining renewal description information;

[0029] 105. Provide the renewal description information to the AI ​​intelligent customer service, so that the AI ​​intelligent customer service generates the QR code information corresponding to the renewal description information based on the intent recognition model and the AI ​​language model, and sends it to the terminal device;

[0030] 106. Receive the QR code information sent by the server, and display it on a third page, where the third page is the same as or different from the second page;

[0031] 107. Recharge resources for target service products according to the QR code information.

[0032] In this embodiment, a life service platform is provided, which can be implemented through a mobile phone application (APP), a web page, or a mini program, without limitation. The life service platform is a link between merchants and service demanders. Service demanders can obtain the required services on the platform, and merchants can publish their own services on the life service platform. The service content includes but is not limited to: moving, cleaning, confinement nanny, maintenance, renting, used cars and other fields.

[0033] In this embodiment, a target application corresponding to the life service platform is running on the terminal device. The target application can be any type of application. For example, the target application can include but is not limited to: social applications, shopping applications, life service applications, and online learning applications.

[0034] In this embodiment, a first page is provided on the target application, and the first page may be any page of the target application, for example, the first page may be a home page, a search page, or a chat page, etc., and there is no limitation on this.

[0035] In this embodiment, during the operation of the target application, the renewal guidance information for the target service product sent by the server device is received. The renewal guidance information is generated by the AI ​​intelligent customer service based on the merchant portrait of the target merchant. For the implementation method of generating the renewal guidance information, please refer to the subsequent embodiments, which will not be repeated here.

[0036] In this embodiment, the service product is a service provided by the server device to the merchant, and the target service product can be any service product used by the target merchant. For example, the target service product can include but is not limited to: marketing promotion service products, store management products, data analysis products, and payment products. The renewal guidance information corresponding to the target service product refers to the renewal service for the resource usage period and resource volume of the target service product. For example, assisting or guiding the merchant to continue to use the target service product to enhance the merchant's experience.

[0037] In this embodiment, when receiving renewal guidance information for a target service product, a reminder of the renewal guidance information is displayed on the first page currently visited. In response to a triggering operation of the reminder information, the renewal guidance information is displayed on the second page to guide the target merchant to enter renewal description information.

[0038] For example, if the first page is a video page, a short video page, or a chat page with other friends, the reminder information can be displayed on the first page in the form of a notification bar, bubble, pop-up window, etc. When the user triggers the reminder message, the recommended information is displayed on the second page in response to the triggering operation of the reminder information. For another example, the first page is a chat list page, and the chat list page includes: a dialog box between the merchant and the AI ​​intelligent customer service. The reminder information of the recommended message can be displayed in the associated area of ​​the dialog box, such as displaying a red dot or displaying the number of unread messages. When the dialog box is punished, the recommended information can be displayed on the second page in response to the triggering operation on the dialog box.

[0039] It should be noted that the second page can be the same as the first page, or the second page can be different from the first page. In this case, in response to the triggering operation of the reminder information, you can jump from the first page to the second page and display the recommended information on the second page.

[0040] In this embodiment, the renewal description information is obtained in response to the input operation of the target merchant on the second page. For example, the user may initiate an input operation on the second page, and the input operation may include but is not limited to: a voice input operation, a keyboard input operation, or a handwriting input operation. The terminal device may obtain the renewal description information in response to the user's input operation on the second page. The number of renewal description information may be one or more. The second page may be a chat page.

[0041] In this embodiment, the renewal description information is provided to the AI ​​intelligent customer service so that the AI ​​intelligent customer service generates the QR code information corresponding to the renewal description information and sends the renewal description information to the terminal device. For a detailed description of generating the renewal description information, please refer to the subsequent embodiments, which will not be described in detail here.

[0042] In this embodiment, the QR code information sent by the server is received and displayed on a third page, which is the same as or different from the second page; and resources are recharged for the target service product according to the QR code information. For example, the merchant can scan the QR code information through the "Scan" function, and the terminal device responds to the scanning operation and displays the payment page, which includes the resource recharge type (such as gold coins or promotional coins, etc.), the amount (such as 50) and the description information of the target service product. The payment page includes a payment control, and when the payment control is triggered, resources are recharged for the target service product.

[0043] In an embodiment of the present application, the merchant interacts with the AI ​​intelligent customer service through an interactive page. The AI ​​intelligent customer service actively pushes renewal guidance information for the target service product to the target merchant based on the merchant portrait of the target merchant, so that the merchant enters the renewal description information on the interactive page, generates a QR code corresponding to the renewal description information through the AI ​​intelligent customer service, and returns it to the merchant on the interactive page, so that the merchant can recharge resources for the target service product based on the QR code. The merchant interacts with the AI ​​intelligent customer service on the interactive interface, and the AI ​​intelligent customer service actively pushes services to the merchant, generates QR codes, and assists the merchant in recharging resources, which is conducive to simplifying the user's operating process, reducing the complexity of the interactive link, improving operational flexibility, reducing user interaction costs, and improving user experience.

[0044] In an optional embodiment, the second page or the third page is associated with a component library, wherein the component library may be provided by the AI ​​intelligent customer service for use with the second page. Specifically, when the terminal device displays the second page, the server device corresponding to the AI ​​intelligent customer service may send the component library to the terminal device corresponding to the second page. Further, the component library may be sent to the terminal device in real time by the server device each time the second component is displayed, or the component library may be sent when the second page is displayed for the first time. Alternatively, when the second page is displayed, determine whether there is a component library associated with the second page locally in the terminal. If not, request the server device corresponding to the AI ​​intelligent customer service to send the component library.

[0045] It should be noted that the second page can also be opened through a small program, a web page, etc. The second page can be a HyperText Markup Language Version 5 page (HyperText Markup Language, H5).

[0046] In this embodiment, the component library includes a message component and multiple display components adapted to multiple message types. Among them, the message component is used to display multiple display components on the page. The message component can carry one or more display components. In the case of multiple display components, multiple display components can be displayed in combination, or multiple display components can be displayed separately in the message component. The style of the message component can be a message box or bubble in the page, etc. The size of the message component is related to its content. If the size of one or more display components included in the message component is larger, the message component is also larger. Conversely, if the size of one or more display components included in the message component is smaller, the message component is also smaller. Among them, the message component can also display plain text information, which is generally the interactive content between AI intelligent customer service and users.

[0047] The display component is an interface element used to display data. The data displayed by display components of different message types are also different. Display components may include but are not limited to: rich text components (image-text-box), phone components (phone-box), picture components, video components, and card components (card-box). Figure 2a Some components are shown as examples, but are not limited to them. Figure 2a It also includes: identification information corresponding to the AI ​​intelligent customer service and a closing component, such as a trademark (LOGO), wherein the closing component is used to close the identification information and no longer display it.

[0048] Among them, the rich text component is a component for displaying formatted text information. It can also display pictures or web page content. The form is intuitive and does not require users to interpret word by word. For example, rich text usually refers to text that contains elements such as bold, italic, underline, font style, size, color, paragraph alignment, list, link, image, etc. The phone component is usually used to display phone numbers, and can also include phone-related functions, such as making calls, copying phone numbers, etc. The phone component can be a simple display component or a display component with interactive functions, such as dialing the number corresponding to the component by clicking on the phone component. The picture component is used to display picture information, and the video component is used to display video information. The card component can display user information (such as merchant information) and service product information, generally including detailed information of the merchant or product, which is displayed independently in the form of a card to highlight the core content.

[0049] In an optional embodiment, the implementation method of displaying the renewal guidance information on the second page is not limited. The following provides a specific implementation method, parsing the renewal guidance information to obtain at least one sub-message and its message type included in the renewal guidance information; according to the at least one sub-message and its information type, selecting at least one target display component adapted to the at least one sub-message from multiple display components included in the component library; embedding the at least one sub-message into at least one target display component adapted thereto, and using the message component to display the at least one target display component embedded in the at least one sub-message on the second page. Among them, an adaptation target display component can be selected for each message type of sub-message. For example, a rich text sub-message is adapted to a rich text display component, a telephone message is adapted to a telephone component, a picture information is adapted to a picture component, a video information is adapted to a video component, etc. Among them, a display component can carry one or more sub-messages adapted to the message type. Among them, each display component is displayed on the interactive page through the message component to enrich the information display type and enhance the user experience. Further, the corresponding service product information can also be displayed and promoted through different display components.

[0050] In an optional embodiment, considering that the message component package or the display component corresponds to a component template, the component template can reflect the HTML structure and layout of the component. The component template includes: state information and property information. For the convenience of distinction and description, the component template corresponding to the display component is called the first component template, and the template corresponding to the message component is called the second component template. Among them, the property information is used for data transfer between components, for example, data transfer between components. The state information is used to manage the state and changes of the component itself. For example, the state information is used to store the dynamic data of the component, such as the service demand description information entered by the user or the renewal guidance information returned by the AI ​​intelligent customer service.

[0051] Based on this, an implementation method of embedding at least one sub-message into at least one target display component may be to use any sub-message as the state information of the first component template of its adapted target display component for any sub-message, so as to embed any sub-message into its adapted target display component.

[0052] Optionally, the implementation method of using the message component to display at least one target display component embedded in at least one sub-message on the third page is not limited. For example, at least one first component template of at least one target display component is introduced into the second component template of the message component to realize the nested relationship between the message component and the at least one target display component. The attribute information of the second component template includes global visualization attribute information; according to the global visualization information, the local visualization information of at least one target display component in the message component is determined, and the local visualization information is added to the first component template corresponding to the target display component adapted thereto; for example, the local visualization information is used as the attribute information of the first component template corresponding to the target display component adapted thereto. Based on the nested relationship, the second component template and the at least one first component template, the message component and the at least one target display component are rendered to display the at least one target display component in the message component on the third page, so as to display at least one sub-message through the at least one target display component.

[0053] Among them, based on the nested relationship, at least one target component can be displayed in the message component according to the local visualization attribute information, and based on the status information in the first component template, the sub-message corresponding to the status information can be displayed in the target display component corresponding to the first component template.

[0054] Among them, the visual attributes include but are not limited to: theme, color scheme, font size, border style, etc. Global visual information refers to the visual information of the message component, and local visual information can be the visual information of each target display component. The visual information of different target display components can be the same or different. For example, the size information of different target display components may be different. Specifically, the size information of each target display component can be determined based on the size information of the message component and the number of target display components. For another example, in order to unify the style, the background color and border style of the message component and each target display component can be the same.

[0055] In an optional embodiment, the multiple display components included in the component library further include an input-area component, which is used to input new service requirement description information, such as renewal description information. The service requirement description information can be displayed on the third page through a message component.

[0056] Optionally, if it is detected that the third page has not received a new message within a set time, the topic component is displayed on the third page through a dynamic effect to attract users to click. The set time can be 5 seconds, 3 minutes or 10 minutes, etc., which is not limited. The dynamic effect can be a slight jitter of the page. Further, when displaying the topic component, random topic information can be actively displayed. The random topic information can be found in the following embodiments, which will not be described here. For example, the topic component can be a dice component (dice-area).

[0057] Optionally, when a topic component is included on the third page, in response to a trigger operation on the topic component, random topic information for the user is returned and displayed through the AI ​​intelligent customer service according to the user portrait corresponding to the user. Among them, the user portrait may include but is not limited to: user description information, service products purchased by the user, user resource information, user behavior, needs and preferences, etc. Random topic information may include but is not limited to: user resource shortage reminder information, service product expiration reminder information, renewal guidance information, and guidance posting information, etc. Of course, random topic information can also include: user preference information, jokes, etc.

[0058] Optionally, the method provided in the embodiment of the present application supports both active display of random topic information and display of random topic information in response to a trigger operation on a topic component. For detailed description, please refer to the aforementioned embodiment.

[0059] In an optional embodiment, the multiple display components also include a time component; in response to the message component being displayed on the third page, the current time is obtained through the time component, and the current time is passed to the message component through the time component, so that the message component uses the current time as its display time.

[0060] In an optional embodiment, the third page further includes a loading-box; the information display method further includes: when the service requirement description information is provided to the AI ​​intelligent customer service and the service result information corresponding to the service requirement description information is not received, displaying the loading-box, and when the service result information is received, canceling the display of the loading-box. Further, the reception time of the service result information can be displayed through a time component.

[0061] In an optional embodiment, in addition to displaying the renewal guidance information through the target display component, the renewal description information can also be displayed through the message component and the display component in the component library. The detailed implementation method is the same or similar to the method of displaying the renewal guidance information. For details, please refer to the aforementioned embodiment and will not be repeated here.

[0062] In an optional embodiment, a connection is established between the server device and the terminal device via server-sent events (SSE). The server device may establish an SSE connection with at least one terminal device, such as Figure 2b As shown, the server device establishes an SSE connection with three terminal devices as an example. The server device includes a communication module (SSE Endpoint), AI intelligent customer service (backend logic) and its corresponding service tools (backend interface), and the terminal device includes various components, such as time component, message component, card component, rich text component, phone component, loading component, input box component and topic component.

[0063] The implementation method of receiving renewal guidance information for a target service product sent by a server device includes: when the server device sends the renewal guidance information to the terminal device via the SSE protocol, the terminal device monitors the renewal guidance information sent by the server device based on the SSE interface. The SSE interface can be an EventSource object, which is a client API introduced by HTML5 and is used to implement a real-time communication mechanism for a server to push data to a client. Figure 2c A network communication diagram of a server and terminal device provided for an exemplary embodiment of the present application.

[0064] Among them, SSE establishes a persistent connection until the client disconnects or the server closes the connection, with low latency. Compared with the polling mechanism, SSE can push data to the client faster and is easy to use: SSE is relatively simple to implement and easy to integrate into existing Web applications. Among them, when the SSE connection is established, there is no need for the terminal device to actively send messages to the server device. The server can also actively push information to the terminal device, and the number of pushed messages is not limited.

[0065] Since SSE is suitable for scenarios with frequent updates, low latency, and from server-side devices to mid-terminal devices. In addition, when there is an associated component library, there is no need to add any new components, and any back-end language and framework can be used without creating a new IP or a new port number. SSE can operate on the existing HTTP / HTTPS protocol, so it can run directly on existing server devices. Among them, HTTP (HyperText Transfer Protocol) is an application layer protocol used to transfer hypertext from a Web server to a client program such as a local browser.

[0066] In an optional embodiment, during the communication between the terminal device and the server, the third page will continuously obtain the latest information and display the content word by word by utilizing the feature of SSE that can receive messages one by one. Each character will be gradually displayed on the third page at a certain speed to ensure that the user can clearly read and understand the information. This display method can not only improve the user experience, but also increase the interactivity and fun of information display, and avoid visual fatigue caused by displaying large blocks of content at one time.

[0067] The page display method provided in the embodiment of the present application has the following advantages:

[0068] 1. Reduce development costs: Through component-based design: split the page elements in the third page into different components, achieving high reusability and adaptability. Each component has independent functions and is modular, easy to maintain and update, and can be reused in different scenarios, reducing development costs and having high flexibility and adaptability. In later development, you only need to use existing components to quickly build a UI page with real-time chat function (such as the second page or the third page), reducing the workload of repeated development and reducing development costs.

[0069] 2. Improve user experience: 1) Rich information display: In the chat content, core product information, such as merchant details, product introduction, etc., can be displayed in the form of cards, making important information more intuitive and prominent. 2) Convenient contact function: The phone component allows users to directly click to make a call and quickly get in touch with the company, simplifying the user's operation process and effectively acquiring and retaining customers. 3) Interaction guidance: The topic component provides a random topic generation function. When the user does not have a clear question, a random topic is generated by clicking the topic component to increase the fun of the interaction and maintain user participation.

[0070] 3. Reliability and real-time performance: 1) By utilizing the characteristics of SSE (such as long connection, low latency, lightweight, etc.), it is possible to ensure that the server pushes real-time updated information to the client. SSE is a lightweight server push technology that can maintain a persistent connection between the terminal and the server, achieve low-latency message push, and ensure the real-time and reliability of the message. 2) Instant response: After the user enters the service requirement description information, the AI ​​intelligent customer service can quickly analyze and provide the corresponding service result information, ensuring the continuity and timeliness of the conversation, and improving user satisfaction.

[0071] In summary, this application not only improves the development and maintenance efficiency of the AI ​​interaction system through the combination of componentized design and SSE technology, but also significantly improves the user experience and the real-time and reliability of data transmission, providing developers and users with an efficient, reliable and easy-to-use AI interaction solution.

[0072] The embodiment of the present application also provides a method for generating a QR code based on artificial intelligence. The method is applicable to a server-side device. The server-side device runs an artificial intelligence AI intelligent customer service. The AI ​​intelligent customer service provides target service products for various merchants. The target service products have validity period attributes and resource attributes, such as Figure 3 As shown, the method includes:

[0073] 301. Determine the target merchants who use the target service products;

[0074] 302. Determine the remaining validity period and remaining resource amount of the target service product used by the target merchant according to the validity period attribute and resource attribute of the target service product used by the target merchant;

[0075] 303. If it is identified that at least one of the remaining validity period and the remaining resource amount of the target service product used by the target merchant meets the corresponding renewal reminder condition, a merchant portrait of the target merchant is obtained;

[0076] 304. Calling the intent recognition model and AI language model included in the AI ​​intelligent customer service through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, and providing it to the terminal device corresponding to the target merchant;

[0077] 305. Receive renewal description information sent by a terminal device corresponding to the target merchant, where the renewal description information is initiated by the target merchant according to the renewal guidance information;

[0078] 306. Calling the AI ​​language model through the renewal description information to call the renewal tool to generate QR code information corresponding to the renewal description information according to the renewal description information;

[0079] 307. Return the QR code information to the terminal device so that the target merchant can recharge resources for the target service product according to the QR code.

[0080] In this embodiment, the target service product has a validity period attribute and a resource attribute. The validity period attribute refers to the validity period of the service product, for example, the validity period can be 1 month, 3 months, half a year or a year. The resource attribute refers to the amount of resources of the target service product, for example, the number of gold coins and promotion coins of the target service product.

[0081] In this embodiment, for the target service product, the target merchant using the target service product can be determined. For example, according to the identification information of the target service product, the target merchant using the target service product is obtained. The number of the target merchant can be one or more.

[0082] In this embodiment, the remaining validity period and the remaining resource amount of the target service product used by the target merchant are determined according to the validity period attribute and the resource attribute of the target service product used by the target merchant; if it is identified that at least one of the remaining validity period and the remaining resource amount of the target service product used by the target merchant meets the corresponding renewal reminder condition, the merchant portrait of the target merchant is obtained. That is, if the remaining validity period of the target service product used by the target merchant meets the validity period renewal reminder condition, the merchant portrait of the target merchant can be obtained; or, if the remaining resource amount of the target service product used by the target merchant meets the resource amount renewal reminder condition, the merchant portrait of the target merchant is obtained; or, if the remaining validity period of the target service product used by the target merchant meets the validity period renewal reminder condition, and the remaining resource amount of the target service product used by the target merchant meets the resource amount renewal reminder condition, the merchant portrait of the target merchant is obtained.

[0083] Among them, the validity period renewal reminder condition may be that the validity period is less than 1 day, 3 days or half a month, etc., and the resource quantity renewal reminder condition may be that the remaining resource quantity is less than the set resource quantity threshold. For example, the resource quantity threshold may be 5 gold coins, 10 promotional coins, etc.

[0084] The merchant portrait may include but is not limited to: the merchant's behavior data, the merchant's description information, the target merchant's use of service products status information and the merchant's description information. The merchant's description information includes but is not limited to: the merchant's geographical location, service category (such as nanny or moving, etc.), merchant nickname, merchant contact information, service products used, etc. The merchant's behavior data may include but is not limited to: the merchant's historical browsing information (number of visits, stay time and browsing path, etc.), interaction information (interaction records, customer message information or consultation information, etc.), posting, delisting posts and promotional activities, etc. The merchant's status information may include but is not limited to: merchant account balance status, account resource status, login status, online time, membership status, store status, reputation status and order status, etc. The service product is a service provided by the server device to the merchant, such as marketing promotion service products, store management products, data analysis products and payment products. The status information of the service product includes but is not limited to: the service life, resource volume, visit volume, conversion rate and user retention rate of the service product.

[0085] The merchant portrait may include the merchant's behavior data, the merchant's description information, the target merchant's service product usage status information and the merchant's description information. At this time, you can comprehensively consider which renewal guidance information to send to the target merchant. The merchant portrait may include the target service product status information, the merchant's behavior data and the merchant's description information. At this time, you can consider sending the target merchant the renewal guidance information corresponding to the target service product.

[0086] In this embodiment, the intent recognition model and AI language model included in the AI ​​intelligent customer service are called through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, and provide it to the terminal device corresponding to the target merchant. That is, the merchant portrait is provided to the AI ​​intelligent customer service, and the AI ​​intelligent customer service generates renewal guidance information for the target service product based on the intent recognition model and AI language model.

[0087] In this embodiment, the server device can receive the renewal description information sent by the terminal device corresponding to the target merchant, and the renewal description information is initiated by the target merchant according to the renewal guidance information; call the AI ​​language model through the renewal description information to call the renewal tool according to the renewal description information to generate the QR code information corresponding to the renewal description information; return the QR code information to the terminal device, so that the target merchant can recharge the resources for the target service product according to the QR code. Among them, the renewal description information includes at least one of the following: renewal type information (such as promotional coins or gold coins), renewal amount information (such as 50 yuan) and renewal method information (such as bank card).

[0088] In an optional embodiment, an implementation method of calling an intent recognition model and an AI language model included in an AI intelligent customer service through a merchant portrait to generate renewal guidance information for a target service product for the merchant portrait includes: adding the merchant portrait to a first prompt word template including at least two scene portraits to obtain a first prompt word corresponding to the merchant portrait, and the at least two scene portraits are scene portraits included in the target service product; different scene portraits correspond to different intents, and the first prompt word template also includes first task description information for describing the task that the intent recognition model needs to perform; inputting the first prompt word into the intent recognition model, and identifying the target scene portrait corresponding to the merchant portrait from at least two scene portraits according to the first task description information; adding the merchant portrait to a second prompt word template corresponding to the target scene portrait to generate a second prompt word corresponding to the merchant portrait, and the second prompt word template includes second task description information for describing the task that the AI ​​language model needs to perform; inputting the second prompt word into the AI ​​language model, and generating renewal guidance information corresponding to the merchant portrait in the target service product under the target scene portrait according to the second task description information, so that the target merchant can recharge resources for the renewal guidance information.

[0089] The intent recognition model is used to recognize the intent of the service demand description information input by the user. Different scene information corresponds to different intents, that is, to recognize which service scene the service demand description information input by the user corresponds to. The intent recognition model can be a large language model (LLM). For example, the intent recognition model includes but is not limited to: a generative model (GPT) based on a transformer and a pre-trained model (BERT) based on a transformer.

[0090] The intent recognition model corresponds to a first prompt word template, which may include but is not limited to: role, task, background, and requirements. Among them, the role is the profession or identity played by the intent recognition model, what personality characteristics the profession has, or what special skills the identity has, for example, the role played by the intent recognition model is a classifier; the background refers to some contextual information required by the role to complete the task, so that the intent recognition model can better understand the task background and related details. For example, description information for each scene, historical interaction information of the user, description information of the merchant, etc. The task refers to the specific task or goal completed by the role, for example, identifying the scene portrait corresponding to the merchant portrait from at least two scene portraits. In order to facilitate description and distinction, the task information in the first prompt word template is called the first task description information, and the first task description information is used to describe the task that the intent recognition model needs to perform. Restrictions refer to the specific requirements or restrictions for the role to complete the task, for example, content requirements for output data and time limits for output data. Among them, content requirements may include but are not limited to: format requirements, output data type requirements, removal of sensitive information, removal of modal particles, etc.

[0091] Among them, the AI ​​language model can intelligently reply to the service demand description information input by the user to obtain service result information. The AI ​​language model can be a large language model (Large Language Model l, LLM), for example, the AI ​​language model includes but is not limited to: a generative model based on a transformer (GPT) and a pre-trained model based on a transformer (BERT), etc.

[0092] Among them, in order to improve the effect of the AI ​​language model for intelligent reply, so that the renewal guidance information output by the AI ​​language model matches the merchant portrait, different second prompt word templates can be pre-set for different scene portraits. For example, the service product expiration reminder scene portrait corresponds to the second prompt word template A1, and the insufficient balance scene portrait corresponds to the second prompt word template A2, etc. The second prompt word template may include but is not limited to: roles, tasks, backgrounds and restrictions. Among them, the role of the second prompt word template corresponding to any scene portrait can be an intelligent customer service, and the background information may include but is not limited to: the description information of any scene letter portrait and the user's historical interaction information. The task can also be called the second task description information, and the second task description information is used to describe the task that the AI ​​language model needs to perform. For example, the second task description information can be the AI ​​language model under any scene portrait. Provide renewal guidance information for the merchant. Restrictions refer to specific requirements or restrictions for the role to complete the task, such as the content specification of the output data and the time limit for the output data. Among them, the content specification may include but is not limited to: outputting data in a set format (such as text), removing sensitive information, adding modal particles, etc.

[0093] Optionally, in the process of AI intelligent customer service generating renewal guidance information, in order to avoid interference with merchants, the following logic can be added to the second prompt word template, for example, added to the restrictions of the second prompt word template. 1) Send a set number (e.g., 1) of recommendation information to merchants every day; 2) Set priorities for different types of renewal guidance information, and give priority to sending renewal guidance information with high priority to target merchants. For example, the priorities from high to low can be: promotion information, reminder information, guidance information (such as guiding posting, etc.); 3) Set reminder time points for renewal guidance information, such as 1 day, 3 days, 7 days and the day before the expiration of the service product. If the merchant does not renew the contract, the service product will be reminded again after a set number of days (e.g., 1 day) after the expiration; 4) When sending renewal guidance information, the renewal guidance information can be packaged through personalized pre-copy, so that the renewal guidance information is more in line with the merchant's wishes and arouses the merchant's interest. For example, the pre-copy can include: address and modal particles, etc.

[0094] Optionally, an implementation method of calling an AI language model through renewal description information to call a renewal tool to generate QR code information corresponding to the renewal description information according to the renewal description information, including: adding the renewal description information to a first prompt word template to obtain a first prompt word corresponding to the renewal description information; inputting the first prompt word into an intention recognition model to identify the renewal description information corresponding to a target scene portrait from at least two scene portraits according to the first task description information; adding the renewal description information to a second prompt word template corresponding to the recharge scene to generate a second prompt word corresponding to the renewal description information; inputting the second prompt word into the AI ​​language model to generate renewal parameters corresponding to the renewal description information according to the second task description information; and calling a QR code generation tool corresponding to the renewal parameters according to the renewal parameters to generate a QR code corresponding to the renewal description information.

[0095] Among them, the server-side device pre-maintains multiple service tools, each of which can realize a back-end function. The service tools may include but are not limited to: QR code generation tool, keyword query tool, tool for querying the corresponding promotion information of the merchant, keyword addition tool, information query tool, etc. Among them, the service parameters vary according to the different service tools. For example, if the service tool is a QR code generation tool, the service parameters may include: recharge method, recharge amount, recharge type, etc.; if the service tool is a keyword query tool, the service parameters may include: merchant ID, merchant post identification information, etc.; if the service tool is a keyword addition tool, the service parameters may include: identification information of the post to which keywords need to be added, keywords to be added, merchant ID information, etc.; if the service tool is a query tool, the service parameters may include information to be queried.

[0096] Further optionally, the target may correspond to a coupon, and before generating the QR code, discount description information can also be obtained, so as to generate a QR code based on the discount description information and the renewal description information. Specifically, a method of adding the renewal description information to the second prompt word template corresponding to the recharge scenario to generate a second prompt word corresponding to the renewal description information includes: receiving the discount description information sent by the terminal device, the discount description information is input on the interaction page between the target merchant and the AI ​​intelligent customer service provided by the target merchant on the terminal device; adding the discount description information to the first prompt word template including at least two scene portraits to obtain the first prompt word corresponding to the discount description information; inputting the first prompt word into the intent recognition model, and identifying the target scene portrait corresponding to the discount description information from the at least two scene portraits according to the first task description information; adding the discount description information to the second prompt word template corresponding to the target scene portrait to generate a QR code corresponding to the discount description information. The second prompt word; input the second prompt word into the AI ​​language model, and generate the preferential parameters corresponding to the preferential description information according to the second task description information; the preferential parameters include: the type, denomination, expiration event and quantity of the coupons owned by the target merchant; according to the preferential parameters, call the target preferential tool corresponding to the preferential parameters to generate the preferential information corresponding to the preferential description information; add the preferential information and renewal description information to the second prompt word template corresponding to the recharge scenario, and generate the second prompt word corresponding to the renewal description information; subsequently, input the second prompt word into the AI ​​language model, and generate the renewal parameters corresponding to the renewal description information according to the second task description information; according to the renewal parameters, call the QR code generation tool corresponding to the renewal parameters to generate the QR code corresponding to the renewal description information. At this time, the amount corresponding to the QR code is the amount after the preferential information is superimposed.

[0097] In an optional embodiment, when the second prompt word is generated, the second prompt word may be pre-processed, for example, to determine whether the second prompt word includes sensitive information, and the sensitive information may include but is not limited to: personal information or set sensitive words and other information. If the second prompt word includes sensitive information, the intelligent reply process of the AI ​​intelligent customer service is terminated. Furthermore, the prompt information may be output externally, for example, "I don't understand what you are saying? Please re-enter". If the second prompt word does not include sensitive information, the second prompt word is input into the AI ​​language model, and the AI ​​language model generates a QR code based on the second task description information.

[0098] Regarding the embodiments of the present application Figure 1 and Figure 3 The detailed implementation and beneficial effects of each step in the method have been described in detail in the aforementioned embodiments and will not be elaborated here.

[0099] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 101 to 103 can be device A; for another example, the execution subject of steps 101 and 102 can be device A, and the execution subject of step 103 can be device B; and so on.

[0100] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0101] Figure 4 A schematic diagram of the structure of an artificial intelligence-based resource recharge device provided for an exemplary embodiment of the present application corresponds to a terminal device, the terminal device runs a target application, the target application is a life service application or a social application, the target application provides a first page, and the first page is used for the target merchant to interact with the AI ​​intelligent customer service, such as Figure 4 As shown, the device comprises:

[0102] The receiving module 41 is used to receive renewal guidance information for the target service product sent by the server device during the operation of the target application; the renewal guidance information is generated based on the merchant portrait of the target merchant by the AI ​​intelligent customer service;

[0103] Display module 42, used to display reminder information of renewal guidance information on the first page currently visited;

[0104] The display module 42 is further used to respond to the triggering operation of the reminder information and display the renewal guidance information on the second page to guide the target merchant to enter the renewal description information;

[0105] An acquisition module 43, configured to acquire renewal description information in response to an input operation of the target merchant on the second page;

[0106] A module 44 is provided, which is used to provide the renewal description information to the AI ​​intelligent customer service, so that the AI ​​intelligent customer service generates QR code information corresponding to the renewal description information based on the intent recognition model and the AI ​​language model, and sends it to the terminal device;

[0107] The receiving module 41 is used to receive the QR code information sent by the server and display it on a third page, which may be the same as or different from the second page;

[0108] The recharge module 45 is used to recharge resources for the target service product according to the QR code information.

[0109] In an optional embodiment, the display module is specifically used to: parse the renewal guidance information to obtain at least one sub-message and its message type included in the renewal guidance information; select at least one target display component adapted to the at least one sub-message from multiple display components included in the component library according to the at least one sub-message and its information type; embed the at least one sub-message into the at least one target display component adapted thereto, and use the message component to display the at least one target display component embedded in the at least one sub-message on the second page.

[0110] Optionally, the display module is specifically configured to: for any sub-message, use any sub-message as the state information of the first component template of its adapted target display component, so as to embed any sub-message into its adapted target display component.

[0111] Further optionally, the display module is specifically used to: introduce at least one first component template of at least one target display component into the second component template of the message component to realize a nested relationship between the message component and the at least one target display component, the second component template including global visualization information; determine the local visualization information of at least one target display component in the message component according to the global visualization information, and add the local visualization information to the first component template corresponding to the target display component adapted thereto; render the message component and at least one target display component based on the nested relationship, the second component template and at least one first component template, so as to display at least one target display component in the message component on the second page, so as to display at least one sub-message through at least one target display component.

[0112] The embodiment of the present application also provides an artificial intelligence-based QR code generation device, which corresponds to a server device, and the server device runs an artificial intelligence AI intelligent customer service, and the AI ​​intelligent customer service provides target service products for various merchants, and the target service products have validity period attributes and resource attributes. The device includes:

[0113] A determination module, used to determine target merchants using target service products;

[0114] A determination module, used to determine the remaining validity period and remaining resource amount of the target service product used by the target merchant according to the validity period attribute and resource attribute of the target service product used by the target merchant;

[0115] An acquisition module, configured to acquire a merchant portrait of a target merchant if it is identified that at least one of the remaining validity period and the remaining resource amount of a target service product used by the target merchant meets a corresponding renewal reminder condition;

[0116] A calling module is used to call the intent recognition model and AI language model included in the AI ​​intelligent customer service through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, and provide it to the terminal device corresponding to the target merchant;

[0117] A receiving module, used to receive renewal description information sent by a terminal device corresponding to a target merchant, where the renewal description information is initiated by the target merchant according to the renewal guidance information;

[0118] A calling module, used to call the AI ​​language model through the renewal description information, so as to call the renewal tool to generate QR code information corresponding to the renewal description information according to the renewal description information;

[0119] The return module is used to return the QR code information to the terminal device so that the target merchant can recharge resources for the target service product according to the QR code.

[0120] In an optional embodiment, the calling module is specifically used to: add the merchant portrait to a first prompt word template including at least two scene portraits to obtain a first prompt word corresponding to the merchant portrait, where the at least two scene portraits are scene portraits included in the target service product; different scene portraits correspond to different intentions, and the first prompt word template also includes first task description information for describing the task that the intent recognition model needs to perform; input the first prompt word into the intent recognition model, and identify the target scene portrait corresponding to the merchant portrait from at least two scene portraits according to the first task description information; add the merchant portrait to a second prompt word template corresponding to the target scene portrait, and generate a second prompt word corresponding to the merchant portrait, where the second prompt word template includes second task description information for describing the task that the AI ​​language model needs to perform; input the second prompt word into the AI ​​language model, and generate renewal guidance information corresponding to the merchant portrait in the target service product under the target scene portrait according to the second task description information, so that the target merchant can recharge resources according to the renewal guidance information.

[0121] In an optional embodiment, the calling module is specifically used to: add the renewal description information to the first prompt word template to obtain the first prompt word corresponding to the renewal description information; input the first prompt word into the intention recognition model, and identify the renewal description information corresponding to the target scene portrait from at least two scene portraits according to the first task description information; add the renewal description information to the second prompt word template corresponding to the recharge scene to generate the second prompt word corresponding to the renewal description information; input the second prompt word into the AI ​​language model, and generate the renewal parameters corresponding to the renewal description information according to the second task description information; according to the renewal parameters, call the QR code generation tool corresponding to the renewal parameters to generate a QR code corresponding to the renewal description information.

[0122] Optionally, the calling module is specifically used to: receive the discount description information sent by the terminal device; add the discount description information to a first prompt word template including at least two scene portraits to obtain a first prompt word corresponding to the discount description information; input the first prompt word into the intention recognition model, and identify the target scene portrait corresponding to the discount description information from at least two scene portraits according to the first task description information; add the discount description information to the second prompt word template corresponding to the target scene portrait, and generate a second prompt word corresponding to the discount description information; input the second prompt word into the AI ​​language model, and generate discount parameters corresponding to the discount description information according to the second task description information; the discount parameters include: the type, denomination, expiration event and quantity of coupons owned by the target merchant; according to the discount parameters, call the target discount tool corresponding to the discount parameters to generate discount information corresponding to the discount description information; add the discount information and renewal description information to the second prompt word template corresponding to the recharge scenario, and generate a second prompt word corresponding to the renewal description information.

[0123] Regarding the embodiments of the present application Figure 4 The detailed implementation and beneficial effects of each step in the illustrated device have been described in detail in the aforementioned embodiments and will not be elaborated on here.

[0124] Figure 5 A schematic diagram of the structure of an electronic device provided for an exemplary embodiment of the present application, the device corresponds to a terminal device, the terminal device runs a target application, the target application is a life service application or a social application, the target application provides a first page, and the first page is used for the target merchant to interact with the AI ​​intelligent customer service, such as Figure 5 As shown, the device includes: a memory 54 and a processor 55.

[0125] The memory 54 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method used to operate on the electronic device.

[0126] The processor 55 is coupled to the memory 54 and is used to execute the computer program in the memory 54, so as to: receive renewal guidance information for the target service product sent by the server device during the operation of the target application; the renewal guidance information is generated based on the merchant portrait of the target merchant by the AI ​​intelligent customer service; on the first page currently visited, display the reminder information of the renewal guidance information; in response to the triggering operation of the reminder information, display the renewal guidance information on the second page to guide the target merchant to enter the renewal description information; in response to the input operation of the target merchant on the second page, obtain the renewal description information; provide the renewal description information to the AI ​​intelligent customer service, so that the AI ​​intelligent customer service generates the QR code information corresponding to the renewal description information based on the intent recognition model and the AI ​​language model, and sends it to the terminal device; receive the QR code information sent by the server, and display it on a third page, which is the same as or different from the second page; and recharge resources for the target service product according to the QR code information.

[0127] In an optional embodiment, when the processor 55 displays the renewal guidance information on the second page, it is specifically used to: parse the renewal guidance information to obtain at least one sub-message and its message type included in the renewal guidance information; select at least one target display component adapted to the at least one sub-message from multiple display components included in the component library according to the at least one sub-message and its information type; embed the at least one sub-message into the at least one target display component adapted thereto, and use the message component to display the at least one target display component embedded in the at least one sub-message on the second page.

[0128] Optionally, when embedding at least one sub-message into at least one target display component, the processor 55 is specifically configured to: for any sub-message, use any sub-message as the state information of the first component template of its adapted target display component to embed any sub-message into its adapted target display component.

[0129] Further optionally, when the processor 55 uses the message component to display at least one target display component embedded in at least one sub-message on the second page, it is specifically used to: introduce at least one first component template of at least one target display component into the second component template of the message component to realize the nested relationship between the message component and the at least one target display component, the second component template including global visualization information; determine the local visualization information of at least one target display component in the message component according to the global visualization information, and add the local visualization information to the first component template corresponding to the target display component adapted thereto; based on the nested relationship, the second component template and the at least one first component template, render the message component and the at least one target display component to display the at least one target display component in the message component on the second page, so as to display at least one sub-message through the at least one target display component.

[0130] Regarding the embodiments of the present application Figure 5 The detailed implementation and beneficial effects of each step in the illustrated device have been described in detail in the aforementioned embodiments and will not be elaborated on here.

[0131] Further, if Figure 5 As shown, the electronic device also includes: a communication component 56, a display 57, a power component 58, an audio component 59 and other components. Figure 5 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 5 In addition, Figure 5 The components in the dashed box are optional components, not mandatory components, and the specific components depend on the product form of the electronic device. The electronic device of this embodiment can be implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, or an IOT (Internet of Things) device, or a server device such as a conventional server, a cloud server, or a server array. If the electronic device of this embodiment is implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, etc., it can include Figure 5 If the electronic device of this embodiment is implemented as a server device such as a conventional server, a cloud server or a server array, it may not include Figure 5 Components within the dashed box.

[0132] The embodiment of the present application also provides an electronic device, the implementation structure of the electronic device is Figure 5 The implementation structure of the electronic device shown is the same or similar, and can refer to Figure 5The structure of the electronic device shown is implemented, and the device corresponds to a server device. The server device runs an artificial intelligence AI smart customer service. The AI ​​smart customer service provides target service products for various merchants. The target service products have validity period attributes and resource attributes. Figure 5 The difference between the electronic devices in the illustrated embodiments mainly lies in that the functions implemented by the processor executing the computer program stored in the memory are different. For the electronic device provided in this embodiment, the processor executes the computer program stored in the memory, which can be used to: determine the target merchant using the target service product; determine the remaining validity period and the remaining resource amount of the target service product used by the target merchant according to the validity period attribute and resource attribute of the target service product used by the target merchant; if it is identified that at least one of the remaining validity period and the remaining resource amount of the target service product used by the target merchant meets the corresponding renewal reminder condition, obtain the merchant portrait of the target merchant; call the intention recognition model and AI language model included in the AI ​​intelligent customer service through the merchant portrait to generate the renewal guidance information of the merchant portrait for the target service product, and provide it to the terminal device corresponding to the target merchant; receive the renewal description information sent by the terminal device corresponding to the target merchant, and the renewal description information is initiated by the target merchant according to the renewal guidance information; call the AI ​​language model through the renewal description information to call the renewal tool according to the renewal description information to generate the QR code information corresponding to the renewal description information; return the QR code information to the terminal device, so that the target merchant can recharge the resources for the target service product according to the QR code.

[0133] In an optional embodiment, when the processor calls the intent recognition model and AI language model included in the AI ​​intelligent customer service through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, it is specifically used to: add the merchant portrait to a first prompt word template including at least two scene portraits to obtain a first prompt word corresponding to the merchant portrait, and the at least two scene portraits are scene portraits included in the target service product; different scene portraits correspond to different intentions, and the first prompt word template also includes first task description information for describing the task that the intent recognition model needs to perform; input the first prompt word into the intent recognition model, and identify the target scene portrait corresponding to the merchant portrait from at least two scene portraits according to the first task description information; add the merchant portrait to the second prompt word template corresponding to the target scene portrait to generate a second prompt word corresponding to the merchant portrait, and the second prompt word template includes second task description information for describing the task that the AI ​​language model needs to perform; input the second prompt word into the AI ​​language model, and generate renewal guidance information corresponding to the merchant portrait in the target service product under the target scene portrait according to the second task description information, so that the target merchant can recharge resources for the renewal guidance information.

[0134] In an optional embodiment, when the processor calls the AI ​​language model through the renewal description information to call the renewal tool to generate QR code information corresponding to the renewal description information according to the renewal description information, it is specifically used to: add the renewal description information to the first prompt word template to obtain the first prompt word corresponding to the renewal description information; input the first prompt word into the intention recognition model to identify the renewal description information corresponding to the target scene portrait from at least two scene portraits according to the first task description information; add the renewal description information to the second prompt word template corresponding to the recharge scene to generate the second prompt word corresponding to the renewal description information; input the second prompt word into the AI ​​language model to generate the renewal parameters corresponding to the renewal description information according to the second task description information; according to the renewal parameters, call the QR code generation tool corresponding to the renewal parameters to generate a QR code corresponding to the renewal description information.

[0135] Optionally, when the processor adds the renewal description information to the second prompt word template corresponding to the recharge scenario to generate the second prompt word corresponding to the renewal description information, it is specifically used to: receive the preferential description information sent by the terminal device; add the preferential description information to the first prompt word template including at least two scenario portraits to obtain the first prompt word corresponding to the preferential description information; input the first prompt word into the intention recognition model, and identify the target scenario portrait corresponding to the preferential description information from the at least two scenario portraits according to the first task description information; add the preferential description information to the second prompt word template corresponding to the target scenario portrait to generate the second prompt word corresponding to the preferential description information; input the second prompt word into the AI ​​language model, and generate the preferential parameters corresponding to the preferential description information according to the second task description information; the preferential parameters include: the type, denomination, expiration event and quantity of the coupons owned by the target merchant; according to the preferential parameters, call the target preferential tool corresponding to the preferential parameters to generate the preferential information corresponding to the preferential description information; add the preferential information and the renewal description information to the second prompt word template corresponding to the recharge scenario to generate the second prompt word corresponding to the renewal description information.

[0136] The detailed implementation and beneficial effects of the electronic device provided in the embodiments of the present application have been described in detail in the aforementioned embodiments and will not be elaborated here.

[0137] Accordingly, the embodiment of the present application further provides a computer-readable storage medium storing a computer program, which can achieve the above-mentioned Figure 1 and Figure 3 The steps in the method embodiment shown may be executed by an electronic device.

[0138] Accordingly, the embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, causes the processor to implement the above Figure 1 and Figure 3 The steps in the method embodiment shown may be executed by an electronic device.

[0139] The above-mentioned memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0140] The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (Ultra Wide Band, UWB) technology, Bluetooth (BlueTooth, BT) technology and other technologies.

[0141] The above-mentioned display includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0142] The power supply assembly provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.

[0143] The above-mentioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (Microphone, MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0144] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, compact disk read-only memory (Compact Disk Read-Only Memory, CD-ROM), optical storage, etc.) that contain computer-usable program code.

[0145] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0148] In a typical configuration, a computing device includes one or more processors (Central Processing Unit, CPU), input / output interface, network interface and memory.

[0149] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory (flashRAM). The memory is an example of a computer-readable medium.

[0150] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change random access memory (Phase-change Random Access Memory, PRAM), static random access memory (SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory, etc.

[0151] (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0153] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A resource recharge method based on artificial intelligence, characterized in that: Applicable to a terminal device, the terminal device runs a target application, the target application is a life service application or a social application, the target application provides a first page, the first page is used for the target merchant to interact with the AI ​​intelligent customer service, the method includes: In the process of running the target application, receiving renewal guidance information for the target service product sent by the server device; the renewal guidance information is generated by the AI ​​intelligent customer service based on the merchant portrait of the target merchant; On the first page currently visited, a reminder message of the renewal guidance information is displayed; In response to the triggering operation of the reminder information, displaying the renewal guidance information on the second page to guide the target merchant to enter renewal description information; In response to an input operation of the target merchant on the second page, acquiring renewal description information; Providing the renewal description information to the AI ​​intelligent customer service, so that the AI ​​intelligent customer service generates the QR code information corresponding to the renewal description information based on the intent recognition model and the AI ​​language model, and sends it to the terminal device; receiving the QR code information sent by the server, and displaying it on a third page, where the third page is the same as or different from the second page; Resources are recharged for the target service product according to the QR code information.

2. The method according to claim 1, characterized in that The renewal guidance information is displayed on the second page, including: Parsing the renewal guidance information to obtain at least one sub-message included in the renewal guidance information and its message type; According to the at least one sub-message and its information type, selecting at least one target display component adapted to the at least one sub-message from a plurality of display components included in a component library; The at least one sub-message is embedded in the at least one target display component adapted thereto, and the at least one target display component embedded with the at least one sub-message is displayed on the second page using the message component.

3. The method according to claim 2, characterized in that Embedding the at least one sub-message into the at least one target presentation component includes: For any sub-message, the sub-message is used as the state information of the first component template of the adapted target presentation component, so as to embed the sub-message into the adapted target presentation component.

4. The method according to claim 3, characterized in that Using the message component to display the at least one target display component embedded with at least one sub-message on the second page includes: Introducing at least one first component template of the at least one target display component into a second component template of the message component to implement a nested relationship between the message component and the at least one target display component, wherein the second component template includes global visualization information; Determine local visualization information of each of the at least one target display component in the message component according to the global visualization information, and add the local visualization information to a first component template corresponding to the target display component adapted thereto; Based on the nested relationship, the second component template and the at least one first component template, the message component and at least one target display component are rendered to display the at least one target display component in the message component on the second page, so as to display at least one sub-message through the at least one target display component.

5. A two-dimensional code generation method based on artificial intelligence, characterized in that: Applicable to a server-side device, the server-side device runs an artificial intelligence (AI) intelligent customer service, the AI ​​intelligent customer service provides target service products for various merchants, the target service products have validity period attributes and resource attributes, and the method includes: Identify target merchants using target service products; Determining the remaining validity period and remaining resource amount of the target service product used by the target merchant according to the validity period attribute and resource attribute of the target service product used by the target merchant; If it is identified that at least one of the remaining validity period and the remaining resource amount of the target service product used by the target merchant meets the corresponding renewal reminder condition, a merchant portrait of the target merchant is obtained; The intention recognition model and the AI ​​language model included in the AI ​​intelligent customer service are called through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, and provide it to the terminal device corresponding to the target merchant; Receiving renewal description information sent by a terminal device corresponding to the target merchant, where the renewal description information is initiated by the target merchant according to the renewal guidance information; The AI ​​language model is called through the renewal description information, so as to call a renewal tool to generate QR code information corresponding to the renewal description information according to the renewal description information; The two-dimensional code information is returned to the terminal device so that the target merchant can recharge resources for the target service product according to the two-dimensional code.

6. The method according to claim 5, characterized in that The intention recognition model and the AI ​​language model included in the AI ​​intelligent customer service are called through the merchant portrait to generate renewal guidance information for the merchant portrait for the target service product, including: Adding the merchant portrait to a first prompt word template including at least two scene portraits to obtain a first prompt word corresponding to the merchant portrait, wherein the at least two scene portraits are scene portraits included in the target service product; different scene portraits correspond to different intents, and the first prompt word template also includes first task description information for describing the task that the intent recognition model needs to perform; Inputting the first prompt word into the intention recognition model, and identifying the target scene portrait corresponding to the merchant portrait from the at least two scene portraits according to the first task description information; Adding the merchant portrait to a second prompt word template corresponding to the target scene portrait to generate a second prompt word corresponding to the merchant portrait, wherein the second prompt word template includes second task description information for describing the task that the AI ​​language model needs to perform; The second prompt word is input into the AI ​​language model, and renewal guidance information corresponding to the merchant portrait under the target service product in the target scenario portrait is generated according to the second task description information, so that the target merchant can recharge resources according to the renewal guidance information.

7. The method according to claim 5, characterized in that The AI ​​language model is called through the renewal description information to call a renewal tool to generate QR code information corresponding to the renewal description information according to the renewal description information, including: Adding the renewal description information to a first prompt word template to obtain a first prompt word corresponding to the renewal description information; Inputting the first prompt word into the intention recognition model, and identifying, according to the first task description information, from the at least two scene portraits that the renewal description information corresponds to the target scene portrait; Adding the renewal description information to the second prompt word template corresponding to the recharge scenario to generate a second prompt word corresponding to the renewal description information; Input the second prompt word into the AI ​​language model, and generate a renewal parameter corresponding to the renewal description information according to the second task description information; According to the renewal parameters, a QR code generation tool corresponding to the renewal parameters is called to generate a QR code corresponding to the renewal description information.

8. The method according to claim 7, characterized in that Adding the renewal description information to the second prompt word template corresponding to the recharge scenario to generate a second prompt word corresponding to the renewal description information includes: Receiving the preferential description information sent by the terminal device; Adding the preferential description information to a first prompt word template including at least two scene portraits to obtain a first prompt word corresponding to the preferential description information; Inputting the first prompt word into the intention recognition model, and identifying the target scene portrait corresponding to the preferential description information from the at least two scene portraits according to the first task description information; Adding the preferential description information to the second prompt word template corresponding to the target scene portrait to generate a second prompt word corresponding to the preferential description information; The second prompt word is input into the AI ​​language model, and the preferential parameters corresponding to the preferential description information are generated according to the second task description information; the preferential parameters include: the type, denomination, expiration event and quantity of the coupons owned by the target merchant; According to the preferential parameters, calling the target preferential tool corresponding to the preferential parameters, generating preferential information corresponding to the preferential description information; The preferential information and the renewal description information are added to a second prompt word template corresponding to the recharge scenario, and a second prompt word corresponding to the renewal description information is generated.

9. An electronic device, characterized in that: include: Memory and processor; The memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program to implement the steps in the method of any one of claims 1 to 4 and claims 5 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to implement the steps in the method according to any one of claims 1 to 4 and claims 5 to 8.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the processor is caused to implement the steps in the method of any one of claims 1-4 and claims 5-8.

Citation Information

Cited By

  • Web-based vehicle arrival reminding method and system

    CN120128580A