Webpage generation method and electronic equipment

The generative language model determines the web page directory structure and elements and automatically generates web pages, which solves the problems of complexity and low efficiency of traditional web page generation and achieves efficient and low-cost web page generation.

CN118733018APending Publication Date: 2024-10-01UC MOBILE CHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410788889.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The traditional web page generation process is complex and inefficient, which limits the diversity and optimization space of web pages. A more convenient web page generation method is needed to reduce operational complexity and cost.

Method used

By obtaining the web page requirement information input by the user and the functional description information of the web page components, the generative language model is used to determine the directory structure and component elements of the target web page, and the target web page is generated based on the element content description information to realize the automated web page generation process.

Benefits of technology

It does not require a lot of manpower and financial resources to design the page structure and write copy, which simplifies the web page generation process, improves efficiency and diversity, lowers the threshold, and avoids traditional complex training processes and hardware development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733018A_ABST
    Figure CN118733018A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a webpage generation method and electronic equipment. The webpage generation method comprises the following steps: obtaining webpage demand information input by a user and function description information of a plurality of webpage constituent elements; according to the webpage demand information and the function description information, determining a directory structure of a to-be-generated target webpage and a plurality of target webpage constituent elements corresponding to the directory structure; according to the content description information corresponding to the multiple target webpage constituent elements, corresponding element contents are determined for the multiple target webpage constituent elements; and generating the target webpage according to the directory structure of the target webpage, the plurality of target webpage constituent elements corresponding to the directory structure and the element contents respectively corresponding to the plurality of target webpage constituent elements. According to the technical scheme, the webpage can be conveniently generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a web page generation method and an electronic device. Background Art

[0002] In the operation of commercial platforms, web pages play a vital role. Take the advertising landing page as an example. Its quality and effect directly affect the overall benefits of advertising. In the traditional process of building web pages (including but not limited to advertising landing pages), a lot of manpower, material resources and financial resources are required to design and produce page structures, write copy, and optimize image content. Even if some processes are simplified with the help of website building platforms, there are still problems such as complex operations and low efficiency, which limits the diversity and optimization space of web pages. Therefore, how to generate web pages more conveniently has become a technical problem that needs to be solved. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a web page generation solution to at least partially solve the above problems.

[0004] According to a first aspect of an embodiment of the present application, a web page generation method is provided, comprising: obtaining web page requirement information input by a user, and functional description information of multiple web page constituent elements; determining a directory structure of a target web page to be generated, and multiple target web page constituent elements corresponding to the directory structure, according to the web page requirement information and the functional description information; determining corresponding element contents for the multiple target web page constituent elements, according to content description information respectively corresponding to the multiple target web page constituent elements; generating the target web page according to the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element contents respectively corresponding to the multiple target web page constituent elements.

[0005] According to a second aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to execute the web page generation method described in the first aspect above by running the computer program stored in the memory.

[0006] According to a third aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the web page generation method as described in the first aspect is implemented.

[0007] According to a fourth aspect of the embodiments of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the web page generation method as described in the first aspect.

[0008] According to the web page generation solution provided in the embodiment of the present application, it is possible to obtain web page requirement information input by a user and functional description information of multiple web page constituent elements, and then determine the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory elements based on the web page requirement information and the functional description information. Then, according to the content description information respectively corresponding to the multiple target web page constituent elements, the corresponding element contents are respectively determined for the multiple target web page constituent elements, and then, according to the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element contents respectively corresponding to the multiple target web page constituent elements, the target web page is generated. Therefore, through the web page generation scheme of the present invention, the user inputs the web page demand information, and can conveniently determine the directory structure of the target web page to be generated, the multiple target web page constituent elements corresponding to the directory structure, and the element contents corresponding to the multiple target web page constituent elements, without investing too much manpower, material resources and financial resources to design and produce the page structure, write copy and optimize image content, etc., so that the web page (such as the target web page) can be conveniently generated, which can effectively reduce the operational complexity of web page generation, improve the efficiency of web page generation, and is conducive to improving the diversity and optimization space of web page generation. In addition, the present invention abandons the complex training process of traditional web page generation, does not require additional hardware investment and development costs, and reduces the threshold for generating web pages. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0010] Figure 1 Schematic diagram of a web page generation system according to an embodiment of the present application.

[0011] Figure 2 The present invention is a flowchart of a method for generating a web page according to an embodiment of the present application.

[0012] Figure 3 This is an optional sub-step flowchart of step S104 of an embodiment of the present application.

[0013] Figure 4 This is an optional sub-step flowchart of step S106 of an embodiment of the present application.

[0014] Figure 5 This is another optional sub-step flowchart of step S106 of an embodiment of the present application.

[0015] Fig. 6A A schematic diagram of a scenario of an example of a web page generation solution according to an embodiment of the present application.

[0016] Figure 6B A schematic diagram of another example scenario of the web page generation solution of an embodiment of the present application.

[0017] Figure 7 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0019] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0020] Figure 1 An exemplary system applicable to the embodiment of the present application is shown. Figure 1 As shown, the system 100 may include a cloud service end 102, a communication network 104 and / or one or more user devices 106. Figure 1 The example shown is a plurality of user devices 106, and the user devices 106 are provided with applications for displaying web pages.

[0021] The cloud server 102 may be any suitable device for storing information, data, programs and / or any other suitable type of content, including but not limited to distributed storage system devices, server clusters, computing cloud server clusters, etc. In some embodiments, the cloud server 102 may perform any suitable function. For example, when the cloud server 102 implements the solution of the embodiment of the present application, in some embodiments, the cloud server 102 may be used to execute the web page generation method. As an optional example, in some embodiments, the cloud server 102 may first obtain the web page demand information input by the user, and the functional description information of multiple web page constituent elements; then, according to the web page demand information and the functional description information, the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure may be determined; then, according to the content description information corresponding to the multiple target web page constituent elements, the corresponding element content may be determined for the multiple target web page constituent elements; thereafter, the target web page may be generated according to the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element content corresponding to the multiple target web page constituent elements. In some embodiments, the cloud service end 102 may receive a webpage generation request sent by the user device 106 , and after generating a target webpage in the aforementioned manner, send the target webpage to the user device 106 , so that the user device 106 displays the target webpage.

