Page generation method, apparatus, device, medium, and program product
By recognizing the intent of user interaction information on low-code platforms and automating its configuration, the issues of user proficiency and stability have been resolved, enabling non-professional users to quickly generate high-quality pages.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
- Filing Date
- 2026-04-27
- Publication Date
- 2026-06-19
AI Technical Summary
Existing low-code platforms require a high level of user proficiency, making it difficult for non-professional users to quickly translate business needs into page results. The AI-assisted generation process is also easily interfered with, failing to meet the stability requirements of enterprise-level page building.
By recognizing the user's input interaction information, the configuration information of the target page components is determined. The updated page configuration information set is then used to render the target page, including layout adjustment, data retrieval, and cascading relationship processing, thereby achieving automated configuration of page components.
It lowers the barrier to entry for users, avoids the instability issues in traditional AI-assisted building, improves page generation efficiency and user experience, and ensures consistency and stability in collaborative updates between page components.
Smart Images

Figure CN122240110A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of page information and computer technology, specifically to a page generation method, apparatus, device, medium, and program product. Background Technology
[0002] Currently, low-code platforms primarily employ a manual, visual building mode, requiring users to manually drag and drop components, adjust layouts, bind data, and orchestrate interactive logic. This mode demands a high level of proficiency and experience from users, making it difficult for novice users without a professional background to quickly translate business requirements into achievable page results, leading to low building efficiency. While AI-assisted generation can be introduced to lower the barrier to entry, existing AI can only simulate manual processes, making its execution susceptible to interference and unable to meet the stability requirements of enterprise-level page building. Therefore, how to reduce the user's operational threshold while improving the stability and reliability of AI-assisted building has become an urgent technical problem to be solved. Summary of the Invention
[0003] In view of this, this application provides a page generation method, apparatus, device, medium, and program product.
[0004] One aspect of this application provides a page generation method, comprising: performing intent recognition on user-inputted interactive information for updating an initial page to obtain an intent recognition result, wherein the intent recognition result includes a target page component to be updated and update method information describing the update method of the target page component; determining target component configuration information of the target page component based on the update method information of the target page component, wherein the target component configuration information indicates the configuration method of the target page component on the initial page; updating the target component configuration information to a page configuration information set, so as to render a target page using the updated page configuration information set, wherein the page configuration information set includes component configuration information of each page component in the initial page.
[0005] According to an embodiment of this application, determining the target component configuration information of a target page component based on the update method information of the target page component includes: determining target code from multiple candidate codes based on update mapping information and the update method information of the target page component, wherein the update mapping information indicates the mapping relationship between the update method information and the candidate code; and determining the target component configuration information of the target page component using the target code.
[0006] According to an embodiment of this application, determining the target component configuration information of a target page component using target code includes: when the update method information includes layout information, updating the layout information using layout adjustment sub-code in the target code when it is determined that the layout information does not meet the predetermined page constraints, thereby obtaining updated layout information; and obtaining target component configuration information based on the updated layout information.
[0007] According to an embodiment of this application, determining the target component configuration information of a target page component using target code includes: when the update method information includes call information, using data call sub-code in the target code to obtain component content based on the call interface included in the call information; and obtaining target component configuration information based on the component content.
[0008] According to an embodiment of this application, determining the target component configuration information of a target page component using target code includes: when there are multiple target codes, sorting the execution order of the multiple target codes based on the cascading relationship information between the multiple target page components to be updated, and obtaining a sorting result, wherein the multiple target codes are used to obtain the target component configuration information of different target page components to be updated; and running the multiple target codes in the order of the sorting result to determine the target component configuration information of each of the multiple target page components to be updated.
[0009] According to an embodiment of this application, the page generation method further includes: in response to receiving a page update request sent by a third-party application through an application interface, determining the interaction information carried in the page update request; and if it is determined that an updated page configuration information set has been determined based on the interaction information, sending the updated page configuration information set to the third-party application so that the third-party application can render the target page using the updated page configuration information set.
[0010] According to an embodiment of this application, the page generation method further includes: verifying the permissions of a third-party application based on the permission authentication information carried in the page update request; and, if the permission authentication is successful, performing an operation to determine the interaction information carried in the page update request.
[0011] Another aspect of this application provides a page generation apparatus, comprising: an identification module, configured to identify the intent of user-inputted interactive information for updating an initial page, and obtain an intent identification result, wherein the intent identification result includes a target page component to be updated and update method information describing the update method of the target page component; a determination module, configured to determine target component configuration information of the target page component based on the update method information of the target page component, wherein the target component configuration information indicates the configuration method of the target page component on the initial page; and an update module, configured to update the target component configuration information to a page configuration information set, so as to render a target page using the updated page configuration information set, wherein the page configuration information set includes component configuration information of each page component in the initial page.
[0012] Another aspect of this application provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the above-described intelligent cabinet compartment determination method.
[0013] Another aspect of this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed, are used to implement the above-described intelligent cabinet compartment determination method.
[0014] Another aspect of this application provides a computer program product, which includes computer-executable instructions that, when executed, are used to implement the above-described intelligent cabinet compartment determination method.
[0015] This application identifies the target component configuration information of the target page component to be updated by performing intent recognition on the user's interactive information used to update the initial page. This updates the page configuration information set and drives the rendering of the target page. This reduces the user's reliance on low-code platform operating procedures and avoids the instability issues such as page flickering and unpredictable results caused by simulating document object models in traditional AI-assisted development. Furthermore, users can quickly transform abstract business ideas into changed target component configuration information through interactive information, improving page generation efficiency and user experience. Attached Figure Description
[0016] The above and other objects, features and advantages of this application will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0017] Figure 1 The illustrations illustrate application scenarios of the page generation method, apparatus, device, medium, and program product according to embodiments of this application;
[0018] Figure 2A flowchart illustrating a page generation method according to an embodiment of this application is shown schematically;
[0019] Figure 3 This illustration schematically shows a diagram illustrating the determination of target component configuration information according to an embodiment of this application;
[0020] Figure 4 This illustration schematically shows a diagram illustrating the determination of target component configuration information according to another embodiment of this application;
[0021] Figure 5 This illustration schematically shows a diagram illustrating the determination of target component configuration information according to another embodiment of the present application;
[0022] Figure 6 This illustration schematically shows the interaction diagrams between different applications according to embodiments of this application;
[0023] Figure 7 This illustration schematically shows a page generation diagram according to an embodiment of the present application;
[0024] Figure 8 A block diagram of a page generation apparatus according to an embodiment of this application is schematically shown; and
[0025] Figure 9 A block diagram schematically illustrates an electronic device suitable for implementing a page generation method according to an embodiment of this application. Detailed Implementation
[0026] The embodiments of this application will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of this application. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of this application for ease of explanation. However, it will be apparent that one or more embodiments may be implemented without these specific details. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of this application.
[0027] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0028] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0029] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).
[0030] In the embodiments of this application, the collection, updating, analysis, processing, use, transmission, provision, application, and storage of data (e.g., including but not limited to user personal information) comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures have been taken to prevent unauthorized access to user personal information data and to maintain the security of user personal information and network security.
[0031] In the embodiments of this application, the user's authorization or consent was obtained before obtaining or collecting the user's personal information.
[0032] Embodiments of this application provide a page generation method, apparatus, device, medium, and program product. The method includes: performing intent recognition on user-inputted interactive information for updating an initial page to obtain an intent recognition result, wherein the intent recognition result includes a target page component to be updated and update method information describing the update method of the target page component; determining target component configuration information of the target page component based on the update method information of the target page component, wherein the target component configuration information indicates the configuration method of the target page component on the initial page; updating the target component configuration information to a page configuration information set, so as to render a target page using the updated page configuration information set, wherein the page configuration information set includes component configuration information of each page component in the initial page.
[0033] Figure 1 The illustrations depict application scenarios of page generation methods, apparatus, devices, media, and program products according to embodiments of this application.
[0034] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105.
[0035] Network 104 serves as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0036] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0037] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0038] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0039] It should be noted that the page generation method provided in this application embodiment can generally be executed by server 105. Correspondingly, the page generation apparatus provided in this application embodiment can generally be located in server 105. The page generation method provided in this application embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the page generation apparatus provided in this application embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.
[0040] It should be understood that Figure 1 The number of terminal devices, servers, and networks shown is merely illustrative. Depending on implementation needs, any number of terminal devices, servers, and networks can be included.
[0041] Figure 2 A flowchart illustrating a page generation method according to an embodiment of this application is shown schematically.
[0042] like Figure 2 As shown, the page generation method may include operations S210 to S230.
[0043] In operation S210, the user's input interaction information for updating the initial page is subjected to intent recognition, and the intent recognition result is obtained.
[0044] In operation S220, the target component configuration information of the target page component is determined based on the update method information of the target page component.
[0045] In operation S230, the target component configuration information is updated to the page configuration information set so as to render the target page using the updated page configuration information set.
[0046] In this embodiment, the initial page may include, but is not limited to, a blank page and a non-blank page. A blank page may be a page created on an application on a terminal device that has no page components, while a non-blank page may be a page that has already been created and has at least one page component. Page components may include, but are not limited to, basic form components, data display components, layout container components, navigation components, and business-customized components. Basic form components may include, for example, buttons, input boxes, radio buttons, checkboxes, and date pickers. Data display components may include, for example, tables, lists, cards, and charts. Layout container components may include, for example, grids, flexible layout containers, tabs, and collapsible panels. Navigation components may include, for example, menus and pagination. Business-customized components may include, for example, product cards and approval process nodes.
[0047] When users need to design a blank page or redesign a non-blank page, they can obtain the target page that meets their business requirements by updating the blank or non-blank page. To reduce user operations, after the user translates their business requirements into interactive information input, the embedded large language model can be used to parse the interactive information, thereby identifying the user's intent and obtaining the intent recognition result.
[0048] The intent recognition result can include the target page component to be updated and update method information describing how the target page component is updated. Update methods may include, but are not limited to, adding, deleting, replacing, configuring a grid, adjusting component position, scaling, updating API calls, and configuring component content. For example, when the update method is adding, deleting, replacing, configuring a grid, adjusting component position, or scaling, the update method information may be layout information. When the update method is updating API calls or configuring component content, the update method information may be call information.
[0049] Target component configuration information indicates how target page components should be configured on the initial page. For example, it describes how target page components such as buttons and tables should be created, laid out, have their properties set, and have data bound on the initial page.
[0050] The page configuration information set can include the component configuration information of each page component in the initial page. For example, if the initial page is blank, since it does not contain any page components, the page configuration information set does not include any component configuration information. When the target component configuration information is obtained, it is added to this page configuration information set, resulting in an updated page configuration information set. If the initial page is not blank, when the target component configuration information is obtained, if the initial page includes the target page component, the component configuration information of the target page component in the initial page of the page configuration information set can be replaced with the target component configuration information, resulting in an updated page configuration information set. If the initial page does not include the target page component, the target component configuration information can be added to this page configuration information set, resulting in an updated page configuration information set.
[0051] When the page configuration information set is updated, the rendering engine detects the update and re-renders the page to obtain the target page. The rendering engine can perform rendering operations on a server or terminal device.
[0052] This application identifies the target component configuration information of the target page component to be updated by performing intent recognition on the user's interactive information used to update the initial page. This updates the page configuration information set and drives the rendering of the target page. This reduces the user's reliance on low-code platform operating procedures and avoids the instability issues such as page flickering and unpredictable results caused by simulating document object models in traditional AI-assisted development. Furthermore, users can quickly transform abstract business ideas into changed target component configuration information through interactive information, improving page generation efficiency and user experience.
[0053] The following is for reference. Figures 3-7 In conjunction with specific embodiments, Figure 2 The method shown will be further explained.
[0054] Figure 3 A schematic diagram illustrating the determination of target component configuration information according to an embodiment of this application is shown.
[0055] According to one embodiment of this application, regarding the above... Figure 2 The operation S220 shown determines the target component configuration information of the target page component based on the update method information of the target page component. This may include the operation of determining the target code from multiple candidate codes based on the update mapping information and the update method information of the target page component. The target component configuration information of the target page component is then determined using the target code.
[0056] In this embodiment, the update mapping information can indicate the mapping relationship between update method information and candidate code. The candidate code encapsulates the business logic for generating page component update configuration information. The mapping relationship can be pre-stored in the form of a mapping table, configuration file, or strategy pattern.
[0057] For example, when the intent recognition result includes the target page component as a button and the update method information as "add component", such as Figure 3 As shown, based on the added component and the updated mapping information, candidate codes that have a mapping relationship with the added component can be selected as target codes from candidate code 1, candidate code 2, ..., candidate code n.
[0058] like Figure 3 As shown, the update mapping information can have a one-to-one correspondence between update method information and candidate code, such as the correspondence between update method information 1 and candidate code 2, or the correspondence between update method information n and candidate code n, etc. Alternatively, the update mapping information can have a one-to-many correspondence between update method information and candidate code, such as the correspondence between update method information 2 and candidate code 1 and candidate code 2. The target code can be at least one of candidate code 1, candidate code 2, ..., candidate code n. This target code encapsulates the configuration information required to generate the button component, such as the business logic for component type, component attributes, layout position, event binding, etc. Executing this target code yields the target component configuration information.
[0059] This application achieves the ability to determine the target code solely based on the update method information obtained from the interaction information by mapping the update method information to the candidate code. This decouples the page components from the code, improves the flexibility and stability of the AI configuration page, and avoids page flickering.
[0060] The difference in one-to-one and one-to-many mappings between component update methods and candidate code across different update scenarios stems from the fact that page components are not independent entities. They typically exhibit multiple relationships, including layout associations, data dependencies, logical linkages, and style constraints. In complex collaborative update scenarios, the same update method requires multiple differentiated code segments to adapt to various dependencies. If only the target page component triggering the update is updated during the update process, ignoring the aforementioned relationships between page components, issues such as data asynchrony, layout hierarchy errors, rendering conflicts, and abnormal interaction logic can easily arise. Furthermore, directly executing the update logic of multiple related page components in an unordered manner can lead to data transmission gaps, reversed layout rendering, style overriding conflicts, and failed linkage logic due to mismatches between the execution order and the cascading dependencies between page components, impacting page stability and display consistency.
[0061] In view of this, this application provides the following examples and Figure 4 This application provides further explanation on how to determine the target component configuration information when there are multiple target codes.
[0062] Figure 4 A schematic diagram illustrating the determination of target component configuration information according to another embodiment of this application is shown.
[0063] When using target code to determine the target component configuration information of the target page component, it can include, for example: Figure 4 As shown: When there are multiple target codes, based on the cascading relationship information 401 between the multiple target page components to be updated, the execution order of the multiple target codes 402 is sorted to obtain a sorting result 403. The multiple target codes 402 are run in the order of the sorting result 403 to determine the target component configuration information 404 of each of the multiple target page components to be updated.
[0064] Multiple target page components to be updated may include target page components to be updated mentioned in the user input interaction information and other target page components associated with that target page component.
[0065] Cascading relationship information refers to the sequential dependencies, upstream and downstream associations, and transitive constraints among multiple target page components to be updated in terms of rendering hierarchy, data flow, layout constraints, and logic execution. For example, the cascading relationship information between target page components can be determined by parsing the rendering hierarchy structure, data dependency flow, layout constraint associations, and logic execution order of page components.
[0066] Multiple target codes can be used to obtain target component configuration information for different target page components to be updated. The execution result of the target code that appears later in the order depends on the execution result of the target code that appears earlier in the order. For example, the execution result of the target code corresponding to each target page component to be updated can be used as the corresponding target component configuration information.
[0067] This application sorts and executes multiple target codes sequentially by utilizing the cascading relationship information between multiple target page components to be updated. This ensures that the update order of page components remains consistent with the page's dependency logic, avoiding data anomalies, layout errors, and rendering conflicts caused by disordered update order, thus improving the stability, consistency, and execution reliability of page updates. Furthermore, it ensures the orderly and correct nature of the linked updates between page components.
[0068] Because the target page obtained based on user input interaction information may not meet the predetermined page constraints, resulting in issues such as component overlap, content overflow, or rendering abnormalities, which may affect the page display effect and interactive experience.
[0069] In view of this, this application provides further examples and Figure 5 This application provides further details on how the target component configuration information is determined.
[0070] Figure 5 A schematic diagram illustrating the determination of target component configuration information according to another embodiment of this application is shown.
[0071] For example, using target code to determine the target component configuration information of the target page component may include, for instance, the following: Figure 5 As shown: When the update method information includes layout information 501, it is determined whether layout information 501 meets the predetermined page constraints. If it is determined that layout information 501 meets the predetermined page constraints, target component configuration information 502 is obtained based on layout information 501. If it is determined that layout information 501 does not meet the predetermined page constraints, the layout information 501 is updated using the layout adjustment sub-code in the target code to obtain updated layout information. Target component configuration information 502 is obtained based on the updated layout information.
[0072] Layout information may include, but is not limited to, component positions, grid configurations, alignment methods, etc.
[0073] Pre-defined page constraints can be determined based on layout rules and practical experience, and may include constraints on component overlap, misalignment, abnormal spacing, etc.
[0074] For example, if it is determined that the position of a component on the target page would overlap with other components, it can be determined that the layout information does not meet the page constraints. Therefore, the position of the component can be adjusted until the component does not overlap with other components.
[0075] By embedding layout adjustment sub-code with layout adjustment logic within the target code, it can detect layout configurations on the page that do not conform to predetermined page constraints and perform operations to update the layout information. This achieves self-correction capabilities at the layout level, eliminating the need for users to manually locate problems or repeatedly try and fail. This lowers the professional threshold for layout tuning, reduces the time cost of manually checking for unreasonable layouts, ensures the standardization and consistency of the final page structure, and improves the overall efficiency and quality of page construction.
[0076] In another example, using the target code to determine the target component configuration information of the target page component may also include the following operations: if the update method information includes call information, use the data in the target code to call the sub-code to obtain the component content based on the call interface included in the call information; and based on the component content, obtain the target component configuration information.
[0077] The call information may include the API address, API request parameters, and data return format conventions. Component content may include, but is not limited to, display content such as product detail page information, product advertising slogans, and product parameter information. Product detail page information includes main text content such as product material, size, instructions for use, and after-sales guarantees. Product advertising slogans include promotional copy such as limited-time discounts, buy-one-get-one-free offers, new product launches, and 20% off sitewide.
[0078] The data call sub-code can be pre-written with interface call logic, data request encapsulation, and data reception and processing code to adapt to the various requirements of the above call information.
[0079] For example, when a user triggers an update operation on a product component on an e-commerce page, such as switching product promotions, the update method information corresponding to this update operation includes call information. This call information can be used to indicate the data source and acquisition method for obtaining the product-related component content. Based on the mapping relationship between the update method information and candidate code, the target code is determined, and its data call sub-code is executed. This data call sub-code automatically sends a request to the calling interface, carrying activity parameters, to obtain the component content such as the product list, price, inventory, and images under that activity. After obtaining the component content, the target component configuration information of the target page component can be dynamically generated based on a preset template, such as a product card or product table. This includes the display fields, style layout, and clickable links for each product. This target component configuration information is updated in the page configuration information set, triggering the rendering engine to update the page, achieving synchronous switching between product component content and the activity.
[0080] By combining the call information in the update method information with the data call sub-code within the target code, real-time component content can be obtained based on the called interface, and the configuration information of the target component can be determined based on the obtained component content. This extends from interface recognition to data-driven configuration, automatically completing data retrieval and component content population, avoiding the need for users to manually bind data fields or write data processing logic. It ensures real-time synchronization between page components and backend data, significantly improving the automation and configuration accuracy of high-frequency update operations such as product information refresh and activity switching in e-commerce scenarios.
[0081] According to one embodiment of this application, the page generation method may include, in addition to the above... Figure 2 In addition to operations S210 to S230, the operation may further include: in response to receiving a page update request sent by a third-party application through an application interface, determining the interaction information carried in the page update request. If it is determined that an updated page configuration information set has been determined based on the interaction information, the updated page configuration information set is sent to the third-party application so that the third-party application can render the target page using the updated page configuration information set.
[0082] For example, in an application scenario where a user updates an initial page through a browser interface, the backend of the page generation platform, such as a server, can act as the execution entity of the page generation method. The frontend of the page generation platform is the terminal device, such as a browser, which can serve as the interactive terminal. A large language model can be deployed on the server, and the initial page and interactive window can be displayed on the browser interface. A third-party application can be a separate application from the page generation platform. This application can communicate with the page generation platform through an application programming interface (API).
[0083] Figure 6 The illustration shows a schematic diagram of the interaction between different applications according to embodiments of this application.
[0084] like Figure 6 As shown, the interaction between the third application and the page generation platform can include operations S601 to S605.
[0085] When operating S601, a third-party application sends a page update request through the application interface.
[0086] When operating S602, after receiving a page update request, the page generation platform determines the interactive information carried in the page update request.
[0087] When operating S603, the page generation platform determines the updated page configuration information set based on the interaction information.
[0088] When operating S604, if the page generation platform determines that the updated page configuration information set has been determined based on the interaction information, it will send the updated page configuration information set to the third-party application.
[0089] When operating S605, third-party applications use the updated page configuration information set to render the target page.
[0090] The application interface can be a front-end cross-document messaging interface provided by HTML5, such as postMessage.
[0091] It should be noted that, in this embodiment, the updated page configuration information set can be determined using the method described in the above embodiments based on the interaction information, and will not be repeated here.
[0092] Third-party applications do not need to have a built-in page building module. They only need to call the application interface of the page generation platform and pass in the interaction information to obtain a set of page configuration information that can be directly used for rendering, thereby quickly generating the target page in the third-party application environment. This not only reduces the development and maintenance costs of third-party applications, but also enables cross-application reuse of page generation capabilities, supporting multiple business systems to share the same intelligent configuration generation logic while maintaining the independence and flexibility of their respective rendering.
[0093] In practical applications, the information layer used to store and update mapping information can be embedded within a single-page application. However, situations can arise where the information layer has not yet completed initialization, but the caller has already triggered an operation via `postMessage`. If not handled specifically, this will result in the loss of the call request. To address this edge case, specific handling methods can include: during page startup, a dedicated `postMessage` event preprocessor for receiving call requests can be initialized first. This preprocessor is only responsible for storing received call requests in a queue in order. After the information layer has completed full initialization, the preprocessor is destroyed, and the call requests in the queue are executed sequentially.
[0094] According to one embodiment of this application, the page generation method may include, in addition to the above... Figure 2 In addition to operations S210 to S230, the operation may also include: verifying the permissions of the third-party application based on the permission authentication information carried in the page update request. If the permission authentication is successful, the operation of determining the interaction information carried in the page update request is performed.
[0095] Permission authentication information may include, but is not limited to, information registration identifiers, user identity credentials and permission levels, and operation scope restrictions. Information registration identifiers are used to verify whether the interactive information carried in the request has been pre-registered in the platform, i.e., whether it is a legitimate interaction type supported by the platform. User identity credentials and permission levels are used to distinguish user IDs, roles, and affiliated organizations to determine whether they have the authority to perform update operations on the page or component. Operation scope restrictions are used for lists of allowed page IDs to be updated, whitelists of allowed component types, etc. When verifying based on this permission authentication information, if at least one permission verification fails, a verification failure message can be sent to the third-party application. If the permission verification passes, a verification success message can also be sent to the third-party application.
[0096] This application uses permission verification. Only verified interaction information can be processed subsequently, thereby filtering out invalid or undefined requests.
[0097] According to embodiments of this application, users can also input interactive information through an interactive window on the browser interface of the page generation platform. The browser sends this interactive information to the server. The server uses a large language model to perform intent recognition, determines the target page component to be updated and the update method information, then determines the target page configuration information based on the target code that has a mapping relationship with the update method information, and uses this target page configuration information to update the page configuration information set stored on the server, obtaining the updated page configuration information set. The updated page configuration information is then sent to the browser, where the browser's built-in rendering engine performs rendering to obtain the target page, which is then displayed on the browser interface.
[0098] User-input interaction information can originate from manually built entry points. For example, users can manually create entry points to operate components, and after detecting these operations, the user's operation information can be converted into interaction information that the computer can recognize. Alternatively, it can originate from AI dialogue entry points. For example, users can input their business needs through AI dialogue entry points.
[0099] Figure 7 The illustration shows a schematic diagram of page generation according to an embodiment of this application.
[0100] like Figure 7 As shown, users can manually build entry points or use AI dialogue to directly or indirectly input interactive information. A large language model can be used to perform intent recognition on the interactive information, as shown in the above embodiment, to obtain intent recognition results. Based on the intent recognition results, target code is selected from multiple candidate codes, and then the target code is run to obtain target component configuration information. Based on the target component configuration information, the page configuration information set can be updated, and then the rendering engine renders and generates the target page. The specific implementation process described above can be obtained by referring to the corresponding implementation methods in the above embodiments, and will not be repeated here.
[0101] Based on the above page generation method, existing low-code platforms can be improved to elevate the local states scattered within page components to a unified candidate code module, enabling collaboration between humans and AI, decoupling business logic within page components, and achieving shared access to core capabilities.
[0102] Figure 8 A block diagram of a page generation apparatus according to an embodiment of this application is shown schematically.
[0103] like Figure 8 As shown, the page generation device 800 includes an identification module 810, a determination module 820, and an update module 830.
[0104] The recognition module 810 is used to perform intent recognition on the interactive information input by the user for updating the initial page, and obtain intent recognition results. The intent recognition results include the target page component to be updated and update method information describing the update method of the target page component.
[0105] The determination module 820 is used to determine the target component configuration information of the target page component based on the update method information of the target page component, wherein the target component configuration information indicates the configuration method of the target page component on the initial page.
[0106] The update module 830 is used to update the target component configuration information to the page configuration information set, so as to render the target page using the updated page configuration information set. The page configuration information set includes the component configuration information of each page component in the initial page.
[0107] According to an embodiment of this application, the determining module 820 includes a first determining subunit and a second determining subunit. The first determining subunit is used to determine target code from multiple candidate codes based on update mapping information and update method information of the target page component, wherein the update mapping information indicates the mapping relationship between the update method information and the candidate codes. The second determining subunit is used to determine the target component configuration information of the target page component using the target code.
[0108] According to an embodiment of this application, determining the target component configuration information of a target page component using target code includes: when the update method information includes layout information, updating the layout information using layout adjustment sub-code in the target code when it is determined that the layout information does not meet the predetermined page constraints, thereby obtaining updated layout information; and obtaining target component configuration information based on the updated layout information.
[0109] According to an embodiment of this application, determining the target component configuration information of a target page component using target code includes: when the update method information includes call information, using data call sub-code in the target code to obtain component content based on the call interface included in the call information; and obtaining target component configuration information based on the component content.
[0110] According to an embodiment of this application, determining the target component configuration information of a target page component using target code includes: when there are multiple target codes, sorting the execution order of the multiple target codes based on the cascading relationship information between the multiple target page components to be updated, and obtaining a sorting result, wherein the multiple target codes are used to obtain the target component configuration information of different target page components to be updated; and running the multiple target codes in the order of the sorting result to determine the target component configuration information of each of the multiple target page components to be updated.
[0111] According to an embodiment of this application, the page generation apparatus 800 further includes an interaction information determination module and a sending module. The interaction information determination module is used to determine the interaction information carried in the page update request in response to receiving a page update request sent by a third-party application through an application interface. The sending module is used to send the updated page configuration information set to the third-party application if it is determined that an updated page configuration information set has been determined based on the interaction information, so that the third-party application can render the target page using the updated page configuration information set.
[0112] According to an embodiment of this application, the page generation 800 further includes a verification module and an execution module. The verification module is used to verify the permissions of the third-party application based on the permission authentication information carried in the page update request. The execution module is used to perform the operation of determining the interaction information carried in the page update request if the permission authentication is successful.
[0113] Any one or more of the modules, submodules, units, and subunits according to the embodiments of this application, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to the embodiments of this application can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, units, and subunits according to the embodiments of this application can be at least partially implemented as hardware circuits, such as field-programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems-on-a-chip, systems-on-a-substrate, systems-on-package, application-specific integrated circuits (ASICs), or implemented by hardware or firmware in any other reasonable manner by integrating or packaging circuits, or implemented in any one of software, hardware, and firmware, or in a suitable combination of any of these. Alternatively, one or more of the modules, submodules, units, and subunits according to the embodiments of this application can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.
[0114] For example, any plurality of the identification module 810, determination module 820, and update module 830 can be combined into one module / unit / subunit, or any one of these modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functionality of one or more of these modules / units / subunits can be combined with at least part of the functionality of other modules / units / subunits and implemented in one module / unit / subunit. According to embodiments of this application, at least one of the identification module 810, determination module 820, and update module 830 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the identification module 810, the determination module 820, and the update module 830 may be implemented at least partially as a computer program module that can perform corresponding functions when the computer program module is run.
[0115] It should be noted that the page generation device part in the embodiments of this application corresponds to the page generation method part in the embodiments of this application. For a detailed description of the page generation device part, please refer to the page generation method part, which will not be repeated here.
[0116] Figure 9 A block diagram schematically illustrates an electronic device suitable for implementing a page generation method according to an embodiment of this application. Figure 9 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0117] like Figure 9 As shown, an electronic device 900 according to an embodiment of this application includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 902 or a program loaded from a storage portion 908 into a random access memory RAM 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this application.
[0118] RAM 903 stores various programs and data required for the operation of electronic device 900. Processor 901, ROM 902, and RAM 903 are interconnected via bus 904. Processor 901 executes various operations of the method flow according to embodiments of this application by executing programs in ROM 902 and / or RAM 903. It should be noted that programs may also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 may also execute various operations of the method flow according to embodiments of this application by executing programs stored in one or more memories.
[0119] According to embodiments of this application, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to a bus 904. The electronic device 900 may also include one or more of the following components connected to the input / output (I / O) interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output (I / O) interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 910 as needed so that computer programs read from it can be installed into the storage section 908 as needed.
[0120] According to embodiments of this application, the method flow according to embodiments of this application can be implemented as a computer software program. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by processor 901, it performs the functions defined in the system of embodiments of this application. According to embodiments of this application, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0121] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the method according to the embodiments of this application.
[0122] According to embodiments of this application, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0123] For example, according to embodiments of this application, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.
[0124] Embodiments of this application also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this application. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the page generation method provided in the embodiments of this application.
[0125] When the computer program is executed by the processor 901, it performs the functions defined in the system / apparatus of this application embodiment. According to the embodiments of this application, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0126] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 909, and / or installed from a removable medium 911. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0127] According to embodiments of this application, program code for executing the computer programs provided in the embodiments of this application can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features described in the various embodiments of this application can be combined and / or combined in various ways, even if such combinations are not explicitly described in this application. In particular, without departing from the spirit and teachings of this application, the features described in the various embodiments of this application can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of this application.
[0129] The embodiments of this application have been described above. However, these embodiments are merely illustrative and not intended to limit the scope of this application. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Without departing from the scope of this application, those skilled in the art can make various substitutions and modifications, all of which should fall within the scope of this application.
Claims
1. A page generation method, characterized in that, The method includes: The user input of interactive information for updating the initial page is subjected to intent recognition to obtain intent recognition results, wherein the intent recognition results include the target page component to be updated and update method information for describing the update method of the target page component; Based on the update method information of the target page component, the target component configuration information of the target page component is determined, wherein the target component configuration information indicates the configuration method of the target page component on the initial page; The target component configuration information is updated to the page configuration information set so as to render the target page using the updated page configuration information set, wherein the page configuration information set includes the component configuration information of each page component in the initial page.
2. The method according to claim 1, characterized in that, The step of determining the target component configuration information of the target page component based on the update method information of the target page component includes: Based on the update mapping information and the update method information of the target page component, the target code is determined from multiple candidate codes, wherein the update mapping information indicates the mapping relationship between the update method information and the candidate code; The target component configuration information of the target page component is determined using the target code.
3. The method according to claim 2, characterized in that, The step of determining the target component configuration information of the target page component using the target code includes: When the update method information includes layout information, the layout adjustment sub-code in the target code is used to update the layout information when it is determined that the layout information does not meet the predetermined page constraints, so as to obtain updated layout information. Based on the updated layout information, the configuration information of the target component is obtained.
4. The method according to claim 2, characterized in that, The step of determining the target component configuration information of the target page component using the target code includes: When the update method information includes call information, the sub-code is called using the data in the target code to obtain the component content based on the call interface included in the call information; Based on the component content, the configuration information of the target component is obtained.
5. The method according to claim 2, characterized in that, The step of determining the target component configuration information of the target page component using the target code includes: When there are multiple target codes, the execution order of the multiple target codes is sorted based on the cascading relationship information between the multiple target page components to be updated, and a sorting result is obtained. The multiple target codes are used to obtain target component configuration information of different target page components to be updated. Run multiple target codes in the order of the sorting results to determine the target component configuration information of each of the multiple target page components to be updated.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to receiving a page update request sent by a third-party application through an application interface, determine the interaction information carried in the page update request; If it is determined that the updated page configuration information set has been determined based on the interaction information, the updated page configuration information set is sent to the third-party application so that the third-party application can render the target page using the updated page configuration information set.
7. The method according to claim 6, characterized in that, The method further includes: Based on the permission authentication information carried in the page update request, the third-party application's permissions are verified. If the authorization is successful, perform the operation of determining the interactive information carried in the page update request.
8. A page generation apparatus, characterized in that, The device includes: The recognition module is used to perform intent recognition on the interactive information input by the user for updating the initial page, and obtain intent recognition results, wherein the intent recognition results include the target page component to be updated and update method information for describing the update method of the target page component; The determining module is used to determine the target component configuration information of the target page component based on the update method information of the target page component, wherein the target component configuration information indicates the configuration method of the target page component on the initial page; An update module is used to update the target component configuration information to the page configuration information set, so as to render the target page using the updated page configuration information set, wherein the page configuration information set includes the component configuration information of each page component in the initial page.
9. An electronic device, comprising: One or more processors; Memory, used to store one or more programs. The characteristic is that, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, characterized in that, When the instructions are executed by the processor, the processor performs the method of any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the method according to any one of claims 1-7.