[0022] In some embodiments, the communication network 104 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 104 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN) and / or any other suitable communication network. The user device 106 can be connected to the communication network 104 via one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the cloud service end 102 via one or more communication links (e.g., communication link 114). The communication link can be any communication link suitable for transmitting data between the user device 106 and the cloud service end 102, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.

[0023] Optionally, the user device 106 may be provided with an application for displaying a web page, and the user device 106 may include any one or more user devices suitable for displaying a web page, interacting with a user, etc. In some embodiments, the user device 106 may include any suitable type of device. For example, in some embodiments, the user device 106 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, and / or any other suitable type of user device.

[0024] Based on the above system, an embodiment of the present application provides a web page generation solution, which is described below through multiple embodiments.

[0025] Figure 2 A flowchart of the steps of a webpage generation method according to an embodiment of the present application. According to a first aspect of an embodiment of the present application, a webpage generation method is provided, referring to Figure 2 As shown, the method includes steps S102, S104, S106 and S108, specifically:

[0026] S102: Acquire web page requirement information input by the user and functional description information of a plurality of web page constituent elements.

[0027] Among them, the web page demand information in the embodiment of the present application can be text input by the user, or text converted from input voice, etc., which can be used to indicate the user's demand for the target web page.

[0028] Web page constituent elements may be web page elements used to constitute a web page, for example, may include at least one of image elements, text elements, carousel elements, list elements, etc. Among them, carousel elements may refer to web page elements whose content is a plurality of images played in turn, and list elements may refer to web page elements whose content is a list.

[0029] The functional description information of a web page constituent element can be used to describe the function of the web page constituent element. Since the web page constituent element is used to display content in a web page, the content of the web page constituent element can be included when describing the function of the web page constituent element through its functional description information. For example, if the web page constituent element is a carousel element, and its function is to display a carousel in a web page, its functional description information can be described as follows: "The carousel element is used to play multiple pictures in turn." It should be understood that these descriptions are only examples and are not any limitation to the embodiments of the present application.

[0030] In a feasible way, the web page generation method in the embodiment of the present application provides corresponding resources through an external website resource platform to improve the efficiency of web page generation. The website resource platform has various resources for creating websites or web pages, such as various picture resources, text resources, carousel resources, list resources, video resources, audio resources, etc., and provides external use interfaces or ways. In the embodiment of the present application, the resource form, platform implementation form and external use form in the website resource platform are not limited in any way. Optionally, each type of resource in the preset website resource platform also corresponds to corresponding functional description information. It can also be considered that the website resource platform includes information on multiple types of web page constituent elements used to construct web pages and functional description information of multiple types of web page constituent elements. In some optional implementations, the "obtaining functional description information of multiple web page constituent elements" in the above step S102 may include: obtaining information on multiple web page constituent elements used to construct web pages and functional description information of multiple web page constituent elements from the preset website resource platform.

[0031] It should be understood that in the embodiments of the present application, by obtaining information of multiple web page constituent elements used to construct a web page and functional description information of multiple web page constituent elements through a preset website resource platform, the functional description information of multiple web page constituent elements can be obtained more conveniently and quickly, eliminating the need for additional manual input of the functional description information of multiple web page constituent elements, thereby reducing labor costs and effectively improving the efficiency of web page generation.

[0032] Optionally, when the user enters the web page demand information, the guidance information can be displayed to guide the user to input. The guidance information can be information used to guide the user to enter the web page demand information. For example, as some examples, the guidance information can include information such as the industry targeted by the target web page, or the guidance information can also be an existing case, or the guidance information can also be option information for the user to select, etc. For example, if the target web page is an advertising landing page for the mineral water sales industry, then the relevant industry information about the mineral water sales industry and the comparative data between the mineral water sales industry and other industries and other characteristic information can be displayed to assist the user to enter the web page demand information; for another example, the web page demand information case corresponding to the existing mineral water sales industry advertising landing page can also be displayed, so that the user can enter the web page demand information that he wants to enter by comparing the case; for another example, multiple web page demand options for the advertising landing page of the mineral water sales industry can be preset to guide the user to fill in and select, so that the corresponding web page demand information can be generated according to the user's filling and selection results, etc. It should be understood that the above examples are not intended to be any limitation to the embodiments of the present application.

[0033] S104: Determine the directory structure of the target web page to be generated and a plurality of target web page constituent elements corresponding to the directory structure according to the web page requirement information and the function description information.

[0034] In the embodiment of the present application, the directory structure of the target web page can represent the web page structure of the target web page. Through the directory structure, the relationship and even the position of different web page constituent elements can be effectively indicated.

[0035] In the embodiment of the present application, by parsing the web page demand information, the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure can be determined according to the web page demand information and the function description information, thereby realizing the directory planning of the target web page to facilitate the subsequent generation of the target web page.

[0036] In some optional embodiments, step S104 includes: inputting the web page requirement information and the function description information as the first prompt information into the generative language model, and generating a directory structure of the target web page to be generated and a plurality of target web page constituent elements corresponding to the directory structure through the generative language model according to the first prompt information.

[0037] One implementation of a generative language model is a large language model (LLM), which can generate natural language text, deeply understand the meaning of the text, and handle various natural language tasks. Existing or innovative generative language models can be used to implement the above steps.

[0038] Optionally, the generative language model may have an input interface that matches it, and the webpage requirement information and the functional description information of the multiple webpage constituent elements may be input into the generative language model through the input interface. Thus, the webpage requirement information and the functional description information may be used as the first prompt information, and the generative language model may understand the first indication information, generate and output the corresponding directory structure of the target webpage to be generated, and the multiple target webpage constituent elements corresponding to the directory structure as the result.

[0039] Optionally, the user may input web page requirement information into the generative language model through the input interface in any manner.

[0040] In some example embodiments, a user may input functional description information of multiple web page elements into a generative language model through an input interface in any manner; in other example embodiments, since the functional description information of multiple web page elements may be pre-stored in a web page resource platform, the generative language model may directly call the functional description information from the web page resource platform.

[0041] It should be understood that in the embodiment of the present application, a generative language model (such as LLM) is used to generate a directory structure of the target web page to be generated based on the first indication information, and multiple target web page constituent elements corresponding to the directory structure, which helps to accurately and quickly determine the directory structure and multiple target web page constituent elements, and helps to improve the efficiency of web page generation.

[0042] In addition to using a generative language model, in some optional embodiments, step S104 may also use Figure 3 In the flowchart shown, step S104 includes the following sub-steps S1041 and S1042, specifically:

[0043] S1041: Generate a directory structure including a plurality of target items for a target web page to be generated according to the web page requirement information, wherein the plurality of directory items respectively correspond to the directory requirement information.

[0044] Each directory item may subsequently determine a suitable target web page constituent element for the target web page, so as to generate the target web page. Optionally, the plurality of directory items may be embodied in text format. The directory requirement information may describe user requirements that the directory item needs to satisfy in the target web page. Optionally, the directory requirement information may also be embodied in text format.

[0045] For example, taking the use of a generative language model (such as LLM) to implement the above S1041 as an example, in an example that is easy to understand, the web page demand information input by the user may be "I run a flower shop that provides seasonal flowers such as roses, lilies, and peonies, and I need to design a promotional web page." The web page demand information and the functional description information of multiple web page constituent elements may be input as the first prompt information to the generative language model (such as LLM), and the generative language model (such as LLM) understands the first prompt information, thereby generating and outputting the directory structure of the target web page in the following example: "

[0046] 1. Home page banner (showing store features and main products)

[0047] 2. Fresh Bouquet Picture Example(...)

[0048] 3. Customer praise display area(...)

[0049] 4.Store introduction and story(...)

[0050] 5. Contact and ordering information(...)

[0051] ”.

[0052] Sections 1 to 5 are all directory items, and each section is accompanied by directory requirement information to facilitate the selection of appropriate web page components in the next step. For the convenience of citing this example below, it is recorded as "Example 1".

[0053] S1042: Matching the catalog requirement information corresponding to the multiple catalog items with the function description information of the multiple web page constituent elements, so as to determine the multiple web page constituent elements corresponding to the multiple catalog items according to the matching results.

[0054] Optionally, a generative language model (such as LLM) can be used to analyze directory requirement information corresponding to multiple directory items and functional description information of multiple web page constituent elements (which can be obtained from a web page resource platform), so that the model can understand and judge the functional role of each directory item and its usage scenario, and thus match the directory requirement information corresponding to the multiple directory items with the functional description information of the multiple web page constituent elements, so as to determine the multiple web page constituent elements corresponding to the appropriate multiple directory items according to the matching results.

[0055] Optionally, a match can be made based on the semantics of the directory requirement information corresponding to the directory item and the functional description information of the web page constituent elements, and the functional description information of the web page constituent element that has the highest semantic match with the directory requirement information corresponding to the directory item can be determined, and the web page constituent element corresponding to the determined functional description information can be determined as the web page constituent element corresponding to the directory item.

[0056] For example, taking the aforementioned directory item "1. Home page banner" as an example, when matching the directory item, the directory requirement information can be matched with the functional description information of web page constituent elements such as picture elements, text elements, carousel elements, list elements, etc., and the appropriate one can be matched: picture element as the web page constituent element corresponding to the directory item. Obviously, the picture element is more suitable for implementing the home page banner in the web page. Of course, this is just an example for easy understanding and is not intended to limit the embodiments of the present application.

[0057] Based on this, the embodiment of the present application can more accurately and effectively determine the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure through the optional implementation of the above sub-steps S1041 to S1042, so as to improve the effect of web page generation.

[0058] In some optional embodiments, the web page generation method in the embodiment of the present application further includes: setting the element type attribute of the web page constituent element corresponding to each directory item according to the element types of the multiple web page constituent elements respectively corresponding to the multiple directory items.

[0059] For example, for the five directory items in paragraphs 1 to 5 in the above "Example 1", after the corresponding web page constituent elements are determined, each directory item can be added with an element type attribute, for example, in the following example format: "

[0060] 1. Home page banner: picture element

[0061] 2. Fresh Bouquet Picture Example: Carousel Elements

[0062] 3. Customer Praise Display Area: List Elements

[0063] 4. Store introduction and story: text elements

[0064] 5. Contact and ordering information: text elements

[0065] ”.

[0066] Based on this, in the embodiment of the present application, by setting the element type attribute of the web page constituent element corresponding to each directory item, the speed of subsequently generating the target web page can be conveniently improved.

[0067] In some optional embodiments, the web page generation method of the embodiment of the present application further includes: acquiring a page layout data sample, and determining page layout information based on the page layout data sample.

[0068] In an embodiment of the present application, the page layout data sample may be any data sample that can indicate the page layout of a web page, for example, it may include but is not limited to an image data sample, a text data sample, etc. The page layout information may indicate the arrangement, organization, and spatial distribution of each web page element of the web page on the page. The page layout information determines the appearance and visual effect of the web page, and also directly affects the user experience and the efficiency of information transmission. Therefore, using a suitable page layout data sample to obtain the page layout information can improve the user experience and the use effect of the target web page. Optionally, the page layout information in the form of text information can be used to facilitate the understanding of a generative language model (such as an LLM).

[0069] It should be understood that the page layout data sample can be used as an example of the page layout of the target web page subsequently generated in the embodiment of the present application. It can not only be selected as needed, but also be used to speed up the generation rate of the subsequent target web page.

[0070] Therefore, in the embodiment of the present application, a page layout data sample is obtained, and page layout information is determined based on the page layout data sample, so that a target web page that meets the requirements can be subsequently generated according to the page layout information.

[0071] Optionally, the above-mentioned “obtaining a page layout data sample, and determining page layout information based on the page layout data sample” may include: obtaining a page image data sample input by a user, and performing page layout analysis on the page image data sample to obtain page layout information.

[0072] Based on this, in the present application, by obtaining the page image data sample input by the user and performing page layout analysis on the page image data sample, more intuitive page layout information can be obtained. In addition, this can allow the user to input appropriate page image data samples as required, thereby flexibly corresponding to the required page layout information, thereby facilitating more convenient subsequent generation of a target web page that meets the requirements based on the page layout information and improving the efficiency of target web page generation.

[0073] Optionally, the page image data sample can be implemented as image data of any web page. For example, it can be a screenshot of a web page, a picture printed from a web page, or design drawing data of a web page. Taking a screenshot of a web page as an example, when browsing a web page, if a user sees a web page of a style they like, they can take a screenshot of the web page to obtain a screenshot of the web page (i.e., a page image data sample). The screenshot of the web page can be used as an example of page layout, and then the screenshot of the web page can be analyzed for page layout to obtain corresponding page layout information.

[0074] Optionally, the page layout analysis of the page image data sample can be implemented in any manner. For example, the page image data sample can be input into a pre-trained AI model, and the page layout analysis of the page image data sample can be performed by the AI ​​model to obtain the page layout information.

[0075] After obtaining the page layout information, in some optional embodiments, step S104 may include: determining the directory structure of the target web page to be generated and a plurality of target web page constituent elements corresponding to the directory structure according to the web page requirement information, the function description information and the page layout information.

[0076] Based on this, the present application can effectively determine the directory structure of the target web page to be generated, and the multiple target web page constituent elements corresponding to the directory structure by combining web page demand information, function description information and page layout information, and can be more consistent with the page layout data sample, so as to obtain a target web page that can better meet the needs and improve the efficiency of generating target web pages.

[0077] Optionally, web page requirement information, function description information and page layout information can be used as first prompt information and input into a generative language model (e.g., LLM). The generative language model generates a directory structure of the target web page to be generated and multiple target web page constituent elements corresponding to the directory structure based on the first prompt information.

[0078] It should be understood that in the embodiment of the present application, a generative language model (such as LLM) is used to generate a directory structure of the target web page to be generated based on the first indication information, and multiple target web page constituent elements corresponding to the directory structure, which helps to accurately and quickly determine the directory structure and multiple target web page constituent elements, and helps to improve the efficiency of web page generation.

[0079] S106: Determine corresponding element contents for the multiple target web page constituent elements respectively according to the content description information respectively corresponding to the multiple target web page constituent elements.

[0080] Optionally, after determining multiple target web page constituent elements, content description information corresponding to the multiple target web page constituent elements can be obtained to determine corresponding element contents for the multiple target web page constituent elements, thereby reducing the operational complexity of element content generation when generating the target web page and improving the efficiency of web page generation.

[0081] The content description information may describe the content that the target web page constituent element needs to display. Optionally, the content description information may be text information. Optionally, the content description information may be input by the user as needed for the target web page constituent element.

[0082] The specific implementation of step S106 is not limited in the present application. Figure 4 In the flowchart shown, step S106 includes the following sub-steps S106A and S106B, specifically:

[0083] S106A: Generate second prompt information according to a plurality of target web page constituent elements, content description information respectively corresponding to the plurality of target web page constituent elements, and web page demand information obtained through chain calling.

[0084] Objects can be called continuously through method chaining, and relevant information of the object can be passed from the previous step to the current step. In the embodiment of the present application, the web page requirement information in the previous step is obtained through chain calling, which is convenient for generating the second prompt information, and can improve the readability and composability of the code, making the code more concise, flexible and easy to maintain.

[0085] S106B: Generate corresponding element contents for the multiple target web page constituent elements respectively according to the second prompt information by using a generative language model.

[0086] Based on this, in the embodiment of the present application, the second prompt information is generated according to multiple target web page constituent elements, the content description information corresponding to the multiple target web page constituent elements, and the web page demand information obtained through chain calls. Through the ability of the generative language model, the corresponding element content can be accurately and quickly generated for the multiple target web page constituent elements according to the second prompt information, which helps to improve the efficiency of web page generation. In addition, through the ability of the generative language model, the generated element content can be made richer and more diverse to improve the effect of web page generation.

[0087] The above sub-steps S106A and S106B may be implemented in a variety of optional ways, which are described in detail below.

[0088] In some optional embodiments, sub-step S106A includes: generating corresponding multiple sub-prompt information for multiple target web page constituent elements according to content description information corresponding to the multiple target web page constituent elements and web page demand information obtained through chain calls; sub-step S106B includes: using a generative language model, separately processing each of the multiple sub-prompt information; and generating element content corresponding to the multiple target web page constituent elements according to the processing results of each sub-prompt information.

[0089] Based on this, in the embodiment of the present application, corresponding multiple sub-prompt information is generated for multiple target web page constituent elements, and then each of the multiple sub-prompt information is processed separately through the generative language model to generate element content corresponding to the multiple target web page constituent elements according to the processing results. In this way, multiple sub-prompt information can be input into the generative language model for processing respectively, so as to accurately and quickly generate corresponding element content for multiple target web page constituent elements respectively with the help of the ability of the generative language model, which helps to improve the efficiency of web page generation. In addition, through the ability of the generative language model, the generated element content can be made richer and more diverse to improve the effect of web page generation.

[0090] In some optional embodiments, sub-step S106A includes: generating overall prompt information corresponding to multiple target web page constituent elements based on multiple target web page constituent elements and content description information corresponding to each target web page constituent element, and web page demand information obtained through chain calling; sub-step S106B includes: inputting the overall prompt information into a generative language model, and generating element contents corresponding to the multiple target web page constituent elements respectively according to the overall prompt information through the generative language model.

[0091] Based on this, in the embodiment of the present application, overall prompt information corresponding to multiple target web page constituent elements is generated, and then the generative language model is used to generate element contents corresponding to the multiple target web page constituent elements according to the overall prompt information. In this way, the overall prompt information can be input into the generative language model for processing, so that with the help of the ability of the generative language model, the corresponding element contents can be accurately and quickly generated for the multiple target web page constituent elements, which helps to improve the efficiency of web page generation. In addition, through the ability of the generative language model, the generated element content can be made richer and more diverse, so as to improve the effect of web page generation.

[0092] The following describes an optional method for generating element content in step S106. Figure 5 In the flowchart shown, step S106 includes the following sub-steps S1061 and S1062, specifically:

[0093] S1061: Generate text content and / or multimedia content description information in corresponding element contents for the multiple target web page constituent elements respectively through a generative language model according to the content description information respectively corresponding to the multiple target web page constituent elements.

[0094] In order to efficiently utilize AI tools such as generative language models (such as LLM) to generate element content that meets user needs and reduce complexity and cost at the same time, the embodiments of the present application focus on two major parts: text content and multimedia content. Multimedia content may include at least one of picture content, video content, etc. (for ease of explanation, the following may take picture content as an example). Although web page constituent elements may include HTML tags, JS interactive information, and CSS styles, etc., what users can perceive are mainly text content and multimedia content. Therefore, the generative language model in the embodiments of the present application can focus on generating text content and multimedia content description information, so as to generate element content corresponding to the target web page elements based on this in combination with user needs.

[0095] Optionally, in an embodiment of the present application, content description information corresponding to a plurality of target web page constituent elements can be input into a generative language model. The generative language model can understand the content description information and, through its powerful text generation capability, generate text content that meets the needs and / or generate multimedia content description information that meets the needs.

[0096] The multimedia content description information may describe the multimedia content. Optionally, the multimedia content description information may be in any form such as keywords, description sentences, corresponding semantic content, etc. For ease of explanation, keywords may be used as an example below.

[0097] S1062: Determine corresponding element contents for each of the plurality of target web page constituent elements according to the text content and / or multimedia content description information in the element content.

[0098] Optionally, if the element content of the target webpage constituent element requires text content, the text content generated by the generative language model (eg, LLM) in sub-step S1061 may be determined as the element content of the target webpage constituent element.

[0099] Optionally, if the element content of the target webpage constituent element requires multimedia content (eg, image content), corresponding multimedia content may be determined as the element content for the target webpage constituent element according to multimedia content description information (eg, keywords of the image content).

[0100] Optionally, if the element content of the target web page constituent element requires text content and multimedia content (such as picture content), the corresponding multimedia content can be determined for the target web page constituent element based on the multimedia content description information (such as keywords of the picture content), and the multimedia content and the text content generated by the generative language model (such as LLM) in sub-step S1061 are determined as the element content of the target web page constituent element.

[0101] Based on this, in the embodiment of the present application, through the optional implementation of the above sub-steps S1061 to S1062, on the one hand, according to the content description information corresponding to the multiple target web page constituent elements, through the text generation capability of the generative language model, the text content and / or multimedia content description information in the corresponding element content can be quickly and accurately generated for the multiple target web page constituent elements, so as to quickly and accurately determine the corresponding element content for the multiple target web page constituent elements based on this, thereby improving the web page generation efficiency; on the other hand, since the embodiment of the present application focuses on the generation of text content and multimedia content through the generative language model, the generative language model can be efficiently utilized to better generate element content that meets user needs and reduce complexity and cost at the same time; on the other hand, through the capability of the generative language model, the generated text content and / or multimedia content description information can be more abundant and diverse, thereby making the generated element content more abundant and diverse, thereby improving the effect of web page generation.

[0102] The specific implementation of sub-step S1062 is not limited in the embodiments of the present application. In some optional embodiments, if the element content includes multimedia content described by the multimedia content description information, then sub-step S1062, when determining corresponding element contents for multiple target web page constituent elements respectively according to the multimedia content description information in the element content, can be performed by: determining multimedia content matching the multimedia content description information from a preset multimedia resource library according to the multimedia content description information.

[0103] Some multimedia contents may be pre-stored in the preset multimedia resource library, which may be any database, storage medium, resource platform, etc. Optionally, a search may be performed from the multimedia resource library according to multimedia content description information (e.g., keywords) to match multimedia contents matching the multimedia content description information, so that the target web page constituent elements may utilize at least a portion of the multimedia contents, so as to facilitate the generation of the target web page.

[0104] It should be understood that in the above manner, by matching multimedia content from a preset multimedia resource library, multimedia content that meets the needs can be quickly and effectively acquired for web page generation, thereby improving the efficiency of web page generation.

[0105] In the embodiment of the present application, when multimedia content matching the multimedia content description information is determined from a preset multimedia resource library according to the multimedia content description information, it can be implemented according to the actual situation of the multimedia content description information.

[0106] For example, optionally, if the multimedia content description information is used to indicate the address where the multimedia content is located, multimedia content matching the multimedia content description information is determined from a preset multimedia resource library according to the address.

[0107] Optionally, the address mentioned here may refer to a URL (Uniform Resource Locator) address of multimedia content (e.g., image content). By generating multimedia content description information indicating the address where the multimedia content is located, multimedia content (e.g., image content) matching the multimedia content description information can be accurately and effectively determined from a preset multimedia resource library according to the URL address.

[0108] For another example, optionally, if the multimedia content description information is an identifier of the multimedia content, multimedia content matching the multimedia content description information is determined from a preset multimedia resource library according to the identifier.

[0109] Optionally, the identifier of the multimedia content described herein can be used to uniquely represent the multimedia content (e.g., image content). For example, an identifier of 1 uniquely represents multimedia content 1 in the multimedia resource library, and an identifier of 2 uniquely represents multimedia content 2 in the multimedia resource library. By generating multimedia content description information represented by the identifier of the multimedia content, multimedia content (e.g., image content) matching the multimedia content description information can be accurately and effectively determined from a preset multimedia resource library based on the identifier.

[0110] For another example, optionally, if the multimedia content description information is used to indicate the content semantics of the multimedia content, then according to the analysis result of the content semantics, multimedia content matching the multimedia content description information is determined from a preset multimedia resource library.

[0111] Optionally, the multimedia content description information that can indicate the content semantics of the multimedia content can be keywords or description sentences of the multimedia content in some optional examples. The content semantics can be understood and analyzed, and multimedia content (such as picture content) similar to the content semantics can be determined from a preset multimedia resource library according to the analysis results, and at least part of the determined multimedia content can be used as multimedia content matching the multimedia content description information. In this way, the multimedia content (such as picture content) matching the multimedia content description information can be accurately and effectively determined from the preset multimedia resource library.

[0112] S108: Generate a target webpage according to the directory structure of the target webpage, a plurality of target webpage constituent elements corresponding to the directory structure, and element contents respectively corresponding to the plurality of target webpage constituent elements.

[0113] Optionally, the element contents corresponding to the multiple target webpage constituent elements can be respectively filled into the multiple target webpage constituent elements. According to the directory structure of the target webpage and the multiple target webpage constituent elements filled with the element contents, a target webpage that meets the user's needs can be quickly generated.

[0114] Based on this, through the optional implementation of the above steps S102 to S108, the web page demand information input by the user and the functional description information of multiple web page constituent elements can be obtained, and then the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory elements are determined based on the web page demand information and the functional description information. Then, according to the content description information corresponding to the multiple target web page constituent elements, the corresponding element contents are determined for the multiple target web page constituent elements respectively, and then the target web page is generated based on the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element contents corresponding to the multiple target web page constituent elements. Therefore, through the web page generation scheme of the present invention, the user inputs the web page demand information, and can conveniently determine the directory structure of the target web page to be generated, the multiple target web page constituent elements corresponding to the directory structure, and the element contents corresponding to the multiple target web page constituent elements, without investing too much manpower, material resources and financial resources to design and produce the page structure, write copy and optimize image content, etc., so that the web page (such as the target web page) can be conveniently generated, which can effectively reduce the operational complexity of web page generation, improve the efficiency of web page generation, and is conducive to improving the diversity and optimization space of web page generation. In addition, the present invention abandons the complex training process of traditional web page generation, does not require additional hardware investment and development costs, and reduces the threshold for generating web pages.

[0115] In some optional embodiments, step S108 includes: obtaining a preset web page template; generating or modifying the content in the web page template according to the directory structure of the target web page, multiple target web page constituent elements corresponding to the directory structure, and element contents corresponding to the multiple target web page constituent elements, so as to generate the web page code of the target web page, or generating the web page code of the target web page and generating a rendered target web page based on the web page code.

[0116] Based on this, the embodiments of the present application can effectively generate a target web page that meets user needs based on the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element contents corresponding to the multiple target web page constituent elements, thereby effectively reducing the complexity of web page generation operations and improving the efficiency of web page generation.

[0117] It should be understood that the preset web page templates can be pre-stored, and a suitable web page template can be obtained when needed to facilitate the generation of a target web page.

[0118] Optionally, after the webpage code of the target webpage is generated, the webpage code can be sent to the user device, and the user device can render the webpage code to display the rendered target webpage. In this way, the target webpage can be viewed by the user holding the user device, so that the target webpage can play the required function (for example, if the target webpage is an advertisement landing page, an advertisement can be delivered to the user).

[0119] Optionally, after the webpage code of the target webpage is generated and the rendered target webpage is generated based on the webpage code, the user device may display the rendered target webpage. In this way, the target webpage can be viewed by a user holding the user device so that the target webpage can play a required function (for example, if the target webpage is an advertisement landing page, an advertisement can be delivered to the user).

[0120] It should be understood that through the web page generation scheme above the embodiment of the present application, the generation of the target web page can be completed through 1 to 2 rounds of dialogue with AI (ie, a generative language model). Moreover, there is no upfront training cost and dependency, which also avoids additional hardware costs and development costs. Since the content of each conversation is a small amount of text content, the cost of calling AI is extremely low, and the production speed is extremely fast. The generation of the target web page can be completed in 20 seconds or even less. At the same time, content production can utilize a complete AI knowledge base, and the service can be covered to any user who needs to generate a web page (for example, including but not limited to advertisers who need advertising landing pages).

[0121] Below, refer to Fig. 6A The schematic diagram of the scenario shown in FIG. 1 is an exemplary description of the overall implementation process of the webpage generation solution of the embodiment of the present application. The overall implementation process can be understood by substituting it into the scenario where the target webpage to be generated is an advertisement landing page. Fig. 6A As shown, when establishing a target web page (such as an advertising landing page), the user can input the requirements under the guidance of the guidance information to input the web page requirement information, and can obtain the functional description information of multiple web page constituent elements from the web page resource platform; then, the web page requirement information and the functional description information of multiple web page constituent elements can be input into the generative language model (such as LLM) as the first prompt information to conduct a first round of AI dialogue with the generative language model to generate a directory structure of the target web page to be generated and multiple target web page constituent elements corresponding to the directory structure; then, according to the multiple target web page constituent elements, the content description information respectively corresponding to the multiple target web page constituent elements, and the function description information of the multiple web page constituent elements, the function description information of the multiple web page constituent elements can be obtained through chain calling. The obtained web page demand information is used to generate second prompt information, and the second prompt information is input into a generative language model (such as LLM) to conduct a second round of AI dialogue with the generative language model to generate element contents of multiple target web page constituent elements; thereafter, based on obtaining a preset web page template, according to the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element contents respectively corresponding to the multiple target web page constituent elements, the content in the web page template can be generated or modified to generate the web page code of the target web page, or the web page code of the target web page is generated and the rendered target web page is generated based on the web page code, thereby realizing the generation of the target web page.

[0122] Next, refer to Figure 6B The schematic diagram of the scenario shown in FIG. 1 is an exemplary description of another overall implementation process of the webpage generation solution of the embodiment of the present application. The overall implementation process can be understood by substituting it into the scenario where the target webpage to be generated is an advertisement landing page. Figure 6B As shown, when establishing a target web page (such as an advertising landing page), the user can input the requirements under the guidance of the guidance information to input the web page requirement information, and can obtain the functional description information of multiple web page constituent elements from the web page resource platform, and input the page layout data sample (such as a screenshot of a sample web page, etc.) to perform page layout analysis to obtain the page layout information; thereafter, the web page requirement information, the functional description information of multiple web page constituent elements, and the page layout information can be input into a generative language model (such as an LLM) as the first prompt information to conduct a first round of AI dialogue with the generative language model to generate a directory structure of the target web page to be generated, and multiple target web page constituent elements corresponding to the directory structure; thereafter, based on the multiple target web page constituent elements, the multiple The second prompt information is generated based on the content description information corresponding to the target web page constituent elements and the web page requirement information obtained through chain calling, and the second prompt information is input into a generative language model (such as LLM) to conduct a second round of AI dialogue with the generative language model to generate element content of multiple target web page constituent elements; thereafter, based on obtaining a preset web page template, according to the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element content corresponding to the multiple target web page constituent elements, the content in the web page template can be generated or modified to generate the web page code of the target web page, or the web page code of the target web page is generated and the rendered target web page is generated based on the web page code, thereby realizing the generation of the target web page.

[0123] It should be understood that Fig. 6A and Figure 6B More details of the overall implementation process shown can also be understood in conjunction with the above embodiments, and Fig. 6A and Figure 6B The overall implementation process shown is only some examples for easy understanding of the embodiments of the present application and is not intended to limit the embodiments of the present application.

[0124] In summary, in the web page generation scheme provided in the embodiment of the present application, the user inputs the web page demand information, and can conveniently determine the directory structure of the target web page to be generated, the multiple target web page constituent elements corresponding to the directory structure, and the element contents corresponding to the multiple target web page constituent elements, without investing too much manpower, material resources and financial resources to design and produce the page structure, write copy and optimize the image content, etc., so that the web page (such as the target web page) can be conveniently generated, which can effectively reduce the complexity of the operation of web page generation, improve the efficiency of web page generation, and is conducive to improving the diversity and optimization space of web page generation. In addition, this scheme abandons the complex training process of traditional web page generation, does not require additional hardware investment and development costs, and reduces the threshold for generating web pages.

[0125] It can be understood that the above description of the webpage generation method is only an exemplary description of the embodiments of the present application, and does not constitute any limitation to the embodiments of the present application.

[0126] According to a second aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to execute the web page generation method described in the first aspect above by running the computer program stored in the memory.

[0127] Figure 7 1 shows a block diagram of an optional electronic device in an embodiment of the present application. The present application embodiment does not limit the specific implementation of the electronic device 700. As an example, refer to Figure 7 The electronic device 700 provided in the embodiment of the present application includes: a processor 702, a communication interface 704, a memory 706, and a communication bus 708. Among them:

[0128] The processor 702 , the communication interface 704 , and the memory 706 communicate with each other via a communication bus 708 .

[0129] The communication interface 704 is used to communicate with other electronic devices or servers.

[0130] The processor 702 is used to execute the computer program 710, and specifically can execute the relevant steps in any of the aforementioned webpage generation method embodiments.

[0131] Specifically, the computer program 710 may include program codes including computer operation instructions.

[0132] The processor 702 may be a CPU, or a GPU (Graphic Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0133] The memory 706 is used to store the computer program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0134] The computer program 710 may be specifically configured to enable the processor 702 to execute the webpage generation method in any of the aforementioned embodiments.

[0135] The specific implementation of each step in the computer program 710 can refer to the corresponding description of the corresponding steps and units in any of the aforementioned webpage generation method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiments, which will not be repeated here.

[0136] The electronic device 700 in the embodiment of the present application has been described in detail in the aforementioned web page generation method embodiment, so its related contents and beneficial effects can be understood with reference to the aforementioned method embodiment, and will not be described again here.

[0137] According to a fourth aspect of the embodiments of the present application, the embodiments of the present application further provide a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, the webpage generation method described in any of the aforementioned multiple method embodiments is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk, or a magneto-optical disk, etc.

[0138] According to a fifth aspect of the embodiments of the present application, the embodiments of the present application further provide a computer program product, including a computer program, which, when executed by a processor, implements the web page generation method as described in any one of the above-mentioned multiple method embodiments.

[0139] The electronic device 700 / computer storage medium / computer program product embodiment in the embodiment of the present application has been described in detail in the aforementioned web page generation method embodiment, so its related content and beneficial effects can be understood with reference to the aforementioned method embodiment and will not be repeated here.

[0140] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present 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 need to 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.

[0141] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0142] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.

[0143] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for specific applications, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0144] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". It should be noted that the concepts of "first", "second", etc. mentioned in the embodiments of the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the embodiments of the present application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0145] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

Claims

1. A web page generation method, comprising: Obtaining web page requirement information input by a user and functional description information of multiple web page constituent elements; Determine, according to the webpage requirement information and the function description information, a directory structure of a target webpage to be generated and a plurality of target webpage constituent elements corresponding to the directory structure; Determining corresponding element contents for the multiple target web page constituent elements respectively according to the content description information respectively corresponding to the multiple target web page constituent elements; The target webpage is generated according to the directory structure of the target webpage, a plurality of target webpage constituent elements corresponding to the directory structure, and element contents respectively corresponding to the plurality of target webpage constituent elements.

2. The method according to claim 1, wherein: The step of determining the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure according to the web page requirement information and the function description information comprises: inputting the web page requirement information and the function description information as first prompt information into a generative language model, and generating the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure according to the first prompt information through the generative language model; The determining corresponding element contents for the multiple target web page constituent elements respectively according to the content description information respectively corresponding to the multiple target web page constituent elements comprises: generating second prompt information according to the multiple target web page constituent elements, the content description information respectively corresponding to the multiple target web page constituent elements, and the web page requirement information obtained through chain calling; and generating corresponding element contents for the multiple target web page constituent elements respectively according to the second prompt information through the generative language model.

3. The method according to claim 2, wherein: The generating of the second prompt information according to the plurality of target web page constituent elements, the content description information respectively corresponding to the plurality of target web page constituent elements, and the web page requirement information obtained through chain calling includes: Generate corresponding sub-prompt information for the multiple target web page constituent elements respectively according to the content description information respectively corresponding to the multiple target web page constituent elements and the web page demand information obtained through chain calling; The generating corresponding element contents for the plurality of target web page constituent elements respectively according to the second prompt information by the generative language model includes: Each of the plurality of sub-prompt information is processed separately through the generative language model; and element contents corresponding to the plurality of target web page constituent elements are generated according to the processing result of each sub-prompt information.

4. The method according to claim 2, wherein: The generating of the second prompt information according to the plurality of target web page constituent elements, the content description information respectively corresponding to the plurality of target web page constituent elements, and the web page requirement information obtained through chain calling includes: Generate overall prompt information corresponding to the plurality of target web page constituent elements according to the plurality of target web page constituent elements and the content description information corresponding to each target web page constituent element, and the web page demand information obtained through chain calling; The generating corresponding element contents for the plurality of target web page constituent elements respectively according to the second prompt information by the generative language model includes: The overall prompt information is input into the generative language model, and the generative language model generates element contents corresponding to the multiple target web page constituent elements according to the overall prompt information.

5. The method according to any one of claims 1 to 4, wherein: The step of determining the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure according to the web page requirement information and the function description information includes: According to the webpage requirement information, a directory structure including a plurality of target items is generated for the target webpage to be generated, wherein the plurality of directory items respectively correspond to the directory requirement information; The directory requirement information respectively corresponding to the plurality of directory items is matched with the function description information of the plurality of web page constituent elements, so as to determine the plurality of web page constituent elements respectively corresponding to the plurality of directory items according to the matching result.

6. The method according to claim 5, wherein: The method further comprises: According to the element types of the multiple web page constituent elements respectively corresponding to the multiple directory items, an element type attribute of the web page constituent element corresponding to the directory item is set for each directory item.

7. The method according to any one of claims 1 to 4, wherein: The step of determining corresponding element contents for the plurality of target web page constituent elements respectively according to the content description information respectively corresponding to the plurality of target web page constituent elements comprises: According to the content description information respectively corresponding to the plurality of target web page constituent elements, using the generative language model to generate text content and / or multimedia content description information in the corresponding element content for the plurality of target web page constituent elements; According to the text content and / or multimedia content description information in the element content, corresponding element contents are determined for the multiple target web page constituent elements respectively.

8. The method according to claim 7, wherein: If the element content includes the multimedia content described by the multimedia content description information, then determining corresponding element contents for the multiple target web page constituent elements respectively according to the multimedia content description information in the element content includes: According to the multimedia content description information, multimedia content matching the multimedia content description information is determined from a preset multimedia resource library.

9. The method according to claim 8, wherein: The step of determining multimedia content matching the multimedia content description information from a preset multimedia resource library according to the multimedia content description information includes: If the multimedia content description information is used to indicate the address where the multimedia content is located, then according to the address, determine the multimedia content matching the multimedia content description information from a preset multimedia resource library; or, If the multimedia content description information is an identifier of the multimedia content, then determining multimedia content matching the multimedia content description information from a preset multimedia resource library according to the identifier; or, If the multimedia content description information is used to indicate the content semantics of the multimedia content, then according to the analysis result of the content semantics, multimedia content matching the multimedia content description information is determined from a preset multimedia resource library.

10. The method according to any one of claims 1 to 4, wherein: Acquiring functional description information of the plurality of web page constituent elements includes: Information of a plurality of web page constituent elements used to construct a web page and functional description information of the plurality of web page constituent elements are obtained from a preset website resource platform.

11. The method according to any one of claims 1 to 4, wherein: The step of generating the target webpage according to the directory structure of the target webpage, a plurality of target webpage constituent elements corresponding to the directory structure, and element contents respectively corresponding to the plurality of target webpage constituent elements comprises: Get the preset web page template; Based on the directory structure of the target web page, the multiple target web page constituent elements corresponding to the directory structure, and the element contents respectively corresponding to the multiple target web page constituent elements, the content in the web page template is generated or modified to generate the web page code of the target web page, or the web page code of the target web page is generated and the rendered target web page is generated based on the web page code.

12. The method according to any one of claims 1 to 4, wherein: The method further comprises: acquiring a page layout data sample, and determining page layout information based on the page layout data sample; The step of determining the directory structure of the target web page to be generated and the multiple target web page constituent elements corresponding to the directory structure according to the web page requirement information and the function description information includes: According to the webpage requirement information, the function description information and the page layout information, a directory structure of the target webpage to be generated and a plurality of target webpage constituent elements corresponding to the directory structure are determined.

13. The method according to claim 12, wherein: The acquiring of the page layout data sample and determining the page layout information based on the page layout data sample includes: A page image data sample input by a user is acquired, and a page layout analysis is performed on the page image data sample to obtain the page layout information.

14. An electronic device comprising: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 13 by running the computer program stored in the memory.